#include "wombats.h"
#include <bits/stdc++.h>
using namespace std;
int sum;
vector<vector<int>> H(5000,vector<int>(200)), V(5000,vector<int>(200));
void init(int R, int C, int tH[5000][200], int tV[5000][200]) {
/* ... */
for (int i = 0; i < 5000; i++) for (int j = 0; j < 200; j++) {H[i][j] = tH[i][j]; V[i][j] = tV[i][j];}
for (int i = 0; i < R-1; i++) {
sum += V[i][0];
}
}
void changeH(int P, int Q, int W) {
/* ... */
}
void changeV(int P, int Q, int W) {
/* ... */
sum -= V[P][0];
sum += W;
V[P][0] = W;
}
int escape(int V1, int V2) {
// assert(V1 == 0 && V2 == 0);
return sum;
}
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 |
20 ms |
12544 KB |
Output is correct |
2 |
Correct |
17 ms |
12544 KB |
Output is correct |
3 |
Correct |
105 ms |
15312 KB |
Output is correct |
4 |
Correct |
17 ms |
12544 KB |
Output is correct |
5 |
Correct |
16 ms |
12544 KB |
Output is correct |
6 |
Correct |
16 ms |
8576 KB |
Output is correct |
7 |
Correct |
16 ms |
8576 KB |
Output is correct |
8 |
Correct |
22 ms |
8632 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
16 ms |
8576 KB |
Output is correct |
2 |
Correct |
17 ms |
8600 KB |
Output is correct |
3 |
Correct |
13 ms |
8576 KB |
Output is correct |
4 |
Incorrect |
13 ms |
8576 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
15 ms |
8704 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
22 ms |
16308 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
15 ms |
8704 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
19 ms |
8736 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |