超级水,不解释,代码的处理方式减低了繁琐程度,
#include <iostream>
using namespace std;int main(int argc, char** argv) {int num=0;cin>>num;int money[6]={100,50,20,10,5,1};for(int i=0;i<=5;i++){int count=0;count=num/money[i];num-=money[i]*count;cout<<count<<endl;}return 0;
}