fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int A, B;
  7. cin >> A >> B;
  8. cout << A + B << endl;
  9. cout << A - B << endl;
  10. cout << (long long)A * B << endl;
  11. cout << A / B << endl;
  12. cout << A % B << endl;
  13. cout << (long long)A * A * A << endl;
  14. cout << (long long)B * B * B << endl;
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
1338631789
1338566259
43859197021360
40854
17714
2791549303312052224
35174709297125