| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|
| 19692 |  | ainta | 창문 (kriii4_C) | C++98 |  | 0 ms | 1084 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<stdio.h>
long long Mod = 1000000007;
long long Inv(long long a){
    long long r = 1,b=Mod-2;
    while(b){
        if(b%2)r=r*a%Mod;
        a=a*a%Mod,b/=2;
    }
    return r;
}
int main(){
    long long a, b;
    scanf("%lld%lld",&a,&b);
    a%=Mod,b%=Mod;
    printf("%lld\n",(a+2)*Inv(3)%Mod*(b+2)%Mod*Inv(3)%Mod*9%Mod);
}
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... |