#include
int main(){
int n,s=0,m;
int x[100];
int b,sum;
while(scanf("%d",&n)!=EOF){if(n==0){break;}
sum=0;
s=0;
for(int i = 0;i
}
for(int i=0;i
m=x[i]%100;
if(m!=0){b=b+m/50;
m=m%50;
if(m!=0){
b=b+m/10;
m=m%10;
if(m!=0){
b=b+m/5;
m=m%5;
if(m!=0){
b=b+m/2;m=m%2;
if(m!=0){b=b+m;}}}}}
sum+=b;
}
printf("%dn",sum)
;
}return 0;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)