fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. long long number = 9000000123LL;
  7. if(number > 999999999) {
  8. int n_billions;
  9. n_billions = number/1000000000;
  10. cout << number << endl;
  11.  
  12. number -= n_billions*1000000000LL;
  13. cout << number << endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
9000000123
123