#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
turtle.cpp:12:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
348 KB |
Output is correct |
2 |
Incorrect |
2 ms |
256 KB |
Output isn't correct |
3 |
Incorrect |
3 ms |
376 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
376 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
256 KB |
Output isn't correct |
6 |
Incorrect |
3 ms |
380 KB |
Output isn't correct |
7 |
Incorrect |
3 ms |
376 KB |
Output isn't correct |
8 |
Incorrect |
5 ms |
256 KB |
Output isn't correct |
9 |
Incorrect |
57 ms |
376 KB |
Output isn't correct |
10 |
Incorrect |
267 ms |
284 KB |
Output isn't correct |
11 |
Execution timed out |
2033 ms |
632 KB |
Time limit exceeded |
12 |
Execution timed out |
2007 ms |
1528 KB |
Time limit exceeded |
13 |
Execution timed out |
2003 ms |
1404 KB |
Time limit exceeded |
14 |
Execution timed out |
2032 ms |
632 KB |
Time limit exceeded |
15 |
Execution timed out |
2074 ms |
760 KB |
Time limit exceeded |
16 |
Execution timed out |
2059 ms |
1372 KB |
Time limit exceeded |
17 |
Execution timed out |
2066 ms |
1272 KB |
Time limit exceeded |
18 |
Execution timed out |
2056 ms |
1528 KB |
Time limit exceeded |
19 |
Execution timed out |
2092 ms |
1528 KB |
Time limit exceeded |
20 |
Execution timed out |
2071 ms |
1400 KB |
Time limit exceeded |