fork download
  1. #include <iostream>
  2. #define ll long long
  3. using namespace std;
  4.  
  5. int main() {
  6. cout << 999999999997 - 499999999999 << endl;
  7. cout << (999999999997 / 2) + 1 << endl;
  8. cout << 999999999997 / 2 << endl;
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
499999999998
499999999999
499999999998