201709-1打醬油

#include<stdio.h> int main(){ int N,count; //count爲總瓶數 scanf("%d",&N); int w,s,p; w=N/50; //w能分出幾個50元 s=(N-50*w)/30; //分出w個50元后 還能分出幾個30元 p=(N-50*w-30*s)/10; //剩下的錢能買的普通瓶數
相關文章
相關標籤/搜索