C++ 代码
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int N;
cin >> N;
int a, b, c, d, e, f, g;
cout << N << endl;
a = (N-N%100) / 100;
N -= a * 100;
b = (N-N%50) / 50;
N -= b * 50;
c = (N-N%20) / 20;
N -= c * 20;
d = (N-N%10) / 10;
N -= d * 10;
e = (N-N%5) / 5;
N -= e * 5;
f = (N-N%2) / 2;
N -= f * 2;
g = N;
cout << a << " nota(s) de R$ 100,00" << endl;
cout << b << " nota(s) de R$ 50,00" << endl;
cout << c << " nota(s) de R$ 20,00" << endl;
cout << d << " nota(s) de R$ 10,00" << endl;
cout << e << " nota(s) de R$ 5,00" << endl;
cout << f << " nota(s) de R$ 2,00" << endl;
cout << g << " nota(s) de R$ 1,00" << endl;
return 0;
}