fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <cmath>
  4. #include <cstdio>
  5. using namespace std;
  6.  
  7. int main() {
  8. int x = 521595368;
  9. {
  10. double z = (x) / 3737.0;
  11. printf("%.10f\n", z);
  12. int y = ceil(z * 3737.0);
  13.  
  14. if(x != y) {
  15. cout << "Oops! " << x << " != " << y << endl;
  16. printf("%.15f %.15f\n", (double)x, (double)(z * 3737.0));
  17. return 0;
  18. }
  19. }
  20. cout << "Olleh!" << endl;
  21. return 0;
  22. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
139575.9614664169
Oops! 521595368 != 521595369
521595368.000000000000000 521595368.000000059604645