fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long n, m;
  6. cin >> n >> m;
  7. cout << (n-1)*3*m << endl;
  8. return 0;
  9. }
Success #stdin #stdout 0.01s 5476KB
stdin
20001 450000
stdout
27000000000