#include <bits/stdc++.h>
struct node {
int x, y, free, dist;
node() = default;
node(int x, int y, int free, int dist) : x(x), y(y), free(free), dist(dist) {}
};
std::vector<std::pair<int, int>> dir1 = {
{0, 1},
{0, -1},
{1, 0},
{-1, 0}
};
std::vector<std::pair<int, int>> dir2 = {
{1, 1},
{1, -1},
{-1, 1},
{-1, -1}
};
int main() {
std::cin.tie(nullptr)->sync_with_stdio(false);
int r, c, n;
std::cin >> r >> c >> n;
int sx, sy, fx, fy;
std::cin >> sx >> sy >> fx >> fy;
--sx, --sy, --fx, --fy;
std::vector a(r, std::vector(c, '#'));
for (auto& i : a) {
for (auto& j : i) {
std::cin >> j;
}
}
std::queue<node> cur, nxt;
std::vector used(r, std::vector(c, false));
cur.emplace(sx, sy, 0, 0);
while (cur.size() || nxt.size()) {
if (cur.empty()) std::swap(cur, nxt);
node u = cur.front();
cur.pop();
if (u.x == fx && u.y == fy) {
std::cout << u.dist << '\n';
break;
}
if (used[u.x][u.y]) continue;
used[u.x][u.y] = true;
for (auto [dx, dy] : dir1) {
int i = u.x + dx, j = u.y + dy;
if (i < 0 || i >= r || j < 0 || j >= c) continue;
if (a[i][j] == '.') {
cur.emplace(i, j, std::max(u.free - 1, 0), u.dist);
}
if (u.free == 0) {
nxt.emplace(i, j, n - 1, u.dist + 1);
} else {
cur.emplace(i, j, u.free - 1, u.dist);
}
}
for (auto [dx, dy] : dir2) {
int i = u.x + dx, j = u.y + dy;
if (i < 0 || i >= r || j < 0 || j >= c) continue;
if (u.free >= 2) {
cur.emplace(i, j, u.free - 1, u.dist);
} else if (n >= 2) {
nxt.emplace(i, j, n - 1, u.dist + 1);
}
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
4 ms |
572 KB |
Output is correct |
20 |
Correct |
2 ms |
348 KB |
Output is correct |
21 |
Correct |
5 ms |
3676 KB |
Output is correct |
22 |
Correct |
6 ms |
684 KB |
Output is correct |
23 |
Correct |
4 ms |
348 KB |
Output is correct |
24 |
Correct |
3 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
420 KB |
Output is correct |
26 |
Correct |
1 ms |
604 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
2 ms |
604 KB |
Output is correct |
29 |
Correct |
12 ms |
600 KB |
Output is correct |
30 |
Correct |
4 ms |
348 KB |
Output is correct |
31 |
Correct |
14 ms |
9452 KB |
Output is correct |
32 |
Correct |
16 ms |
756 KB |
Output is correct |
33 |
Correct |
10 ms |
856 KB |
Output is correct |
34 |
Correct |
9 ms |
604 KB |
Output is correct |
35 |
Correct |
6 ms |
604 KB |
Output is correct |
36 |
Correct |
10 ms |
1628 KB |
Output is correct |
37 |
Correct |
13 ms |
1112 KB |
Output is correct |
38 |
Correct |
4 ms |
604 KB |
Output is correct |
39 |
Correct |
117 ms |
2356 KB |
Output is correct |
40 |
Correct |
6 ms |
600 KB |
Output is correct |
41 |
Correct |
6 ms |
676 KB |
Output is correct |
42 |
Correct |
20 ms |
604 KB |
Output is correct |
43 |
Correct |
15 ms |
604 KB |
Output is correct |
44 |
Correct |
32 ms |
1316 KB |
Output is correct |
45 |
Correct |
29 ms |
1368 KB |
Output is correct |
46 |
Correct |
56 ms |
25156 KB |
Output is correct |
47 |
Correct |
167 ms |
2656 KB |
Output is correct |
48 |
Correct |
81 ms |
2140 KB |
Output is correct |
49 |
Correct |
68 ms |
3164 KB |
Output is correct |
50 |
Correct |
48 ms |
3160 KB |
Output is correct |
51 |
Correct |
124 ms |
6116 KB |
Output is correct |
52 |
Correct |
91 ms |
3420 KB |
Output is correct |
53 |
Correct |
98 ms |
2676 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
600 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 |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
1 ms |
348 KB |
Output is correct |
26 |
Correct |
1 ms |
500 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
556 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
344 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
456 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
452 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
604 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
344 KB |
Output is correct |
25 |
Correct |
1 ms |
600 KB |
Output is correct |
26 |
Correct |
6 ms |
4440 KB |
Output is correct |
27 |
Correct |
6 ms |
3676 KB |
Output is correct |
28 |
Correct |
7 ms |
6404 KB |
Output is correct |
29 |
Correct |
7 ms |
604 KB |
Output is correct |
30 |
Correct |
4 ms |
604 KB |
Output is correct |
31 |
Correct |
4 ms |
604 KB |
Output is correct |
32 |
Correct |
1 ms |
768 KB |
Output is correct |
33 |
Correct |
1 ms |
604 KB |
Output is correct |
34 |
Correct |
13 ms |
9652 KB |
Output is correct |
35 |
Correct |
14 ms |
9708 KB |
Output is correct |
36 |
Correct |
20 ms |
16912 KB |
Output is correct |
37 |
Correct |
13 ms |
860 KB |
Output is correct |
38 |
Correct |
14 ms |
860 KB |
Output is correct |
39 |
Correct |
40 ms |
27408 KB |
Output is correct |
40 |
Correct |
157 ms |
108936 KB |
Output is correct |
41 |
Correct |
47 ms |
26556 KB |
Output is correct |
42 |
Correct |
228 ms |
170232 KB |
Output is correct |
43 |
Correct |
147 ms |
3920 KB |
Output is correct |
44 |
Correct |
149 ms |
3924 KB |
Output is correct |
45 |
Correct |
175 ms |
100876 KB |
Output is correct |
46 |
Correct |
144 ms |
91740 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
600 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 |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
1 ms |
348 KB |
Output is correct |
26 |
Correct |
1 ms |
500 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
556 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
4 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
604 KB |
Output is correct |
37 |
Correct |
2 ms |
592 KB |
Output is correct |
38 |
Correct |
6 ms |
4452 KB |
Output is correct |
39 |
Correct |
5 ms |
3676 KB |
Output is correct |
40 |
Correct |
6 ms |
604 KB |
Output is correct |
41 |
Correct |
5 ms |
588 KB |
Output is correct |
42 |
Correct |
8 ms |
6228 KB |
Output is correct |
43 |
Correct |
8 ms |
604 KB |
Output is correct |
44 |
Correct |
4 ms |
604 KB |
Output is correct |
45 |
Correct |
3 ms |
600 KB |
Output is correct |
46 |
Correct |
2 ms |
468 KB |
Output is correct |
47 |
Correct |
7 ms |
604 KB |
Output is correct |
48 |
Correct |
7 ms |
604 KB |
Output is correct |
49 |
Correct |
6 ms |
600 KB |
Output is correct |
50 |
Correct |
8 ms |
604 KB |
Output is correct |
51 |
Correct |
4 ms |
604 KB |
Output is correct |
52 |
Correct |
1 ms |
604 KB |
Output is correct |
53 |
Correct |
1 ms |
604 KB |
Output is correct |
54 |
Correct |
4 ms |
604 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
600 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 |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
1 ms |
348 KB |
Output is correct |
26 |
Correct |
1 ms |
500 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
556 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
4 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
604 KB |
Output is correct |
37 |
Correct |
2 ms |
592 KB |
Output is correct |
38 |
Correct |
6 ms |
4452 KB |
Output is correct |
39 |
Correct |
5 ms |
3676 KB |
Output is correct |
40 |
Correct |
6 ms |
604 KB |
Output is correct |
41 |
Correct |
5 ms |
588 KB |
Output is correct |
42 |
Correct |
8 ms |
6228 KB |
Output is correct |
43 |
Correct |
8 ms |
604 KB |
Output is correct |
44 |
Correct |
4 ms |
604 KB |
Output is correct |
45 |
Correct |
3 ms |
600 KB |
Output is correct |
46 |
Correct |
2 ms |
468 KB |
Output is correct |
47 |
Correct |
7 ms |
604 KB |
Output is correct |
48 |
Correct |
7 ms |
604 KB |
Output is correct |
49 |
Correct |
6 ms |
600 KB |
Output is correct |
50 |
Correct |
8 ms |
604 KB |
Output is correct |
51 |
Correct |
4 ms |
604 KB |
Output is correct |
52 |
Correct |
1 ms |
604 KB |
Output is correct |
53 |
Correct |
1 ms |
604 KB |
Output is correct |
54 |
Correct |
4 ms |
604 KB |
Output is correct |
55 |
Correct |
11 ms |
604 KB |
Output is correct |
56 |
Correct |
4 ms |
348 KB |
Output is correct |
57 |
Correct |
13 ms |
9588 KB |
Output is correct |
58 |
Correct |
15 ms |
600 KB |
Output is correct |
59 |
Correct |
15 ms |
9708 KB |
Output is correct |
60 |
Correct |
16 ms |
860 KB |
Output is correct |
61 |
Correct |
10 ms |
604 KB |
Output is correct |
62 |
Correct |
19 ms |
16912 KB |
Output is correct |
63 |
Correct |
12 ms |
860 KB |
Output is correct |
64 |
Correct |
20 ms |
1368 KB |
Output is correct |
65 |
Correct |
9 ms |
708 KB |
Output is correct |
66 |
Correct |
6 ms |
712 KB |
Output is correct |
67 |
Correct |
17 ms |
604 KB |
Output is correct |
68 |
Correct |
20 ms |
604 KB |
Output is correct |
69 |
Correct |
21 ms |
852 KB |
Output is correct |
70 |
Correct |
22 ms |
604 KB |
Output is correct |
71 |
Correct |
20 ms |
604 KB |
Output is correct |
72 |
Correct |
10 ms |
1704 KB |
Output is correct |
73 |
Correct |
13 ms |
1116 KB |
Output is correct |
74 |
Correct |
2 ms |
860 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
4 ms |
572 KB |
Output is correct |
20 |
Correct |
2 ms |
348 KB |
Output is correct |
21 |
Correct |
5 ms |
3676 KB |
Output is correct |
22 |
Correct |
6 ms |
684 KB |
Output is correct |
23 |
Correct |
4 ms |
348 KB |
Output is correct |
24 |
Correct |
3 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
420 KB |
Output is correct |
26 |
Correct |
1 ms |
604 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
2 ms |
604 KB |
Output is correct |
29 |
Correct |
12 ms |
600 KB |
Output is correct |
30 |
Correct |
4 ms |
348 KB |
Output is correct |
31 |
Correct |
14 ms |
9452 KB |
Output is correct |
32 |
Correct |
16 ms |
756 KB |
Output is correct |
33 |
Correct |
10 ms |
856 KB |
Output is correct |
34 |
Correct |
9 ms |
604 KB |
Output is correct |
35 |
Correct |
6 ms |
604 KB |
Output is correct |
36 |
Correct |
10 ms |
1628 KB |
Output is correct |
37 |
Correct |
13 ms |
1112 KB |
Output is correct |
38 |
Correct |
4 ms |
604 KB |
Output is correct |
39 |
Correct |
117 ms |
2356 KB |
Output is correct |
40 |
Correct |
6 ms |
600 KB |
Output is correct |
41 |
Correct |
6 ms |
676 KB |
Output is correct |
42 |
Correct |
20 ms |
604 KB |
Output is correct |
43 |
Correct |
15 ms |
604 KB |
Output is correct |
44 |
Correct |
32 ms |
1316 KB |
Output is correct |
45 |
Correct |
29 ms |
1368 KB |
Output is correct |
46 |
Correct |
56 ms |
25156 KB |
Output is correct |
47 |
Correct |
167 ms |
2656 KB |
Output is correct |
48 |
Correct |
81 ms |
2140 KB |
Output is correct |
49 |
Correct |
68 ms |
3164 KB |
Output is correct |
50 |
Correct |
48 ms |
3160 KB |
Output is correct |
51 |
Correct |
124 ms |
6116 KB |
Output is correct |
52 |
Correct |
91 ms |
3420 KB |
Output is correct |
53 |
Correct |
98 ms |
2676 KB |
Output is correct |
54 |
Correct |
1 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 |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
600 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 |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
344 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
1 ms |
348 KB |
Output is correct |
79 |
Correct |
1 ms |
500 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
556 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
456 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
344 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
452 KB |
Output is correct |
104 |
Correct |
1 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
344 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
1 ms |
604 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
344 KB |
Output is correct |
110 |
Correct |
1 ms |
600 KB |
Output is correct |
111 |
Correct |
6 ms |
4440 KB |
Output is correct |
112 |
Correct |
6 ms |
3676 KB |
Output is correct |
113 |
Correct |
7 ms |
6404 KB |
Output is correct |
114 |
Correct |
7 ms |
604 KB |
Output is correct |
115 |
Correct |
4 ms |
604 KB |
Output is correct |
116 |
Correct |
4 ms |
604 KB |
Output is correct |
117 |
Correct |
1 ms |
768 KB |
Output is correct |
118 |
Correct |
1 ms |
604 KB |
Output is correct |
119 |
Correct |
13 ms |
9652 KB |
Output is correct |
120 |
Correct |
14 ms |
9708 KB |
Output is correct |
121 |
Correct |
20 ms |
16912 KB |
Output is correct |
122 |
Correct |
13 ms |
860 KB |
Output is correct |
123 |
Correct |
14 ms |
860 KB |
Output is correct |
124 |
Correct |
40 ms |
27408 KB |
Output is correct |
125 |
Correct |
157 ms |
108936 KB |
Output is correct |
126 |
Correct |
47 ms |
26556 KB |
Output is correct |
127 |
Correct |
228 ms |
170232 KB |
Output is correct |
128 |
Correct |
147 ms |
3920 KB |
Output is correct |
129 |
Correct |
149 ms |
3924 KB |
Output is correct |
130 |
Correct |
175 ms |
100876 KB |
Output is correct |
131 |
Correct |
144 ms |
91740 KB |
Output is correct |
132 |
Correct |
4 ms |
604 KB |
Output is correct |
133 |
Correct |
0 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
1 ms |
604 KB |
Output is correct |
136 |
Correct |
2 ms |
592 KB |
Output is correct |
137 |
Correct |
6 ms |
4452 KB |
Output is correct |
138 |
Correct |
5 ms |
3676 KB |
Output is correct |
139 |
Correct |
6 ms |
604 KB |
Output is correct |
140 |
Correct |
5 ms |
588 KB |
Output is correct |
141 |
Correct |
8 ms |
6228 KB |
Output is correct |
142 |
Correct |
8 ms |
604 KB |
Output is correct |
143 |
Correct |
4 ms |
604 KB |
Output is correct |
144 |
Correct |
3 ms |
600 KB |
Output is correct |
145 |
Correct |
2 ms |
468 KB |
Output is correct |
146 |
Correct |
7 ms |
604 KB |
Output is correct |
147 |
Correct |
7 ms |
604 KB |
Output is correct |
148 |
Correct |
6 ms |
600 KB |
Output is correct |
149 |
Correct |
8 ms |
604 KB |
Output is correct |
150 |
Correct |
4 ms |
604 KB |
Output is correct |
151 |
Correct |
1 ms |
604 KB |
Output is correct |
152 |
Correct |
1 ms |
604 KB |
Output is correct |
153 |
Correct |
4 ms |
604 KB |
Output is correct |
154 |
Correct |
11 ms |
604 KB |
Output is correct |
155 |
Correct |
4 ms |
348 KB |
Output is correct |
156 |
Correct |
13 ms |
9588 KB |
Output is correct |
157 |
Correct |
15 ms |
600 KB |
Output is correct |
158 |
Correct |
15 ms |
9708 KB |
Output is correct |
159 |
Correct |
16 ms |
860 KB |
Output is correct |
160 |
Correct |
10 ms |
604 KB |
Output is correct |
161 |
Correct |
19 ms |
16912 KB |
Output is correct |
162 |
Correct |
12 ms |
860 KB |
Output is correct |
163 |
Correct |
20 ms |
1368 KB |
Output is correct |
164 |
Correct |
9 ms |
708 KB |
Output is correct |
165 |
Correct |
6 ms |
712 KB |
Output is correct |
166 |
Correct |
17 ms |
604 KB |
Output is correct |
167 |
Correct |
20 ms |
604 KB |
Output is correct |
168 |
Correct |
21 ms |
852 KB |
Output is correct |
169 |
Correct |
22 ms |
604 KB |
Output is correct |
170 |
Correct |
20 ms |
604 KB |
Output is correct |
171 |
Correct |
10 ms |
1704 KB |
Output is correct |
172 |
Correct |
13 ms |
1116 KB |
Output is correct |
173 |
Correct |
2 ms |
860 KB |
Output is correct |
174 |
Correct |
9 ms |
860 KB |
Output is correct |
175 |
Correct |
45 ms |
1180 KB |
Output is correct |
176 |
Correct |
36 ms |
1888 KB |
Output is correct |
177 |
Correct |
96 ms |
2544 KB |
Output is correct |
178 |
Correct |
20 ms |
3164 KB |
Output is correct |
179 |
Correct |
127 ms |
3680 KB |
Output is correct |
180 |
Correct |
209 ms |
3632 KB |
Output is correct |
181 |
Correct |
216 ms |
3668 KB |
Output is correct |
182 |
Correct |
226 ms |
3724 KB |
Output is correct |
183 |
Correct |
230 ms |
20036 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
4 ms |
572 KB |
Output is correct |
20 |
Correct |
2 ms |
348 KB |
Output is correct |
21 |
Correct |
5 ms |
3676 KB |
Output is correct |
22 |
Correct |
6 ms |
684 KB |
Output is correct |
23 |
Correct |
4 ms |
348 KB |
Output is correct |
24 |
Correct |
3 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
420 KB |
Output is correct |
26 |
Correct |
1 ms |
604 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
2 ms |
604 KB |
Output is correct |
29 |
Correct |
12 ms |
600 KB |
Output is correct |
30 |
Correct |
4 ms |
348 KB |
Output is correct |
31 |
Correct |
14 ms |
9452 KB |
Output is correct |
32 |
Correct |
16 ms |
756 KB |
Output is correct |
33 |
Correct |
10 ms |
856 KB |
Output is correct |
34 |
Correct |
9 ms |
604 KB |
Output is correct |
35 |
Correct |
6 ms |
604 KB |
Output is correct |
36 |
Correct |
10 ms |
1628 KB |
Output is correct |
37 |
Correct |
13 ms |
1112 KB |
Output is correct |
38 |
Correct |
4 ms |
604 KB |
Output is correct |
39 |
Correct |
117 ms |
2356 KB |
Output is correct |
40 |
Correct |
6 ms |
600 KB |
Output is correct |
41 |
Correct |
6 ms |
676 KB |
Output is correct |
42 |
Correct |
20 ms |
604 KB |
Output is correct |
43 |
Correct |
15 ms |
604 KB |
Output is correct |
44 |
Correct |
32 ms |
1316 KB |
Output is correct |
45 |
Correct |
29 ms |
1368 KB |
Output is correct |
46 |
Correct |
56 ms |
25156 KB |
Output is correct |
47 |
Correct |
167 ms |
2656 KB |
Output is correct |
48 |
Correct |
81 ms |
2140 KB |
Output is correct |
49 |
Correct |
68 ms |
3164 KB |
Output is correct |
50 |
Correct |
48 ms |
3160 KB |
Output is correct |
51 |
Correct |
124 ms |
6116 KB |
Output is correct |
52 |
Correct |
91 ms |
3420 KB |
Output is correct |
53 |
Correct |
98 ms |
2676 KB |
Output is correct |
54 |
Correct |
1 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 |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
600 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 |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
344 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
1 ms |
348 KB |
Output is correct |
79 |
Correct |
1 ms |
500 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
556 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
456 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
344 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
452 KB |
Output is correct |
104 |
Correct |
1 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
344 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
1 ms |
604 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
344 KB |
Output is correct |
110 |
Correct |
1 ms |
600 KB |
Output is correct |
111 |
Correct |
6 ms |
4440 KB |
Output is correct |
112 |
Correct |
6 ms |
3676 KB |
Output is correct |
113 |
Correct |
7 ms |
6404 KB |
Output is correct |
114 |
Correct |
7 ms |
604 KB |
Output is correct |
115 |
Correct |
4 ms |
604 KB |
Output is correct |
116 |
Correct |
4 ms |
604 KB |
Output is correct |
117 |
Correct |
1 ms |
768 KB |
Output is correct |
118 |
Correct |
1 ms |
604 KB |
Output is correct |
119 |
Correct |
13 ms |
9652 KB |
Output is correct |
120 |
Correct |
14 ms |
9708 KB |
Output is correct |
121 |
Correct |
20 ms |
16912 KB |
Output is correct |
122 |
Correct |
13 ms |
860 KB |
Output is correct |
123 |
Correct |
14 ms |
860 KB |
Output is correct |
124 |
Correct |
40 ms |
27408 KB |
Output is correct |
125 |
Correct |
157 ms |
108936 KB |
Output is correct |
126 |
Correct |
47 ms |
26556 KB |
Output is correct |
127 |
Correct |
228 ms |
170232 KB |
Output is correct |
128 |
Correct |
147 ms |
3920 KB |
Output is correct |
129 |
Correct |
149 ms |
3924 KB |
Output is correct |
130 |
Correct |
175 ms |
100876 KB |
Output is correct |
131 |
Correct |
144 ms |
91740 KB |
Output is correct |
132 |
Correct |
4 ms |
604 KB |
Output is correct |
133 |
Correct |
0 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
1 ms |
604 KB |
Output is correct |
136 |
Correct |
2 ms |
592 KB |
Output is correct |
137 |
Correct |
6 ms |
4452 KB |
Output is correct |
138 |
Correct |
5 ms |
3676 KB |
Output is correct |
139 |
Correct |
6 ms |
604 KB |
Output is correct |
140 |
Correct |
5 ms |
588 KB |
Output is correct |
141 |
Correct |
8 ms |
6228 KB |
Output is correct |
142 |
Correct |
8 ms |
604 KB |
Output is correct |
143 |
Correct |
4 ms |
604 KB |
Output is correct |
144 |
Correct |
3 ms |
600 KB |
Output is correct |
145 |
Correct |
2 ms |
468 KB |
Output is correct |
146 |
Correct |
7 ms |
604 KB |
Output is correct |
147 |
Correct |
7 ms |
604 KB |
Output is correct |
148 |
Correct |
6 ms |
600 KB |
Output is correct |
149 |
Correct |
8 ms |
604 KB |
Output is correct |
150 |
Correct |
4 ms |
604 KB |
Output is correct |
151 |
Correct |
1 ms |
604 KB |
Output is correct |
152 |
Correct |
1 ms |
604 KB |
Output is correct |
153 |
Correct |
4 ms |
604 KB |
Output is correct |
154 |
Correct |
11 ms |
604 KB |
Output is correct |
155 |
Correct |
4 ms |
348 KB |
Output is correct |
156 |
Correct |
13 ms |
9588 KB |
Output is correct |
157 |
Correct |
15 ms |
600 KB |
Output is correct |
158 |
Correct |
15 ms |
9708 KB |
Output is correct |
159 |
Correct |
16 ms |
860 KB |
Output is correct |
160 |
Correct |
10 ms |
604 KB |
Output is correct |
161 |
Correct |
19 ms |
16912 KB |
Output is correct |
162 |
Correct |
12 ms |
860 KB |
Output is correct |
163 |
Correct |
20 ms |
1368 KB |
Output is correct |
164 |
Correct |
9 ms |
708 KB |
Output is correct |
165 |
Correct |
6 ms |
712 KB |
Output is correct |
166 |
Correct |
17 ms |
604 KB |
Output is correct |
167 |
Correct |
20 ms |
604 KB |
Output is correct |
168 |
Correct |
21 ms |
852 KB |
Output is correct |
169 |
Correct |
22 ms |
604 KB |
Output is correct |
170 |
Correct |
20 ms |
604 KB |
Output is correct |
171 |
Correct |
10 ms |
1704 KB |
Output is correct |
172 |
Correct |
13 ms |
1116 KB |
Output is correct |
173 |
Correct |
2 ms |
860 KB |
Output is correct |
174 |
Correct |
9 ms |
860 KB |
Output is correct |
175 |
Correct |
45 ms |
1180 KB |
Output is correct |
176 |
Correct |
36 ms |
1888 KB |
Output is correct |
177 |
Correct |
96 ms |
2544 KB |
Output is correct |
178 |
Correct |
20 ms |
3164 KB |
Output is correct |
179 |
Correct |
127 ms |
3680 KB |
Output is correct |
180 |
Correct |
209 ms |
3632 KB |
Output is correct |
181 |
Correct |
216 ms |
3668 KB |
Output is correct |
182 |
Correct |
226 ms |
3724 KB |
Output is correct |
183 |
Correct |
230 ms |
20036 KB |
Output is correct |
184 |
Correct |
271 ms |
7000 KB |
Output is correct |
185 |
Correct |
67 ms |
3772 KB |
Output is correct |
186 |
Correct |
182 ms |
125508 KB |
Output is correct |
187 |
Correct |
46 ms |
5212 KB |
Output is correct |
188 |
Correct |
337 ms |
196160 KB |
Output is correct |
189 |
Correct |
269 ms |
7760 KB |
Output is correct |
190 |
Correct |
93 ms |
6948 KB |
Output is correct |
191 |
Correct |
640 ms |
387528 KB |
Output is correct |
192 |
Correct |
427 ms |
7760 KB |
Output is correct |
193 |
Correct |
306 ms |
7132 KB |
Output is correct |
194 |
Correct |
158 ms |
6888 KB |
Output is correct |
195 |
Correct |
86 ms |
6888 KB |
Output is correct |
196 |
Correct |
439 ms |
6752 KB |
Output is correct |
197 |
Correct |
216 ms |
6752 KB |
Output is correct |
198 |
Correct |
221 ms |
6836 KB |
Output is correct |
199 |
Correct |
433 ms |
6740 KB |
Output is correct |
200 |
Correct |
155 ms |
12328 KB |
Output is correct |
201 |
Correct |
220 ms |
9052 KB |
Output is correct |
202 |
Correct |
227 ms |
7504 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
344 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
4 ms |
572 KB |
Output is correct |
20 |
Correct |
2 ms |
348 KB |
Output is correct |
21 |
Correct |
5 ms |
3676 KB |
Output is correct |
22 |
Correct |
6 ms |
684 KB |
Output is correct |
23 |
Correct |
4 ms |
348 KB |
Output is correct |
24 |
Correct |
3 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
420 KB |
Output is correct |
26 |
Correct |
1 ms |
604 KB |
Output is correct |
27 |
Correct |
1 ms |
604 KB |
Output is correct |
28 |
Correct |
2 ms |
604 KB |
Output is correct |
29 |
Correct |
12 ms |
600 KB |
Output is correct |
30 |
Correct |
4 ms |
348 KB |
Output is correct |
31 |
Correct |
14 ms |
9452 KB |
Output is correct |
32 |
Correct |
16 ms |
756 KB |
Output is correct |
33 |
Correct |
10 ms |
856 KB |
Output is correct |
34 |
Correct |
9 ms |
604 KB |
Output is correct |
35 |
Correct |
6 ms |
604 KB |
Output is correct |
36 |
Correct |
10 ms |
1628 KB |
Output is correct |
37 |
Correct |
13 ms |
1112 KB |
Output is correct |
38 |
Correct |
4 ms |
604 KB |
Output is correct |
39 |
Correct |
117 ms |
2356 KB |
Output is correct |
40 |
Correct |
6 ms |
600 KB |
Output is correct |
41 |
Correct |
6 ms |
676 KB |
Output is correct |
42 |
Correct |
20 ms |
604 KB |
Output is correct |
43 |
Correct |
15 ms |
604 KB |
Output is correct |
44 |
Correct |
32 ms |
1316 KB |
Output is correct |
45 |
Correct |
29 ms |
1368 KB |
Output is correct |
46 |
Correct |
56 ms |
25156 KB |
Output is correct |
47 |
Correct |
167 ms |
2656 KB |
Output is correct |
48 |
Correct |
81 ms |
2140 KB |
Output is correct |
49 |
Correct |
68 ms |
3164 KB |
Output is correct |
50 |
Correct |
48 ms |
3160 KB |
Output is correct |
51 |
Correct |
124 ms |
6116 KB |
Output is correct |
52 |
Correct |
91 ms |
3420 KB |
Output is correct |
53 |
Correct |
98 ms |
2676 KB |
Output is correct |
54 |
Correct |
1 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 |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
600 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 |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
344 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
1 ms |
348 KB |
Output is correct |
79 |
Correct |
1 ms |
500 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
556 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
344 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
456 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
344 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
452 KB |
Output is correct |
104 |
Correct |
1 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
344 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
1 ms |
604 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
344 KB |
Output is correct |
110 |
Correct |
1 ms |
600 KB |
Output is correct |
111 |
Correct |
6 ms |
4440 KB |
Output is correct |
112 |
Correct |
6 ms |
3676 KB |
Output is correct |
113 |
Correct |
7 ms |
6404 KB |
Output is correct |
114 |
Correct |
7 ms |
604 KB |
Output is correct |
115 |
Correct |
4 ms |
604 KB |
Output is correct |
116 |
Correct |
4 ms |
604 KB |
Output is correct |
117 |
Correct |
1 ms |
768 KB |
Output is correct |
118 |
Correct |
1 ms |
604 KB |
Output is correct |
119 |
Correct |
13 ms |
9652 KB |
Output is correct |
120 |
Correct |
14 ms |
9708 KB |
Output is correct |
121 |
Correct |
20 ms |
16912 KB |
Output is correct |
122 |
Correct |
13 ms |
860 KB |
Output is correct |
123 |
Correct |
14 ms |
860 KB |
Output is correct |
124 |
Correct |
40 ms |
27408 KB |
Output is correct |
125 |
Correct |
157 ms |
108936 KB |
Output is correct |
126 |
Correct |
47 ms |
26556 KB |
Output is correct |
127 |
Correct |
228 ms |
170232 KB |
Output is correct |
128 |
Correct |
147 ms |
3920 KB |
Output is correct |
129 |
Correct |
149 ms |
3924 KB |
Output is correct |
130 |
Correct |
175 ms |
100876 KB |
Output is correct |
131 |
Correct |
144 ms |
91740 KB |
Output is correct |
132 |
Correct |
4 ms |
604 KB |
Output is correct |
133 |
Correct |
0 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
1 ms |
604 KB |
Output is correct |
136 |
Correct |
2 ms |
592 KB |
Output is correct |
137 |
Correct |
6 ms |
4452 KB |
Output is correct |
138 |
Correct |
5 ms |
3676 KB |
Output is correct |
139 |
Correct |
6 ms |
604 KB |
Output is correct |
140 |
Correct |
5 ms |
588 KB |
Output is correct |
141 |
Correct |
8 ms |
6228 KB |
Output is correct |
142 |
Correct |
8 ms |
604 KB |
Output is correct |
143 |
Correct |
4 ms |
604 KB |
Output is correct |
144 |
Correct |
3 ms |
600 KB |
Output is correct |
145 |
Correct |
2 ms |
468 KB |
Output is correct |
146 |
Correct |
7 ms |
604 KB |
Output is correct |
147 |
Correct |
7 ms |
604 KB |
Output is correct |
148 |
Correct |
6 ms |
600 KB |
Output is correct |
149 |
Correct |
8 ms |
604 KB |
Output is correct |
150 |
Correct |
4 ms |
604 KB |
Output is correct |
151 |
Correct |
1 ms |
604 KB |
Output is correct |
152 |
Correct |
1 ms |
604 KB |
Output is correct |
153 |
Correct |
4 ms |
604 KB |
Output is correct |
154 |
Correct |
11 ms |
604 KB |
Output is correct |
155 |
Correct |
4 ms |
348 KB |
Output is correct |
156 |
Correct |
13 ms |
9588 KB |
Output is correct |
157 |
Correct |
15 ms |
600 KB |
Output is correct |
158 |
Correct |
15 ms |
9708 KB |
Output is correct |
159 |
Correct |
16 ms |
860 KB |
Output is correct |
160 |
Correct |
10 ms |
604 KB |
Output is correct |
161 |
Correct |
19 ms |
16912 KB |
Output is correct |
162 |
Correct |
12 ms |
860 KB |
Output is correct |
163 |
Correct |
20 ms |
1368 KB |
Output is correct |
164 |
Correct |
9 ms |
708 KB |
Output is correct |
165 |
Correct |
6 ms |
712 KB |
Output is correct |
166 |
Correct |
17 ms |
604 KB |
Output is correct |
167 |
Correct |
20 ms |
604 KB |
Output is correct |
168 |
Correct |
21 ms |
852 KB |
Output is correct |
169 |
Correct |
22 ms |
604 KB |
Output is correct |
170 |
Correct |
20 ms |
604 KB |
Output is correct |
171 |
Correct |
10 ms |
1704 KB |
Output is correct |
172 |
Correct |
13 ms |
1116 KB |
Output is correct |
173 |
Correct |
2 ms |
860 KB |
Output is correct |
174 |
Correct |
9 ms |
860 KB |
Output is correct |
175 |
Correct |
45 ms |
1180 KB |
Output is correct |
176 |
Correct |
36 ms |
1888 KB |
Output is correct |
177 |
Correct |
96 ms |
2544 KB |
Output is correct |
178 |
Correct |
20 ms |
3164 KB |
Output is correct |
179 |
Correct |
127 ms |
3680 KB |
Output is correct |
180 |
Correct |
209 ms |
3632 KB |
Output is correct |
181 |
Correct |
216 ms |
3668 KB |
Output is correct |
182 |
Correct |
226 ms |
3724 KB |
Output is correct |
183 |
Correct |
230 ms |
20036 KB |
Output is correct |
184 |
Correct |
271 ms |
7000 KB |
Output is correct |
185 |
Correct |
67 ms |
3772 KB |
Output is correct |
186 |
Correct |
182 ms |
125508 KB |
Output is correct |
187 |
Correct |
46 ms |
5212 KB |
Output is correct |
188 |
Correct |
337 ms |
196160 KB |
Output is correct |
189 |
Correct |
269 ms |
7760 KB |
Output is correct |
190 |
Correct |
93 ms |
6948 KB |
Output is correct |
191 |
Correct |
640 ms |
387528 KB |
Output is correct |
192 |
Correct |
427 ms |
7760 KB |
Output is correct |
193 |
Correct |
306 ms |
7132 KB |
Output is correct |
194 |
Correct |
158 ms |
6888 KB |
Output is correct |
195 |
Correct |
86 ms |
6888 KB |
Output is correct |
196 |
Correct |
439 ms |
6752 KB |
Output is correct |
197 |
Correct |
216 ms |
6752 KB |
Output is correct |
198 |
Correct |
221 ms |
6836 KB |
Output is correct |
199 |
Correct |
433 ms |
6740 KB |
Output is correct |
200 |
Correct |
155 ms |
12328 KB |
Output is correct |
201 |
Correct |
220 ms |
9052 KB |
Output is correct |
202 |
Correct |
227 ms |
7504 KB |
Output is correct |
203 |
Correct |
489 ms |
13436 KB |
Output is correct |
204 |
Correct |
327 ms |
6992 KB |
Output is correct |
205 |
Correct |
524 ms |
9396 KB |
Output is correct |
206 |
Correct |
143 ms |
12960 KB |
Output is correct |
207 |
Correct |
586 ms |
318288 KB |
Output is correct |
208 |
Correct |
556 ms |
14708 KB |
Output is correct |
209 |
Correct |
449 ms |
13164 KB |
Output is correct |
210 |
Correct |
564 ms |
414724 KB |
Output is correct |
211 |
Correct |
530 ms |
13908 KB |
Output is correct |
212 |
Correct |
692 ms |
14116 KB |
Output is correct |
213 |
Correct |
222 ms |
13516 KB |
Output is correct |
214 |
Correct |
207 ms |
13620 KB |
Output is correct |
215 |
Correct |
777 ms |
12780 KB |
Output is correct |
216 |
Correct |
713 ms |
13004 KB |
Output is correct |
217 |
Correct |
789 ms |
13076 KB |
Output is correct |
218 |
Correct |
620 ms |
13368 KB |
Output is correct |
219 |
Correct |
796 ms |
175680 KB |
Output is correct |
220 |
Correct |
299 ms |
196796 KB |
Output is correct |
221 |
Correct |
679 ms |
440752 KB |
Output is correct |
222 |
Correct |
1263 ms |
501612 KB |
Output is correct |
223 |
Correct |
535 ms |
20524 KB |
Output is correct |
224 |
Correct |
505 ms |
16756 KB |
Output is correct |
225 |
Correct |
238 ms |
13904 KB |
Output is correct |