| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1369066 | JelaByteEngineer | Lego Wall (EGOI22_legowall) | C++20 | 0 ms | 344 KiB |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int MOD=1000000007;
ll binpow (int baza, int stepen)
{
ll ans=1;
while (stepen)
{
baza%=MOD;
ans%=MOD;
if (stepen&1)
{
ans=(ans*baza)%MOD;
}
baza=(baza*baza)%MOD;
stepen>>=1;
}
return ans;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int w, h;
cin>>w>>h;
if (w==2)
{
cout<<(binpow(2, h)-1+MOD)%MOD<<endl;
}
return 0;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
