fork download
  1. #include <iostream>
  2. using namespace std;
  3. long long n;
  4. int main() {
  5. cin>>n;
  6. cout<<n/100<<" "<<n%100/50<<" "<<n%100%50/20<<" "<<n%100%50%20/10<<" "<<n%100%50%20%10/5<<" "<<n%100%50%20%10%5;
  7. return 0;
  8. }
Success #stdin #stdout 0s 5320KB
stdin
100000000000000001
stdout
1000000000000000 0 0 0 0 1