| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|
| 20201 |  | exqt | 창문 (kriii4_C) | C++98 |  | 2 ms | 0 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 <iostream>
#include <algorithm>
#include <vector>
#include <sstream>
#include <fstream>
 
#include <iterator>
using namespace std;
 
#define in cin
#define out cout
 
#define ll unsigned long long
 
ll DV = 1000000007LL;
ll pow(ll a, ll b)
{
    ll t = a;
    ll res = 1LL;
    while(b)
    {
        if(b%2) res = (res * t) % DV;
        t = t % DV;
        t = (t*t) % DV;
        b = b >> 1;
    }
 
    return res%DV;
}
 
ll inv(ll a)
{
    return (pow(a, DV-2))%DV;
}
 
ll mul(ll a, ll b)
{
    return ((a%DV)*(b%DV))%DV;
}
 
ll sub(ll a, ll b)
{
    a += 10LL*DV;
    b += 10LL*DV;
    return ((a%DV)-(b%DV)+10LL*DV)%DV;
}
 
ll add(ll a, ll b)
{
      a += 10LL*DV;
    b += 10LL*DV;
    return ((a%DV)+(b%DV)+10LL*DV)%DV;
}
 
 
int main()
{
    //freopen("in.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
 
    ll w, h; in >> w >> h;
    w %= DV; h %= DV;
 
	ll res = mul(w+2, h+2);
 
    out << res;
 
    return 0;
}
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict  | Execution time | Memory | Grader output | 
|---|
| Fetching results... |