| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 57242 | babo | 창문 (kriii4_C) | C++14 | 4 ms | 936 KiB |
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>
#define L long long
#define mod 1000000007
using namespace std;
L mult(L x,L y){
if(y==1) return x;
L temp=mult(x,y/2);
if(y%2) return (temp+temp+x)%mod;
else return (temp+temp)%mod;
}
L n,m;
int main()
{
scanf("%lld %lld",&n,&m);
printf("%lld\n",mult(n+2,m+2));
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
