发工资咯:
摘要:
#include<stdio.h>int num=0;void fun(int x){ num+=x/100; x=x%100; num+=x/50; x=x%50; num+=x/10; x=x%10; num+=x/5; x=x%5; num+=x/2; x=x%2; num+=x/1;}int main( ){ int N,i,t; while(scanf("%d",&N)!=EOF,N) { for(i=1;i<=N;i++) { scanf("%d",&t); fun(t); } printf("%d 阅读全文
posted @ 2011-04-28 17:25 more think, more gains 阅读(157) 评论(0) 推荐(0) 编辑