#include "wombats.h"
#include <bits/stdc++.h>
using namespace std;
#define REP(a,b,c) for(int a=b;a<c;a++)
#define F first
#define S second
#define PB push_back
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef pair<int,int> pi;
vii a(5000,vi(200,0)),b(5000,vi(200,0));
int n,m;
void init(int R, int C, int H[5000][200], int V[5000][200]) {
n=R;
m=C;
REP(i,0,5000)REP(j,0,200)a[i][j]=H[i][j];
REP(i,0,5000)REP(j,0,200)b[i][j]=V[i][j];
}
void changeH(int P, int Q, int W) {
/* ... */
}
void changeV(int P, int Q, int W) {
b[P][Q]=W;
}
int escape(int V1, int V2) {
int ans=0;
REP(i,0,n)REP(j,0,m)ans+=b[i][j];
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]
15 | int res;
| ^~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
18 ms |
12544 KB |
Output is correct |
2 |
Correct |
15 ms |
12432 KB |
Output is correct |
3 |
Correct |
1542 ms |
15188 KB |
Output is correct |
4 |
Correct |
16 ms |
12380 KB |
Output is correct |
5 |
Correct |
14 ms |
12380 KB |
Output is correct |
6 |
Correct |
9 ms |
8660 KB |
Output is correct |
7 |
Correct |
10 ms |
8540 KB |
Output is correct |
8 |
Correct |
9 ms |
8552 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
8540 KB |
Output is correct |
2 |
Correct |
9 ms |
8540 KB |
Output is correct |
3 |
Correct |
10 ms |
8464 KB |
Output is correct |
4 |
Incorrect |
10 ms |
8540 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
13 ms |
8792 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
24 ms |
16472 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
12 ms |
8796 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
12 ms |
8796 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |