fork download
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. unsigned long long n = 490009423985;
  7. for (int i = log10(n) - 2; i >= 0; --i) n /= 10;
  8. std::cout << n << std::endl;
  9. }
  10.  
  11.  
Success #stdin #stdout 0s 3344KB
stdin
Standard input is empty
stdout
49