标签:代码 准备 mit 测试 java include desc main names
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 86458 Accepted Submission(s): 45902
#include<iostream> using namespace std; int main(){ int m; int a[110]; while(cin>>m){ if(m==0){ break; } int sum = 0; while(m--){ int a; scanf("%d",&a); sum = sum + a/100; a %= 100; sum += a/50; a %= 50; sum += a/10; a %= 10; sum += a/5; a %= 5; sum += a/2; a %= 2; sum += a/1; a %= 1; } printf("%d\n",sum); } return 0; }
标签:代码 准备 mit 测试 java include desc main names
原文地址:https://www.cnblogs.com/Weixu-Liu/p/10291432.html