Submission #19678

#TimeUsernameProblemLanguageResultExecution timeMemory
19678gs13068창문 (kriii4_C)C++98
100 / 100
0 ms1084 KiB
#include <cstdio> const int p = 1000000007; int f(int x, int y) { return y & 1 ? (long long)f(x, y ^ 1)*x%p : y ? f((long long)x*x%p, y >> 1) : 1; } int main() { long long w, h; scanf("%lld%lld", &w, &h); printf("%lld", (w%p + 2)*(h%p + 2) % p); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...