fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long A = 100000000000;
  6. long long B = 100000000000;
  7. long long C = 1000000000000000;
  8.  
  9. cout << ((A % C) * (B % C)) % C;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
712049423024128