代码:
#include<cstdio> #include<iostream> using namespace std; int main(){ int n; cin>>n; cout<<(n/100)<<endl; n=n%100; cout<<(n/50)<<endl; n=n%50; cout<<(n/20)<<endl; n=n%20; cout<<(n/10)<<endl; n=n%10; cout<<(n/5)<<endl; n=n%5; cout<<n; }
刷水题的快感(づ ̄ 3 ̄)づ
时间: 2024-10-12 15:00:24