fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. ios_base::sync_with_stdio(false);
  7. cin.tie(NULL);
  8.  
  9. long long m, n;
  10. cin >> m >> n;
  11. cout << m * (m + 1) * n * (n + 1) / 4;
  12. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
-1388935393226771328