fork download
  1. #include <iostream>
  2. // your code goes here
  3. #include <cmath>
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8.  
  9. int n1 = 187972 ;
  10. int n2 = 12026 ;
  11. double a = 0.002 ;
  12. auto x = n1*n2;
  13. cout << "x: " << x << endl;
  14. int partial = round((n1*n2)*a) ;
  15. int result = n1 - partial ;
  16. return 0;
  17. }
Success #stdin #stdout 0s 4720KB
stdin
Standard input is empty
stdout
x: -2034416024