This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
inline void mult(long long& a, long long b)
{
a = a * b % MOD;
}
int main()
{
long long h, w;
cin >> h >> w;
h %= MOD;
w %= MOD;
h += 2;
mult(h, w + 2);
cout << h << '\n';
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |