Submission #20115

#TimeUsernameProblemLanguageResultExecution timeMemory
20115algoshipda창문 (kriii4_C)C++14
100 / 100
0 ms1716 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...