#include "wombats.h"
const long long int MAXN = 5e3 + 10;
const long long int MAXM = 2e2 + 10;
long long int n,m;
long long int h[MAXN][MAXM];
long long int v[MAXN][MAXM];
long long int pref[MAXN];
long long int ans_m1;
void init_m1()
{
ans_m1 = 0;
for(int i = 0; i < n - 1; i++)
{
ans_m1 += v[i][0];
}
}
void init(int R, int C, int H[5000][200], int V[5000][200])
{
n = R;
m = C;
for(int i = 0; i < n - 1; i++)
{
ans_m1 += V[i][0];
for(int j = 0; j < m - 1; j++)
{
v[i][j] = V[i][j];
h[i][j] = H[i][j];
}
}
}
void changeH(int x, int y, int w) /// change path from x;y to x;y + 1
{
h[x][y] = w;
}
void changeV(int x, int y, int w) /// change path from x;y to x + 1;y
{
long long int new_change = w - v[x][y];
ans_m1 += new_change;
v[x][y] = w;
}
int escape(int V1, int V2) /// escape from (0;V1) to (N-1;V2)
{
if(m == 1)
return ans_m1;
else
return 42;
}
Compilation message
grader.c: In function 'int main()':
grader.c:15:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
15 | int res;
| ^~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
7000 KB |
Output is correct |
2 |
Incorrect |
2 ms |
6748 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Incorrect |
1 ms |
4444 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
4700 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
5 ms |
24664 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
4696 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
4696 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |