#include <bits/stdc++.h>
#include "wombats.h"
using namespace std;
const int N=5e3+55;
int sum[N][2];
int v[N][2];
int n,m;
void init(int R, int C, int H[5000][200], int V[5000][200])
{
n=R;
m=C;
for(int i=0;i<n;i++)
for(int j=0;j<m;j++)
v[i][j]=V[i][j];
for(int i=1;i<n;i++)
sum[i][0]=V[i][0]+sum[i-1][0];
}
void changeH(int P, int Q, int W)
{
}
void changeV(int P, int Q, int W)
{
sum[n-1][0]+=W-v[P][Q];
v[P][Q]=W;
}
int escape(int V1, int V2)
{
return sum[n-1][0];
}
Compilation message
grader.c: In function 'int main()':
grader.c:15:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
int res;
^~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
8 ms |
4344 KB |
Output is correct |
2 |
Incorrect |
9 ms |
4472 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4472 KB |
Output is correct |
2 |
Incorrect |
3 ms |
4472 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
4472 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
13 ms |
8788 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
8788 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
8788 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |