#include <bits/stdc++.h>
#ifndef ARTHUR_LOCAL
#include "wombats.h"
#endif
using namespace std;
int r=-1;
int c=-1;
int H[5000][200];
int V[5000][200];
int ans=0;
void init(int r_raw, int c_raw, int H_raw[5000][200], int V_raw[5000][200])
{
r=r_raw;
c=c_raw;
for(int i=0; i<5000; i++)
{
for(int j=0; j<200; j++)
{
H[i][j]=H_raw[i][j];
V[i][j]=V_raw[i][j];
}
}
for(int i=0; i<5000; i++)
{
ans += V[i][0];
}
}
void changeH(int p, int q, int w)
{
return;
}
void changeV(int p, int q, int w)
{
ans += w - V[p][q];
V[p][q]=w;
}
int escape(int v1, int v2)
{
return ans;
}
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;
^~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
14 ms |
12024 KB |
Output is correct |
2 |
Correct |
15 ms |
12024 KB |
Output is correct |
3 |
Correct |
85 ms |
14840 KB |
Output is correct |
4 |
Correct |
15 ms |
12152 KB |
Output is correct |
5 |
Correct |
15 ms |
12152 KB |
Output is correct |
6 |
Correct |
12 ms |
8184 KB |
Output is correct |
7 |
Correct |
12 ms |
8184 KB |
Output is correct |
8 |
Correct |
12 ms |
8184 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
12 ms |
8184 KB |
Output is correct |
2 |
Correct |
12 ms |
8184 KB |
Output is correct |
3 |
Correct |
12 ms |
8184 KB |
Output is correct |
4 |
Incorrect |
12 ms |
8184 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
14 ms |
8316 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
18 ms |
15992 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
14 ms |
8312 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
15 ms |
8444 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |