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. long long n, m;
  9. cin >> n >> m;
  10. cout << (n * (n - 1) / 2) * (m * (m - 1) / 2) << "\n";
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5292KB
stdin
1 998244353
stdout
0