#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int a,s,d,f,g,h,j;
a=n/100;
s=(n-100*a)/50;
d=(n-100*a-50*s)/20;
f=(n-100*a-50*s-20*d)/10;
g=(n-100*a-50*s-20*d-10*f)/5;
h=(n-100*a-50*s-20*d-10*f-5*g)/2;
j=(n-100*a-50*s-20*d-10*f-5*g-2*h);
cout<<n<<endl;
cout<<a<<" nota(s) de R$ 100,00"<<endl;
cout<<s<<" nota(s) de R$ 50,00"<<endl;
cout<<d<<" nota(s) de R$ 20,00"<<endl;
cout<<f<<" nota(s) de R$ 10,00"<<endl;
cout<<g<<" nota(s) de R$ 5,00"<<endl;
cout<<h<<" nota(s) de R$ 2,00"<<endl;
cout<<j<<" nota(s) de R$ 1,00"<<endl;
return 0;
}
很暴力很麻烦,可以直接用数组+循环来解决