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 = 1000000007;
int main()
{
long long H, W;
scanf("%lld%lld", &H, &W);
long long p = (H + 2) % MOD;
long long q = (W + 2) % MOD;
printf("%lld", (p * q) % MOD);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |