fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. long long x = 1000000000000000000; // 10^18
  5. long long res = 1.0 * x * x / 18446744073709551616.0; // it should be 54210108624275221
  6. cout << res << endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 4556KB
stdin
Standard input is empty
stdout
54210108624275224