# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
87021 | YottaByte | Energetic turtle (IZhO11_turtle) | C++14 | 2092 ms | 1528 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>
using namespace std;
#define fr first
#define sc second
const int mod = 1e9;
const int N = 3e5;
int d[N];
main()
{
int n, m, k, t, z;
cin >> n >> m >> k >> t >> z;
n++, m++;
for(int i = 1; i <= k; i++)
{
int a, b; cin >> a >> b;
}
d[1] = 1;
for(int i = 1; i <= n; i++)
{
for(int j = 1; j <= m; j++)
{
d[j] = d[j - 1] + d[j];
}
}
cout << d[m];
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |