# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
922037 |
2024-02-04T20:40:43 Z |
SUNWOOOOOOOO |
Maze (JOI23_ho_t3) |
C++17 |
|
2000 ms |
172044 KB |
#include <bits/stdc++.h>
using namespace std;
using pint = array <int, 2>;
const int INF = 1e9;
vector <vector <int>> ans, G;
vector <vector <pint>> Gelm;
int r, c, n, gno = 0, dx[4] = {0, 0, 1, -1}, dy[4] = {1, -1, 0, 0};
vector <int> Gvst;
vector <string> A;
deque <pint> dq;
pint s, g;
struct segtree { // +1
int mxX = 1, mxY = 1;
vector <vector <pint>> node;
void init(){
while (mxX < r) mxX *= 2;
while (mxY < c) mxY *= 2;
node.resize(2 * mxX + 1, vector <pint> (2 * mxY + 1, (pint) {INF, INF}));
for (int i = 0; i < r; i++){
for (int j = 0; j < c; j++){
if (A[i][j] != '#') continue;
node[i + mxX][j + mxY] = {i, j};
}
}
for (int i = mxX; i < 2 * mxX; i++){
for (int j = mxY - 1; j > 0; j--){
node[i][j] = min(node[i][2 * j], node[i][2 * j + 1]);
}
}
for (int i = mxX - 1; i > 0; i--){
for (int j = 1; j < 2 * mxY; j++){
node[i][j] = min(node[2 * i][j], node[2 * i + 1][j]);
}
}
}
void update(int x, int y, pint val){
x++, y++;
x += mxX - 1, y += mxY - 1;
node[x][y] = val;
for (int cy = y / 2; cy > 0; cy /= 2){
node[x][cy] = min(node[x][2 * cy], node[x][2 * cy + 1]);
}
for (int cx = x / 2; cx > 0; cx /= 2){
for (int cy = y; cy > 0; cy /= 2){
node[cx][cy] = min(node[cx * 2][cy], node[cx * 2 + 1][cy]);
}
}
}
pint query(int L1, int R1, int L2, int R2){
L1++, R1++, L2++, R2++;
pint ret = {INF, INF};
for (L1 += mxX - 1, R1 += mxX - 1; L1 <= R1; L1 /= 2, R1 /= 2){
if (L1 % 2 == 1){
for (int cL2 = L2 + mxY - 1, cR2 = R2 + mxY - 1; cL2 <= cR2; cL2 /= 2, cR2 /= 2){
if (cL2 % 2 == 1) ret = min(ret, node[L1][cL2++]);
if (cR2 % 2 == 0) ret = min(ret, node[L1][cR2--]);
}
L1++;
}
if (R1 % 2 == 0){
for (int cL2 = L2 + mxY - 1, cR2 = R2 + mxY - 1; cL2 <= cR2; cL2 /= 2, cR2 /= 2){
if (cL2 % 2 == 1) ret = min(ret, node[R1][cL2++]);
if (cR2 % 2 == 0) ret = min(ret, node[R1][cR2--]);
}
R1--;
}
}
return ret;
}
} tree;
void val_up(int L1, int R1, int L2, int R2, int val){
L1 = max(L1, 0), R1 = min(R1, r - 1), L2 = max(L2, 0), R2 = min(R2, c - 1);
while (1){
pint ret = tree.query(L1, R1, L2, R2);
if (ret == (pint) {INF, INF}) break;
ans[ret[0]][ret[1]] = val;
tree.update(ret[0], ret[1], (pint) {INF, INF});
dq.push_back(ret);
}
}
int main()
{
scanf("%d %d %d", &r, &c, &n);
A.resize(r);
ans.resize(r, vector <int> (c, -1));
G.resize(r, vector <int> (c, -1));
scanf("%d %d %d %d", &s[0], &s[1], &g[0], &g[1]);
s[0]--, s[1]--, g[0]--, g[1]--;
for (int i = 0; i < r; i++) cin >> A[i];
for (int i = 0; i < r; i++){
for (int j = 0; j < c; j++){
if (G[i][j] != -1) continue;
if (A[i][j] == '#') continue;
Gelm.push_back(vector <pint> {});
queue <pint> q;
G[i][j] = gno;
Gelm[gno].push_back({i, j});
q.push({i, j});
while (!q.empty()){
pint now = q.front(); q.pop();
for (int k : {0, 1, 2, 3}){
int nx = now[0] + dx[k], ny = now[1] + dy[k];
if (nx < 0 || ny < 0 || nx >= r || ny >= c) continue;
if (G[nx][ny] != -1) continue;
if (A[nx][ny] == '#') continue;
G[nx][ny] = gno;
Gelm[gno].push_back({nx, ny});
q.push({nx, ny});
}
}
gno++;
}
}
Gvst.resize(gno, 0);
tree.init();
ans[s[0]][s[1]] = 0;
dq.push_front(s);
while (!dq.empty()){
pint now = dq.front(); dq.pop_front();
for (int k : {0, 1, 2, 3}){
int nx = now[0] + dx[k], ny = now[1] + dy[k];
if (nx < 0 || ny < 0 || nx >= r || ny >= c) continue;
if (A[nx][ny] == '#' || Gvst[G[nx][ny]] == 1) continue;
for (pint j : Gelm[G[nx][ny]]){
if (ans[j[0]][j[1]] == -1){
ans[j[0]][j[1]] = ans[now[0]][now[1]];
dq.push_front(j);
}
}
Gvst[G[nx][ny]] = 1;
}
val_up(now[0] - n, now[0] + n, now[1] - n + 1, now[1] + n - 1, ans[now[0]][now[1]] + 1);
val_up(now[0] - n + 1, now[0] + n - 1, now[1] + n, now[1] + n, ans[now[0]][now[1]] + 1);
val_up(now[0] - n + 1, now[0] + n - 1, now[1] - n, now[1] - n, ans[now[0]][now[1]] + 1);
}
printf("%d\n", ans[g[0]][g[1]]);
return 0;
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:86:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | scanf("%d %d %d", &r, &c, &n);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:90:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | scanf("%d %d %d %d", &s[0], &s[1], &g[0], &g[1]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
21 ms |
3160 KB |
Output is correct |
20 |
Correct |
11 ms |
5024 KB |
Output is correct |
21 |
Correct |
9 ms |
4056 KB |
Output is correct |
22 |
Correct |
21 ms |
3672 KB |
Output is correct |
23 |
Correct |
23 ms |
3160 KB |
Output is correct |
24 |
Correct |
8 ms |
5740 KB |
Output is correct |
25 |
Correct |
14 ms |
5228 KB |
Output is correct |
26 |
Correct |
20 ms |
3416 KB |
Output is correct |
27 |
Correct |
21 ms |
3672 KB |
Output is correct |
28 |
Correct |
20 ms |
3160 KB |
Output is correct |
29 |
Correct |
62 ms |
10332 KB |
Output is correct |
30 |
Correct |
19 ms |
4756 KB |
Output is correct |
31 |
Correct |
26 ms |
12312 KB |
Output is correct |
32 |
Correct |
59 ms |
11476 KB |
Output is correct |
33 |
Correct |
67 ms |
10072 KB |
Output is correct |
34 |
Correct |
22 ms |
19980 KB |
Output is correct |
35 |
Correct |
36 ms |
18444 KB |
Output is correct |
36 |
Correct |
55 ms |
11156 KB |
Output is correct |
37 |
Correct |
60 ms |
11416 KB |
Output is correct |
38 |
Correct |
62 ms |
10072 KB |
Output is correct |
39 |
Correct |
950 ms |
148736 KB |
Output is correct |
40 |
Correct |
58 ms |
12180 KB |
Output is correct |
41 |
Correct |
32 ms |
21116 KB |
Output is correct |
42 |
Correct |
112 ms |
20400 KB |
Output is correct |
43 |
Correct |
71 ms |
17272 KB |
Output is correct |
44 |
Correct |
221 ms |
50540 KB |
Output is correct |
45 |
Correct |
329 ms |
86248 KB |
Output is correct |
46 |
Correct |
408 ms |
171404 KB |
Output is correct |
47 |
Correct |
799 ms |
160844 KB |
Output is correct |
48 |
Correct |
1006 ms |
147024 KB |
Output is correct |
49 |
Correct |
194 ms |
162664 KB |
Output is correct |
50 |
Correct |
337 ms |
149352 KB |
Output is correct |
51 |
Correct |
788 ms |
158848 KB |
Output is correct |
52 |
Correct |
845 ms |
160016 KB |
Output is correct |
53 |
Correct |
893 ms |
146828 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
544 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
0 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
1 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
344 KB |
Output is correct |
20 |
Correct |
1 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
344 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
344 KB |
Output is correct |
26 |
Correct |
0 ms |
344 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
344 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
3 |
Correct |
0 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
0 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
344 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
1 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
600 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
344 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
344 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
2 ms |
600 KB |
Output is correct |
25 |
Correct |
17 ms |
3160 KB |
Output is correct |
26 |
Correct |
20 ms |
5592 KB |
Output is correct |
27 |
Correct |
8 ms |
4056 KB |
Output is correct |
28 |
Correct |
22 ms |
4056 KB |
Output is correct |
29 |
Correct |
39 ms |
3928 KB |
Output is correct |
30 |
Correct |
29 ms |
3492 KB |
Output is correct |
31 |
Correct |
29 ms |
3672 KB |
Output is correct |
32 |
Correct |
20 ms |
3416 KB |
Output is correct |
33 |
Correct |
22 ms |
3676 KB |
Output is correct |
34 |
Correct |
94 ms |
11220 KB |
Output is correct |
35 |
Correct |
27 ms |
12240 KB |
Output is correct |
36 |
Correct |
41 ms |
12500 KB |
Output is correct |
37 |
Correct |
72 ms |
12116 KB |
Output is correct |
38 |
Correct |
84 ms |
11248 KB |
Output is correct |
39 |
Correct |
330 ms |
42440 KB |
Output is correct |
40 |
Correct |
842 ms |
93600 KB |
Output is correct |
41 |
Correct |
393 ms |
171220 KB |
Output is correct |
42 |
Correct |
474 ms |
170924 KB |
Output is correct |
43 |
Correct |
903 ms |
167584 KB |
Output is correct |
44 |
Correct |
1065 ms |
159164 KB |
Output is correct |
45 |
Correct |
928 ms |
162480 KB |
Output is correct |
46 |
Correct |
808 ms |
97264 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
544 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
0 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
1 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
344 KB |
Output is correct |
20 |
Correct |
1 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
344 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
344 KB |
Output is correct |
26 |
Correct |
0 ms |
344 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
344 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
23 ms |
3164 KB |
Output is correct |
34 |
Correct |
2 ms |
600 KB |
Output is correct |
35 |
Correct |
2 ms |
856 KB |
Output is correct |
36 |
Correct |
17 ms |
3160 KB |
Output is correct |
37 |
Correct |
13 ms |
5024 KB |
Output is correct |
38 |
Correct |
20 ms |
5592 KB |
Output is correct |
39 |
Correct |
9 ms |
4056 KB |
Output is correct |
40 |
Correct |
22 ms |
3672 KB |
Output is correct |
41 |
Correct |
24 ms |
3160 KB |
Output is correct |
42 |
Correct |
14 ms |
4056 KB |
Output is correct |
43 |
Correct |
26 ms |
3928 KB |
Output is correct |
44 |
Correct |
47 ms |
3636 KB |
Output is correct |
45 |
Correct |
8 ms |
5740 KB |
Output is correct |
46 |
Correct |
18 ms |
5232 KB |
Output is correct |
47 |
Correct |
17 ms |
4756 KB |
Output is correct |
48 |
Correct |
27 ms |
3672 KB |
Output is correct |
49 |
Correct |
26 ms |
5724 KB |
Output is correct |
50 |
Correct |
39 ms |
5464 KB |
Output is correct |
51 |
Correct |
29 ms |
3672 KB |
Output is correct |
52 |
Correct |
20 ms |
3416 KB |
Output is correct |
53 |
Correct |
21 ms |
3672 KB |
Output is correct |
54 |
Correct |
20 ms |
3164 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
544 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
0 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
1 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
344 KB |
Output is correct |
20 |
Correct |
1 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
344 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
344 KB |
Output is correct |
26 |
Correct |
0 ms |
344 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
344 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
23 ms |
3164 KB |
Output is correct |
34 |
Correct |
2 ms |
600 KB |
Output is correct |
35 |
Correct |
2 ms |
856 KB |
Output is correct |
36 |
Correct |
17 ms |
3160 KB |
Output is correct |
37 |
Correct |
13 ms |
5024 KB |
Output is correct |
38 |
Correct |
20 ms |
5592 KB |
Output is correct |
39 |
Correct |
9 ms |
4056 KB |
Output is correct |
40 |
Correct |
22 ms |
3672 KB |
Output is correct |
41 |
Correct |
24 ms |
3160 KB |
Output is correct |
42 |
Correct |
14 ms |
4056 KB |
Output is correct |
43 |
Correct |
26 ms |
3928 KB |
Output is correct |
44 |
Correct |
47 ms |
3636 KB |
Output is correct |
45 |
Correct |
8 ms |
5740 KB |
Output is correct |
46 |
Correct |
18 ms |
5232 KB |
Output is correct |
47 |
Correct |
17 ms |
4756 KB |
Output is correct |
48 |
Correct |
27 ms |
3672 KB |
Output is correct |
49 |
Correct |
26 ms |
5724 KB |
Output is correct |
50 |
Correct |
39 ms |
5464 KB |
Output is correct |
51 |
Correct |
29 ms |
3672 KB |
Output is correct |
52 |
Correct |
20 ms |
3416 KB |
Output is correct |
53 |
Correct |
21 ms |
3672 KB |
Output is correct |
54 |
Correct |
20 ms |
3164 KB |
Output is correct |
55 |
Correct |
65 ms |
10332 KB |
Output is correct |
56 |
Correct |
16 ms |
4760 KB |
Output is correct |
57 |
Correct |
86 ms |
11220 KB |
Output is correct |
58 |
Correct |
70 ms |
11712 KB |
Output is correct |
59 |
Correct |
26 ms |
12496 KB |
Output is correct |
60 |
Correct |
59 ms |
11340 KB |
Output is correct |
61 |
Correct |
68 ms |
10072 KB |
Output is correct |
62 |
Correct |
40 ms |
12752 KB |
Output is correct |
63 |
Correct |
72 ms |
11988 KB |
Output is correct |
64 |
Correct |
77 ms |
11344 KB |
Output is correct |
65 |
Correct |
22 ms |
19984 KB |
Output is correct |
66 |
Correct |
37 ms |
18416 KB |
Output is correct |
67 |
Correct |
52 ms |
15788 KB |
Output is correct |
68 |
Correct |
70 ms |
11620 KB |
Output is correct |
69 |
Correct |
87 ms |
19796 KB |
Output is correct |
70 |
Correct |
77 ms |
11412 KB |
Output is correct |
71 |
Correct |
70 ms |
11432 KB |
Output is correct |
72 |
Correct |
55 ms |
11168 KB |
Output is correct |
73 |
Correct |
64 ms |
11412 KB |
Output is correct |
74 |
Correct |
63 ms |
10076 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
21 ms |
3160 KB |
Output is correct |
20 |
Correct |
11 ms |
5024 KB |
Output is correct |
21 |
Correct |
9 ms |
4056 KB |
Output is correct |
22 |
Correct |
21 ms |
3672 KB |
Output is correct |
23 |
Correct |
23 ms |
3160 KB |
Output is correct |
24 |
Correct |
8 ms |
5740 KB |
Output is correct |
25 |
Correct |
14 ms |
5228 KB |
Output is correct |
26 |
Correct |
20 ms |
3416 KB |
Output is correct |
27 |
Correct |
21 ms |
3672 KB |
Output is correct |
28 |
Correct |
20 ms |
3160 KB |
Output is correct |
29 |
Correct |
62 ms |
10332 KB |
Output is correct |
30 |
Correct |
19 ms |
4756 KB |
Output is correct |
31 |
Correct |
26 ms |
12312 KB |
Output is correct |
32 |
Correct |
59 ms |
11476 KB |
Output is correct |
33 |
Correct |
67 ms |
10072 KB |
Output is correct |
34 |
Correct |
22 ms |
19980 KB |
Output is correct |
35 |
Correct |
36 ms |
18444 KB |
Output is correct |
36 |
Correct |
55 ms |
11156 KB |
Output is correct |
37 |
Correct |
60 ms |
11416 KB |
Output is correct |
38 |
Correct |
62 ms |
10072 KB |
Output is correct |
39 |
Correct |
950 ms |
148736 KB |
Output is correct |
40 |
Correct |
58 ms |
12180 KB |
Output is correct |
41 |
Correct |
32 ms |
21116 KB |
Output is correct |
42 |
Correct |
112 ms |
20400 KB |
Output is correct |
43 |
Correct |
71 ms |
17272 KB |
Output is correct |
44 |
Correct |
221 ms |
50540 KB |
Output is correct |
45 |
Correct |
329 ms |
86248 KB |
Output is correct |
46 |
Correct |
408 ms |
171404 KB |
Output is correct |
47 |
Correct |
799 ms |
160844 KB |
Output is correct |
48 |
Correct |
1006 ms |
147024 KB |
Output is correct |
49 |
Correct |
194 ms |
162664 KB |
Output is correct |
50 |
Correct |
337 ms |
149352 KB |
Output is correct |
51 |
Correct |
788 ms |
158848 KB |
Output is correct |
52 |
Correct |
845 ms |
160016 KB |
Output is correct |
53 |
Correct |
893 ms |
146828 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
544 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
0 ms |
344 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
344 KB |
Output is correct |
62 |
Correct |
1 ms |
344 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
1 ms |
344 KB |
Output is correct |
67 |
Correct |
1 ms |
344 KB |
Output is correct |
68 |
Correct |
0 ms |
344 KB |
Output is correct |
69 |
Correct |
1 ms |
344 KB |
Output is correct |
70 |
Correct |
1 ms |
344 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
344 KB |
Output is correct |
73 |
Correct |
1 ms |
344 KB |
Output is correct |
74 |
Correct |
0 ms |
344 KB |
Output is correct |
75 |
Correct |
1 ms |
344 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
344 KB |
Output is correct |
79 |
Correct |
0 ms |
344 KB |
Output is correct |
80 |
Correct |
1 ms |
344 KB |
Output is correct |
81 |
Correct |
1 ms |
344 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
344 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
1 ms |
344 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
344 KB |
Output is correct |
89 |
Correct |
1 ms |
344 KB |
Output is correct |
90 |
Correct |
0 ms |
344 KB |
Output is correct |
91 |
Correct |
1 ms |
344 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
344 KB |
Output is correct |
94 |
Correct |
1 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
600 KB |
Output is correct |
99 |
Correct |
1 ms |
344 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
1 ms |
344 KB |
Output is correct |
102 |
Correct |
1 ms |
344 KB |
Output is correct |
103 |
Correct |
0 ms |
344 KB |
Output is correct |
104 |
Correct |
1 ms |
344 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
344 KB |
Output is correct |
107 |
Correct |
1 ms |
344 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
2 ms |
600 KB |
Output is correct |
110 |
Correct |
17 ms |
3160 KB |
Output is correct |
111 |
Correct |
20 ms |
5592 KB |
Output is correct |
112 |
Correct |
8 ms |
4056 KB |
Output is correct |
113 |
Correct |
22 ms |
4056 KB |
Output is correct |
114 |
Correct |
39 ms |
3928 KB |
Output is correct |
115 |
Correct |
29 ms |
3492 KB |
Output is correct |
116 |
Correct |
29 ms |
3672 KB |
Output is correct |
117 |
Correct |
20 ms |
3416 KB |
Output is correct |
118 |
Correct |
22 ms |
3676 KB |
Output is correct |
119 |
Correct |
94 ms |
11220 KB |
Output is correct |
120 |
Correct |
27 ms |
12240 KB |
Output is correct |
121 |
Correct |
41 ms |
12500 KB |
Output is correct |
122 |
Correct |
72 ms |
12116 KB |
Output is correct |
123 |
Correct |
84 ms |
11248 KB |
Output is correct |
124 |
Correct |
330 ms |
42440 KB |
Output is correct |
125 |
Correct |
842 ms |
93600 KB |
Output is correct |
126 |
Correct |
393 ms |
171220 KB |
Output is correct |
127 |
Correct |
474 ms |
170924 KB |
Output is correct |
128 |
Correct |
903 ms |
167584 KB |
Output is correct |
129 |
Correct |
1065 ms |
159164 KB |
Output is correct |
130 |
Correct |
928 ms |
162480 KB |
Output is correct |
131 |
Correct |
808 ms |
97264 KB |
Output is correct |
132 |
Correct |
23 ms |
3164 KB |
Output is correct |
133 |
Correct |
2 ms |
600 KB |
Output is correct |
134 |
Correct |
2 ms |
856 KB |
Output is correct |
135 |
Correct |
17 ms |
3160 KB |
Output is correct |
136 |
Correct |
13 ms |
5024 KB |
Output is correct |
137 |
Correct |
20 ms |
5592 KB |
Output is correct |
138 |
Correct |
9 ms |
4056 KB |
Output is correct |
139 |
Correct |
22 ms |
3672 KB |
Output is correct |
140 |
Correct |
24 ms |
3160 KB |
Output is correct |
141 |
Correct |
14 ms |
4056 KB |
Output is correct |
142 |
Correct |
26 ms |
3928 KB |
Output is correct |
143 |
Correct |
47 ms |
3636 KB |
Output is correct |
144 |
Correct |
8 ms |
5740 KB |
Output is correct |
145 |
Correct |
18 ms |
5232 KB |
Output is correct |
146 |
Correct |
17 ms |
4756 KB |
Output is correct |
147 |
Correct |
27 ms |
3672 KB |
Output is correct |
148 |
Correct |
26 ms |
5724 KB |
Output is correct |
149 |
Correct |
39 ms |
5464 KB |
Output is correct |
150 |
Correct |
29 ms |
3672 KB |
Output is correct |
151 |
Correct |
20 ms |
3416 KB |
Output is correct |
152 |
Correct |
21 ms |
3672 KB |
Output is correct |
153 |
Correct |
20 ms |
3164 KB |
Output is correct |
154 |
Correct |
65 ms |
10332 KB |
Output is correct |
155 |
Correct |
16 ms |
4760 KB |
Output is correct |
156 |
Correct |
86 ms |
11220 KB |
Output is correct |
157 |
Correct |
70 ms |
11712 KB |
Output is correct |
158 |
Correct |
26 ms |
12496 KB |
Output is correct |
159 |
Correct |
59 ms |
11340 KB |
Output is correct |
160 |
Correct |
68 ms |
10072 KB |
Output is correct |
161 |
Correct |
40 ms |
12752 KB |
Output is correct |
162 |
Correct |
72 ms |
11988 KB |
Output is correct |
163 |
Correct |
77 ms |
11344 KB |
Output is correct |
164 |
Correct |
22 ms |
19984 KB |
Output is correct |
165 |
Correct |
37 ms |
18416 KB |
Output is correct |
166 |
Correct |
52 ms |
15788 KB |
Output is correct |
167 |
Correct |
70 ms |
11620 KB |
Output is correct |
168 |
Correct |
87 ms |
19796 KB |
Output is correct |
169 |
Correct |
77 ms |
11412 KB |
Output is correct |
170 |
Correct |
70 ms |
11432 KB |
Output is correct |
171 |
Correct |
55 ms |
11168 KB |
Output is correct |
172 |
Correct |
64 ms |
11412 KB |
Output is correct |
173 |
Correct |
63 ms |
10076 KB |
Output is correct |
174 |
Correct |
82 ms |
12696 KB |
Output is correct |
175 |
Correct |
224 ms |
23096 KB |
Output is correct |
176 |
Correct |
285 ms |
55660 KB |
Output is correct |
177 |
Correct |
704 ms |
86784 KB |
Output is correct |
178 |
Correct |
1002 ms |
157212 KB |
Output is correct |
179 |
Correct |
1053 ms |
161452 KB |
Output is correct |
180 |
Correct |
1038 ms |
160448 KB |
Output is correct |
181 |
Correct |
950 ms |
94724 KB |
Output is correct |
182 |
Correct |
1100 ms |
160252 KB |
Output is correct |
183 |
Correct |
774 ms |
157320 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
21 ms |
3160 KB |
Output is correct |
20 |
Correct |
11 ms |
5024 KB |
Output is correct |
21 |
Correct |
9 ms |
4056 KB |
Output is correct |
22 |
Correct |
21 ms |
3672 KB |
Output is correct |
23 |
Correct |
23 ms |
3160 KB |
Output is correct |
24 |
Correct |
8 ms |
5740 KB |
Output is correct |
25 |
Correct |
14 ms |
5228 KB |
Output is correct |
26 |
Correct |
20 ms |
3416 KB |
Output is correct |
27 |
Correct |
21 ms |
3672 KB |
Output is correct |
28 |
Correct |
20 ms |
3160 KB |
Output is correct |
29 |
Correct |
62 ms |
10332 KB |
Output is correct |
30 |
Correct |
19 ms |
4756 KB |
Output is correct |
31 |
Correct |
26 ms |
12312 KB |
Output is correct |
32 |
Correct |
59 ms |
11476 KB |
Output is correct |
33 |
Correct |
67 ms |
10072 KB |
Output is correct |
34 |
Correct |
22 ms |
19980 KB |
Output is correct |
35 |
Correct |
36 ms |
18444 KB |
Output is correct |
36 |
Correct |
55 ms |
11156 KB |
Output is correct |
37 |
Correct |
60 ms |
11416 KB |
Output is correct |
38 |
Correct |
62 ms |
10072 KB |
Output is correct |
39 |
Correct |
950 ms |
148736 KB |
Output is correct |
40 |
Correct |
58 ms |
12180 KB |
Output is correct |
41 |
Correct |
32 ms |
21116 KB |
Output is correct |
42 |
Correct |
112 ms |
20400 KB |
Output is correct |
43 |
Correct |
71 ms |
17272 KB |
Output is correct |
44 |
Correct |
221 ms |
50540 KB |
Output is correct |
45 |
Correct |
329 ms |
86248 KB |
Output is correct |
46 |
Correct |
408 ms |
171404 KB |
Output is correct |
47 |
Correct |
799 ms |
160844 KB |
Output is correct |
48 |
Correct |
1006 ms |
147024 KB |
Output is correct |
49 |
Correct |
194 ms |
162664 KB |
Output is correct |
50 |
Correct |
337 ms |
149352 KB |
Output is correct |
51 |
Correct |
788 ms |
158848 KB |
Output is correct |
52 |
Correct |
845 ms |
160016 KB |
Output is correct |
53 |
Correct |
893 ms |
146828 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
544 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
0 ms |
344 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
344 KB |
Output is correct |
62 |
Correct |
1 ms |
344 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
1 ms |
344 KB |
Output is correct |
67 |
Correct |
1 ms |
344 KB |
Output is correct |
68 |
Correct |
0 ms |
344 KB |
Output is correct |
69 |
Correct |
1 ms |
344 KB |
Output is correct |
70 |
Correct |
1 ms |
344 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
344 KB |
Output is correct |
73 |
Correct |
1 ms |
344 KB |
Output is correct |
74 |
Correct |
0 ms |
344 KB |
Output is correct |
75 |
Correct |
1 ms |
344 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
344 KB |
Output is correct |
79 |
Correct |
0 ms |
344 KB |
Output is correct |
80 |
Correct |
1 ms |
344 KB |
Output is correct |
81 |
Correct |
1 ms |
344 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
344 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
1 ms |
344 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
344 KB |
Output is correct |
89 |
Correct |
1 ms |
344 KB |
Output is correct |
90 |
Correct |
0 ms |
344 KB |
Output is correct |
91 |
Correct |
1 ms |
344 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
344 KB |
Output is correct |
94 |
Correct |
1 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
600 KB |
Output is correct |
99 |
Correct |
1 ms |
344 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
1 ms |
344 KB |
Output is correct |
102 |
Correct |
1 ms |
344 KB |
Output is correct |
103 |
Correct |
0 ms |
344 KB |
Output is correct |
104 |
Correct |
1 ms |
344 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
344 KB |
Output is correct |
107 |
Correct |
1 ms |
344 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
2 ms |
600 KB |
Output is correct |
110 |
Correct |
17 ms |
3160 KB |
Output is correct |
111 |
Correct |
20 ms |
5592 KB |
Output is correct |
112 |
Correct |
8 ms |
4056 KB |
Output is correct |
113 |
Correct |
22 ms |
4056 KB |
Output is correct |
114 |
Correct |
39 ms |
3928 KB |
Output is correct |
115 |
Correct |
29 ms |
3492 KB |
Output is correct |
116 |
Correct |
29 ms |
3672 KB |
Output is correct |
117 |
Correct |
20 ms |
3416 KB |
Output is correct |
118 |
Correct |
22 ms |
3676 KB |
Output is correct |
119 |
Correct |
94 ms |
11220 KB |
Output is correct |
120 |
Correct |
27 ms |
12240 KB |
Output is correct |
121 |
Correct |
41 ms |
12500 KB |
Output is correct |
122 |
Correct |
72 ms |
12116 KB |
Output is correct |
123 |
Correct |
84 ms |
11248 KB |
Output is correct |
124 |
Correct |
330 ms |
42440 KB |
Output is correct |
125 |
Correct |
842 ms |
93600 KB |
Output is correct |
126 |
Correct |
393 ms |
171220 KB |
Output is correct |
127 |
Correct |
474 ms |
170924 KB |
Output is correct |
128 |
Correct |
903 ms |
167584 KB |
Output is correct |
129 |
Correct |
1065 ms |
159164 KB |
Output is correct |
130 |
Correct |
928 ms |
162480 KB |
Output is correct |
131 |
Correct |
808 ms |
97264 KB |
Output is correct |
132 |
Correct |
23 ms |
3164 KB |
Output is correct |
133 |
Correct |
2 ms |
600 KB |
Output is correct |
134 |
Correct |
2 ms |
856 KB |
Output is correct |
135 |
Correct |
17 ms |
3160 KB |
Output is correct |
136 |
Correct |
13 ms |
5024 KB |
Output is correct |
137 |
Correct |
20 ms |
5592 KB |
Output is correct |
138 |
Correct |
9 ms |
4056 KB |
Output is correct |
139 |
Correct |
22 ms |
3672 KB |
Output is correct |
140 |
Correct |
24 ms |
3160 KB |
Output is correct |
141 |
Correct |
14 ms |
4056 KB |
Output is correct |
142 |
Correct |
26 ms |
3928 KB |
Output is correct |
143 |
Correct |
47 ms |
3636 KB |
Output is correct |
144 |
Correct |
8 ms |
5740 KB |
Output is correct |
145 |
Correct |
18 ms |
5232 KB |
Output is correct |
146 |
Correct |
17 ms |
4756 KB |
Output is correct |
147 |
Correct |
27 ms |
3672 KB |
Output is correct |
148 |
Correct |
26 ms |
5724 KB |
Output is correct |
149 |
Correct |
39 ms |
5464 KB |
Output is correct |
150 |
Correct |
29 ms |
3672 KB |
Output is correct |
151 |
Correct |
20 ms |
3416 KB |
Output is correct |
152 |
Correct |
21 ms |
3672 KB |
Output is correct |
153 |
Correct |
20 ms |
3164 KB |
Output is correct |
154 |
Correct |
65 ms |
10332 KB |
Output is correct |
155 |
Correct |
16 ms |
4760 KB |
Output is correct |
156 |
Correct |
86 ms |
11220 KB |
Output is correct |
157 |
Correct |
70 ms |
11712 KB |
Output is correct |
158 |
Correct |
26 ms |
12496 KB |
Output is correct |
159 |
Correct |
59 ms |
11340 KB |
Output is correct |
160 |
Correct |
68 ms |
10072 KB |
Output is correct |
161 |
Correct |
40 ms |
12752 KB |
Output is correct |
162 |
Correct |
72 ms |
11988 KB |
Output is correct |
163 |
Correct |
77 ms |
11344 KB |
Output is correct |
164 |
Correct |
22 ms |
19984 KB |
Output is correct |
165 |
Correct |
37 ms |
18416 KB |
Output is correct |
166 |
Correct |
52 ms |
15788 KB |
Output is correct |
167 |
Correct |
70 ms |
11620 KB |
Output is correct |
168 |
Correct |
87 ms |
19796 KB |
Output is correct |
169 |
Correct |
77 ms |
11412 KB |
Output is correct |
170 |
Correct |
70 ms |
11432 KB |
Output is correct |
171 |
Correct |
55 ms |
11168 KB |
Output is correct |
172 |
Correct |
64 ms |
11412 KB |
Output is correct |
173 |
Correct |
63 ms |
10076 KB |
Output is correct |
174 |
Correct |
82 ms |
12696 KB |
Output is correct |
175 |
Correct |
224 ms |
23096 KB |
Output is correct |
176 |
Correct |
285 ms |
55660 KB |
Output is correct |
177 |
Correct |
704 ms |
86784 KB |
Output is correct |
178 |
Correct |
1002 ms |
157212 KB |
Output is correct |
179 |
Correct |
1053 ms |
161452 KB |
Output is correct |
180 |
Correct |
1038 ms |
160448 KB |
Output is correct |
181 |
Correct |
950 ms |
94724 KB |
Output is correct |
182 |
Correct |
1100 ms |
160252 KB |
Output is correct |
183 |
Correct |
774 ms |
157320 KB |
Output is correct |
184 |
Correct |
1820 ms |
163680 KB |
Output is correct |
185 |
Correct |
1305 ms |
165552 KB |
Output is correct |
186 |
Correct |
1095 ms |
172044 KB |
Output is correct |
187 |
Execution timed out |
2068 ms |
155668 KB |
Time limit exceeded |
188 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
344 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
21 ms |
3160 KB |
Output is correct |
20 |
Correct |
11 ms |
5024 KB |
Output is correct |
21 |
Correct |
9 ms |
4056 KB |
Output is correct |
22 |
Correct |
21 ms |
3672 KB |
Output is correct |
23 |
Correct |
23 ms |
3160 KB |
Output is correct |
24 |
Correct |
8 ms |
5740 KB |
Output is correct |
25 |
Correct |
14 ms |
5228 KB |
Output is correct |
26 |
Correct |
20 ms |
3416 KB |
Output is correct |
27 |
Correct |
21 ms |
3672 KB |
Output is correct |
28 |
Correct |
20 ms |
3160 KB |
Output is correct |
29 |
Correct |
62 ms |
10332 KB |
Output is correct |
30 |
Correct |
19 ms |
4756 KB |
Output is correct |
31 |
Correct |
26 ms |
12312 KB |
Output is correct |
32 |
Correct |
59 ms |
11476 KB |
Output is correct |
33 |
Correct |
67 ms |
10072 KB |
Output is correct |
34 |
Correct |
22 ms |
19980 KB |
Output is correct |
35 |
Correct |
36 ms |
18444 KB |
Output is correct |
36 |
Correct |
55 ms |
11156 KB |
Output is correct |
37 |
Correct |
60 ms |
11416 KB |
Output is correct |
38 |
Correct |
62 ms |
10072 KB |
Output is correct |
39 |
Correct |
950 ms |
148736 KB |
Output is correct |
40 |
Correct |
58 ms |
12180 KB |
Output is correct |
41 |
Correct |
32 ms |
21116 KB |
Output is correct |
42 |
Correct |
112 ms |
20400 KB |
Output is correct |
43 |
Correct |
71 ms |
17272 KB |
Output is correct |
44 |
Correct |
221 ms |
50540 KB |
Output is correct |
45 |
Correct |
329 ms |
86248 KB |
Output is correct |
46 |
Correct |
408 ms |
171404 KB |
Output is correct |
47 |
Correct |
799 ms |
160844 KB |
Output is correct |
48 |
Correct |
1006 ms |
147024 KB |
Output is correct |
49 |
Correct |
194 ms |
162664 KB |
Output is correct |
50 |
Correct |
337 ms |
149352 KB |
Output is correct |
51 |
Correct |
788 ms |
158848 KB |
Output is correct |
52 |
Correct |
845 ms |
160016 KB |
Output is correct |
53 |
Correct |
893 ms |
146828 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
544 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
0 ms |
344 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
344 KB |
Output is correct |
62 |
Correct |
1 ms |
344 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
1 ms |
344 KB |
Output is correct |
67 |
Correct |
1 ms |
344 KB |
Output is correct |
68 |
Correct |
0 ms |
344 KB |
Output is correct |
69 |
Correct |
1 ms |
344 KB |
Output is correct |
70 |
Correct |
1 ms |
344 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
344 KB |
Output is correct |
73 |
Correct |
1 ms |
344 KB |
Output is correct |
74 |
Correct |
0 ms |
344 KB |
Output is correct |
75 |
Correct |
1 ms |
344 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
344 KB |
Output is correct |
79 |
Correct |
0 ms |
344 KB |
Output is correct |
80 |
Correct |
1 ms |
344 KB |
Output is correct |
81 |
Correct |
1 ms |
344 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
344 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
1 ms |
344 KB |
Output is correct |
86 |
Correct |
0 ms |
344 KB |
Output is correct |
87 |
Correct |
1 ms |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
344 KB |
Output is correct |
89 |
Correct |
1 ms |
344 KB |
Output is correct |
90 |
Correct |
0 ms |
344 KB |
Output is correct |
91 |
Correct |
1 ms |
344 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
344 KB |
Output is correct |
94 |
Correct |
1 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
600 KB |
Output is correct |
99 |
Correct |
1 ms |
344 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
1 ms |
344 KB |
Output is correct |
102 |
Correct |
1 ms |
344 KB |
Output is correct |
103 |
Correct |
0 ms |
344 KB |
Output is correct |
104 |
Correct |
1 ms |
344 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
344 KB |
Output is correct |
107 |
Correct |
1 ms |
344 KB |
Output is correct |
108 |
Correct |
1 ms |
344 KB |
Output is correct |
109 |
Correct |
2 ms |
600 KB |
Output is correct |
110 |
Correct |
17 ms |
3160 KB |
Output is correct |
111 |
Correct |
20 ms |
5592 KB |
Output is correct |
112 |
Correct |
8 ms |
4056 KB |
Output is correct |
113 |
Correct |
22 ms |
4056 KB |
Output is correct |
114 |
Correct |
39 ms |
3928 KB |
Output is correct |
115 |
Correct |
29 ms |
3492 KB |
Output is correct |
116 |
Correct |
29 ms |
3672 KB |
Output is correct |
117 |
Correct |
20 ms |
3416 KB |
Output is correct |
118 |
Correct |
22 ms |
3676 KB |
Output is correct |
119 |
Correct |
94 ms |
11220 KB |
Output is correct |
120 |
Correct |
27 ms |
12240 KB |
Output is correct |
121 |
Correct |
41 ms |
12500 KB |
Output is correct |
122 |
Correct |
72 ms |
12116 KB |
Output is correct |
123 |
Correct |
84 ms |
11248 KB |
Output is correct |
124 |
Correct |
330 ms |
42440 KB |
Output is correct |
125 |
Correct |
842 ms |
93600 KB |
Output is correct |
126 |
Correct |
393 ms |
171220 KB |
Output is correct |
127 |
Correct |
474 ms |
170924 KB |
Output is correct |
128 |
Correct |
903 ms |
167584 KB |
Output is correct |
129 |
Correct |
1065 ms |
159164 KB |
Output is correct |
130 |
Correct |
928 ms |
162480 KB |
Output is correct |
131 |
Correct |
808 ms |
97264 KB |
Output is correct |
132 |
Correct |
23 ms |
3164 KB |
Output is correct |
133 |
Correct |
2 ms |
600 KB |
Output is correct |
134 |
Correct |
2 ms |
856 KB |
Output is correct |
135 |
Correct |
17 ms |
3160 KB |
Output is correct |
136 |
Correct |
13 ms |
5024 KB |
Output is correct |
137 |
Correct |
20 ms |
5592 KB |
Output is correct |
138 |
Correct |
9 ms |
4056 KB |
Output is correct |
139 |
Correct |
22 ms |
3672 KB |
Output is correct |
140 |
Correct |
24 ms |
3160 KB |
Output is correct |
141 |
Correct |
14 ms |
4056 KB |
Output is correct |
142 |
Correct |
26 ms |
3928 KB |
Output is correct |
143 |
Correct |
47 ms |
3636 KB |
Output is correct |
144 |
Correct |
8 ms |
5740 KB |
Output is correct |
145 |
Correct |
18 ms |
5232 KB |
Output is correct |
146 |
Correct |
17 ms |
4756 KB |
Output is correct |
147 |
Correct |
27 ms |
3672 KB |
Output is correct |
148 |
Correct |
26 ms |
5724 KB |
Output is correct |
149 |
Correct |
39 ms |
5464 KB |
Output is correct |
150 |
Correct |
29 ms |
3672 KB |
Output is correct |
151 |
Correct |
20 ms |
3416 KB |
Output is correct |
152 |
Correct |
21 ms |
3672 KB |
Output is correct |
153 |
Correct |
20 ms |
3164 KB |
Output is correct |
154 |
Correct |
65 ms |
10332 KB |
Output is correct |
155 |
Correct |
16 ms |
4760 KB |
Output is correct |
156 |
Correct |
86 ms |
11220 KB |
Output is correct |
157 |
Correct |
70 ms |
11712 KB |
Output is correct |
158 |
Correct |
26 ms |
12496 KB |
Output is correct |
159 |
Correct |
59 ms |
11340 KB |
Output is correct |
160 |
Correct |
68 ms |
10072 KB |
Output is correct |
161 |
Correct |
40 ms |
12752 KB |
Output is correct |
162 |
Correct |
72 ms |
11988 KB |
Output is correct |
163 |
Correct |
77 ms |
11344 KB |
Output is correct |
164 |
Correct |
22 ms |
19984 KB |
Output is correct |
165 |
Correct |
37 ms |
18416 KB |
Output is correct |
166 |
Correct |
52 ms |
15788 KB |
Output is correct |
167 |
Correct |
70 ms |
11620 KB |
Output is correct |
168 |
Correct |
87 ms |
19796 KB |
Output is correct |
169 |
Correct |
77 ms |
11412 KB |
Output is correct |
170 |
Correct |
70 ms |
11432 KB |
Output is correct |
171 |
Correct |
55 ms |
11168 KB |
Output is correct |
172 |
Correct |
64 ms |
11412 KB |
Output is correct |
173 |
Correct |
63 ms |
10076 KB |
Output is correct |
174 |
Correct |
82 ms |
12696 KB |
Output is correct |
175 |
Correct |
224 ms |
23096 KB |
Output is correct |
176 |
Correct |
285 ms |
55660 KB |
Output is correct |
177 |
Correct |
704 ms |
86784 KB |
Output is correct |
178 |
Correct |
1002 ms |
157212 KB |
Output is correct |
179 |
Correct |
1053 ms |
161452 KB |
Output is correct |
180 |
Correct |
1038 ms |
160448 KB |
Output is correct |
181 |
Correct |
950 ms |
94724 KB |
Output is correct |
182 |
Correct |
1100 ms |
160252 KB |
Output is correct |
183 |
Correct |
774 ms |
157320 KB |
Output is correct |
184 |
Correct |
1820 ms |
163680 KB |
Output is correct |
185 |
Correct |
1305 ms |
165552 KB |
Output is correct |
186 |
Correct |
1095 ms |
172044 KB |
Output is correct |
187 |
Execution timed out |
2068 ms |
155668 KB |
Time limit exceeded |
188 |
Halted |
0 ms |
0 KB |
- |