# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1089800 |
2024-09-17T07:23:18 Z |
_callmelucian |
Maze (JOI23_ho_t3) |
C++14 |
|
2000 ms |
226556 KB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> pl;
typedef pair<int,int> pii;
typedef tuple<int,int,int> tt;
#define all(a) a.begin(), a.end()
#define filter(a) a.erase(unique(all(a)), a.end())
const int mn = 2e7 + 4e6 + 6;
int leaf[2][mn], n, m;
const int dr[4] = {-1, 0, 0, 1};
const int dc[4] = {0, -1, 1, 0};
void build (int layer, int k, int l, int r) {
if (l == r)
return leaf[layer][k] = l, void();
int mid = (l + r) >> 1;
build(layer, 2 * k, l, mid);
build(layer, 2 * k + 1, mid + 1, r);
}
void getNode (int k, int l, int r, int a, int b, vector<int> &vec) {
if (b < l || r < a) return;
if (a <= l && r <= b)
return vec.push_back(k), void();
int mid = (l + r) >> 1;
getNode(2 * k, l, mid, a, b, vec);
getNode(2 * k + 1, mid + 1, r, a, b, vec);
}
int distance (int i, int j, int u, int v) {
return max(abs(i - u), abs(j - v));
}
bool ok (int i, int j) {
if (i < 1 || j < 1) return 0;
if (i > n || j > m) return 0;
return 1;
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int k; cin >> n >> m >> k;
int stx, sty, enx, eny; cin >> stx >> sty >> enx >> eny;
vector<vector<bool>> block(n + 1, vector<bool>(m + 1));
string emp; getline(cin, emp);
for (int i = 1; i <= n; i++) {
string s; getline(cin, s);
for (int j = 1; j <= m; j++)
if (s[j - 1] == '#') block[i][j] = 1;
}
build(0, 1, 1, n);
build(1, 1, 1, m);
vector<vector<vector<int>>> dist(3);
dist[1] = vector<vector<int>>(4 * n, vector<int>(m + 1, INT_MAX));
dist[2] = vector<vector<int>>(n + 1, vector<int>(4 * m, INT_MAX));
dist[0] = vector<vector<int>>(n + 1, vector<int>(m + 1, INT_MAX));
vector<vector<vector<bool>>> vis(3);
vis[1] = vector<vector<bool>>(4 * n, vector<bool>(m + 1));
vis[2] = vector<vector<bool>>(n + 1, vector<bool>(4 * m));
vis[0] = vector<vector<bool>>(n + 1, vector<bool>(m + 1));
deque<tt> q; q.emplace_back(0, stx, sty);
dist[0][stx][sty] = 0;
while (q.size()) {
int layer, x, y; tie(layer, x, y) = q.front(); q.pop_front();
if (vis[layer][x][y]) continue;
vis[layer][x][y] = 1;
function<void(int,int,int,int)> addEdge = [&] (int nlay, int nx, int ny, int w) {
if (dist[layer][x][y] + w >= dist[nlay][nx][ny]) return;
dist[nlay][nx][ny] = dist[layer][x][y] + w;
if (w) q.emplace_back(nlay, nx, ny);
else q.emplace_front(nlay, nx, ny);
};
if (layer == 0) {
if (block[x][y]) {
if (distance(x, y, enx, eny) < k)
return cout << dist[layer][x][y], 0;
vector<int> nodeX, nodeY;
int xL = max(1, x - k), xR = min(n, x + k), yL = max(1, y - k), yR = min(m, y + k);
getNode(1, 1, n, max(1, x - k + 1), min(n, x + k - 1), nodeX);
getNode(1, 1, m, max(1, y - k + 1), min(m, y + k - 1), nodeY);
for (int u : nodeX) {
addEdge(1, u, yL, 0);
addEdge(1, u, yR, 0);
}
for (int v : nodeY) {
addEdge(2, xL, v, 0);
addEdge(2, xR, v, 0);
}
}
else {
if (distance(x, y, enx, eny) == 0)
return cout << dist[layer][x][y], 0;
for (int k = 0; k < 4; k++)
if (ok(x + dr[k], y + dc[k]))
addEdge(0, x + dr[k], y + dc[k], block[x + dr[k]][y + dc[k]]);
}
}
else if (layer == 1) {
if (leaf[0][x]) addEdge(0, leaf[0][x], y, block[leaf[0][x]][y]);
else {
addEdge(1, 2 * x, y, 0);
addEdge(1, 2 * x + 1, y, 0);
}
}
else if (layer == 2) {
if (leaf[1][y]) addEdge(0, x, leaf[1][y], block[x][leaf[1][y]]);
else {
addEdge(2, x, 2 * y, 0);
addEdge(2, x, 2 * y + 1, 0);
}
}
}
cout << -1;
return 0;
}
# |
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 |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
468 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
13 ms |
2880 KB |
Output is correct |
20 |
Correct |
10 ms |
3748 KB |
Output is correct |
21 |
Correct |
4 ms |
3160 KB |
Output is correct |
22 |
Correct |
12 ms |
2652 KB |
Output is correct |
23 |
Correct |
16 ms |
2876 KB |
Output is correct |
24 |
Correct |
4 ms |
4724 KB |
Output is correct |
25 |
Correct |
12 ms |
4684 KB |
Output is correct |
26 |
Correct |
2 ms |
2908 KB |
Output is correct |
27 |
Correct |
3 ms |
2904 KB |
Output is correct |
28 |
Correct |
9 ms |
2784 KB |
Output is correct |
29 |
Correct |
43 ms |
6240 KB |
Output is correct |
30 |
Correct |
9 ms |
3672 KB |
Output is correct |
31 |
Correct |
5 ms |
6536 KB |
Output is correct |
32 |
Correct |
33 ms |
6236 KB |
Output is correct |
33 |
Correct |
39 ms |
6236 KB |
Output is correct |
34 |
Correct |
12 ms |
11540 KB |
Output is correct |
35 |
Correct |
36 ms |
11532 KB |
Output is correct |
36 |
Correct |
19 ms |
6488 KB |
Output is correct |
37 |
Correct |
28 ms |
6240 KB |
Output is correct |
38 |
Correct |
5 ms |
6236 KB |
Output is correct |
39 |
Correct |
549 ms |
57440 KB |
Output is correct |
40 |
Correct |
11 ms |
7088 KB |
Output is correct |
41 |
Correct |
13 ms |
13924 KB |
Output is correct |
42 |
Correct |
59 ms |
8536 KB |
Output is correct |
43 |
Correct |
38 ms |
12952 KB |
Output is correct |
44 |
Correct |
53 ms |
31516 KB |
Output is correct |
45 |
Correct |
86 ms |
35388 KB |
Output is correct |
46 |
Correct |
55 ms |
63004 KB |
Output is correct |
47 |
Correct |
365 ms |
57688 KB |
Output is correct |
48 |
Correct |
437 ms |
57428 KB |
Output is correct |
49 |
Correct |
94 ms |
108664 KB |
Output is correct |
50 |
Correct |
257 ms |
108668 KB |
Output is correct |
51 |
Correct |
222 ms |
57788 KB |
Output is correct |
52 |
Correct |
186 ms |
57412 KB |
Output is correct |
53 |
Correct |
419 ms |
57436 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
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 |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
464 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 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 |
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 |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 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 |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
600 KB |
Output is correct |
24 |
Correct |
0 ms |
344 KB |
Output is correct |
25 |
Correct |
0 ms |
600 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 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 |
344 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
460 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 |
344 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 |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
3 ms |
1884 KB |
Output is correct |
26 |
Correct |
2 ms |
2584 KB |
Output is correct |
27 |
Correct |
4 ms |
3164 KB |
Output is correct |
28 |
Correct |
1 ms |
2780 KB |
Output is correct |
29 |
Correct |
2 ms |
2748 KB |
Output is correct |
30 |
Correct |
1 ms |
2652 KB |
Output is correct |
31 |
Correct |
7 ms |
2844 KB |
Output is correct |
32 |
Correct |
2 ms |
2908 KB |
Output is correct |
33 |
Correct |
2 ms |
2648 KB |
Output is correct |
34 |
Correct |
8 ms |
5724 KB |
Output is correct |
35 |
Correct |
5 ms |
6492 KB |
Output is correct |
36 |
Correct |
3 ms |
6236 KB |
Output is correct |
37 |
Correct |
4 ms |
6140 KB |
Output is correct |
38 |
Correct |
3 ms |
6236 KB |
Output is correct |
39 |
Correct |
14 ms |
17976 KB |
Output is correct |
40 |
Correct |
67 ms |
53956 KB |
Output is correct |
41 |
Correct |
71 ms |
63028 KB |
Output is correct |
42 |
Correct |
85 ms |
65760 KB |
Output is correct |
43 |
Correct |
31 ms |
57436 KB |
Output is correct |
44 |
Correct |
29 ms |
57428 KB |
Output is correct |
45 |
Correct |
73 ms |
61652 KB |
Output is correct |
46 |
Correct |
51 ms |
59664 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
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 |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
464 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 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 |
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 |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 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 |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
600 KB |
Output is correct |
24 |
Correct |
0 ms |
344 KB |
Output is correct |
25 |
Correct |
0 ms |
600 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
33 |
Correct |
18 ms |
2652 KB |
Output is correct |
34 |
Correct |
0 ms |
464 KB |
Output is correct |
35 |
Correct |
1 ms |
608 KB |
Output is correct |
36 |
Correct |
3 ms |
1884 KB |
Output is correct |
37 |
Correct |
16 ms |
3748 KB |
Output is correct |
38 |
Correct |
2 ms |
2396 KB |
Output is correct |
39 |
Correct |
4 ms |
3164 KB |
Output is correct |
40 |
Correct |
12 ms |
2656 KB |
Output is correct |
41 |
Correct |
18 ms |
2664 KB |
Output is correct |
42 |
Correct |
2 ms |
2652 KB |
Output is correct |
43 |
Correct |
2 ms |
2908 KB |
Output is correct |
44 |
Correct |
2 ms |
2648 KB |
Output is correct |
45 |
Correct |
5 ms |
4720 KB |
Output is correct |
46 |
Correct |
11 ms |
4592 KB |
Output is correct |
47 |
Correct |
13 ms |
3676 KB |
Output is correct |
48 |
Correct |
12 ms |
2652 KB |
Output is correct |
49 |
Correct |
10 ms |
2652 KB |
Output is correct |
50 |
Correct |
15 ms |
2820 KB |
Output is correct |
51 |
Correct |
8 ms |
2652 KB |
Output is correct |
52 |
Correct |
3 ms |
2776 KB |
Output is correct |
53 |
Correct |
2 ms |
2652 KB |
Output is correct |
54 |
Correct |
8 ms |
2884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
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 |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
464 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 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 |
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 |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 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 |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
600 KB |
Output is correct |
24 |
Correct |
0 ms |
344 KB |
Output is correct |
25 |
Correct |
0 ms |
600 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
33 |
Correct |
18 ms |
2652 KB |
Output is correct |
34 |
Correct |
0 ms |
464 KB |
Output is correct |
35 |
Correct |
1 ms |
608 KB |
Output is correct |
36 |
Correct |
3 ms |
1884 KB |
Output is correct |
37 |
Correct |
16 ms |
3748 KB |
Output is correct |
38 |
Correct |
2 ms |
2396 KB |
Output is correct |
39 |
Correct |
4 ms |
3164 KB |
Output is correct |
40 |
Correct |
12 ms |
2656 KB |
Output is correct |
41 |
Correct |
18 ms |
2664 KB |
Output is correct |
42 |
Correct |
2 ms |
2652 KB |
Output is correct |
43 |
Correct |
2 ms |
2908 KB |
Output is correct |
44 |
Correct |
2 ms |
2648 KB |
Output is correct |
45 |
Correct |
5 ms |
4720 KB |
Output is correct |
46 |
Correct |
11 ms |
4592 KB |
Output is correct |
47 |
Correct |
13 ms |
3676 KB |
Output is correct |
48 |
Correct |
12 ms |
2652 KB |
Output is correct |
49 |
Correct |
10 ms |
2652 KB |
Output is correct |
50 |
Correct |
15 ms |
2820 KB |
Output is correct |
51 |
Correct |
8 ms |
2652 KB |
Output is correct |
52 |
Correct |
3 ms |
2776 KB |
Output is correct |
53 |
Correct |
2 ms |
2652 KB |
Output is correct |
54 |
Correct |
8 ms |
2884 KB |
Output is correct |
55 |
Correct |
46 ms |
6108 KB |
Output is correct |
56 |
Correct |
9 ms |
3672 KB |
Output is correct |
57 |
Correct |
8 ms |
5724 KB |
Output is correct |
58 |
Correct |
40 ms |
5952 KB |
Output is correct |
59 |
Correct |
5 ms |
6748 KB |
Output is correct |
60 |
Correct |
32 ms |
6260 KB |
Output is correct |
61 |
Correct |
40 ms |
6288 KB |
Output is correct |
62 |
Correct |
3 ms |
6232 KB |
Output is correct |
63 |
Correct |
4 ms |
6492 KB |
Output is correct |
64 |
Correct |
3 ms |
6316 KB |
Output is correct |
65 |
Correct |
11 ms |
11580 KB |
Output is correct |
66 |
Correct |
37 ms |
11532 KB |
Output is correct |
67 |
Correct |
40 ms |
8496 KB |
Output is correct |
68 |
Correct |
38 ms |
6240 KB |
Output is correct |
69 |
Correct |
55 ms |
6240 KB |
Output is correct |
70 |
Correct |
43 ms |
6236 KB |
Output is correct |
71 |
Correct |
34 ms |
6440 KB |
Output is correct |
72 |
Correct |
15 ms |
6236 KB |
Output is correct |
73 |
Correct |
27 ms |
6236 KB |
Output is correct |
74 |
Correct |
4 ms |
6236 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 |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
468 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
13 ms |
2880 KB |
Output is correct |
20 |
Correct |
10 ms |
3748 KB |
Output is correct |
21 |
Correct |
4 ms |
3160 KB |
Output is correct |
22 |
Correct |
12 ms |
2652 KB |
Output is correct |
23 |
Correct |
16 ms |
2876 KB |
Output is correct |
24 |
Correct |
4 ms |
4724 KB |
Output is correct |
25 |
Correct |
12 ms |
4684 KB |
Output is correct |
26 |
Correct |
2 ms |
2908 KB |
Output is correct |
27 |
Correct |
3 ms |
2904 KB |
Output is correct |
28 |
Correct |
9 ms |
2784 KB |
Output is correct |
29 |
Correct |
43 ms |
6240 KB |
Output is correct |
30 |
Correct |
9 ms |
3672 KB |
Output is correct |
31 |
Correct |
5 ms |
6536 KB |
Output is correct |
32 |
Correct |
33 ms |
6236 KB |
Output is correct |
33 |
Correct |
39 ms |
6236 KB |
Output is correct |
34 |
Correct |
12 ms |
11540 KB |
Output is correct |
35 |
Correct |
36 ms |
11532 KB |
Output is correct |
36 |
Correct |
19 ms |
6488 KB |
Output is correct |
37 |
Correct |
28 ms |
6240 KB |
Output is correct |
38 |
Correct |
5 ms |
6236 KB |
Output is correct |
39 |
Correct |
549 ms |
57440 KB |
Output is correct |
40 |
Correct |
11 ms |
7088 KB |
Output is correct |
41 |
Correct |
13 ms |
13924 KB |
Output is correct |
42 |
Correct |
59 ms |
8536 KB |
Output is correct |
43 |
Correct |
38 ms |
12952 KB |
Output is correct |
44 |
Correct |
53 ms |
31516 KB |
Output is correct |
45 |
Correct |
86 ms |
35388 KB |
Output is correct |
46 |
Correct |
55 ms |
63004 KB |
Output is correct |
47 |
Correct |
365 ms |
57688 KB |
Output is correct |
48 |
Correct |
437 ms |
57428 KB |
Output is correct |
49 |
Correct |
94 ms |
108664 KB |
Output is correct |
50 |
Correct |
257 ms |
108668 KB |
Output is correct |
51 |
Correct |
222 ms |
57788 KB |
Output is correct |
52 |
Correct |
186 ms |
57412 KB |
Output is correct |
53 |
Correct |
419 ms |
57436 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
464 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 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 |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 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 |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
600 KB |
Output is correct |
77 |
Correct |
0 ms |
344 KB |
Output is correct |
78 |
Correct |
0 ms |
600 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
1 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 |
344 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
460 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
344 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
3 ms |
1884 KB |
Output is correct |
111 |
Correct |
2 ms |
2584 KB |
Output is correct |
112 |
Correct |
4 ms |
3164 KB |
Output is correct |
113 |
Correct |
1 ms |
2780 KB |
Output is correct |
114 |
Correct |
2 ms |
2748 KB |
Output is correct |
115 |
Correct |
1 ms |
2652 KB |
Output is correct |
116 |
Correct |
7 ms |
2844 KB |
Output is correct |
117 |
Correct |
2 ms |
2908 KB |
Output is correct |
118 |
Correct |
2 ms |
2648 KB |
Output is correct |
119 |
Correct |
8 ms |
5724 KB |
Output is correct |
120 |
Correct |
5 ms |
6492 KB |
Output is correct |
121 |
Correct |
3 ms |
6236 KB |
Output is correct |
122 |
Correct |
4 ms |
6140 KB |
Output is correct |
123 |
Correct |
3 ms |
6236 KB |
Output is correct |
124 |
Correct |
14 ms |
17976 KB |
Output is correct |
125 |
Correct |
67 ms |
53956 KB |
Output is correct |
126 |
Correct |
71 ms |
63028 KB |
Output is correct |
127 |
Correct |
85 ms |
65760 KB |
Output is correct |
128 |
Correct |
31 ms |
57436 KB |
Output is correct |
129 |
Correct |
29 ms |
57428 KB |
Output is correct |
130 |
Correct |
73 ms |
61652 KB |
Output is correct |
131 |
Correct |
51 ms |
59664 KB |
Output is correct |
132 |
Correct |
18 ms |
2652 KB |
Output is correct |
133 |
Correct |
0 ms |
464 KB |
Output is correct |
134 |
Correct |
1 ms |
608 KB |
Output is correct |
135 |
Correct |
3 ms |
1884 KB |
Output is correct |
136 |
Correct |
16 ms |
3748 KB |
Output is correct |
137 |
Correct |
2 ms |
2396 KB |
Output is correct |
138 |
Correct |
4 ms |
3164 KB |
Output is correct |
139 |
Correct |
12 ms |
2656 KB |
Output is correct |
140 |
Correct |
18 ms |
2664 KB |
Output is correct |
141 |
Correct |
2 ms |
2652 KB |
Output is correct |
142 |
Correct |
2 ms |
2908 KB |
Output is correct |
143 |
Correct |
2 ms |
2648 KB |
Output is correct |
144 |
Correct |
5 ms |
4720 KB |
Output is correct |
145 |
Correct |
11 ms |
4592 KB |
Output is correct |
146 |
Correct |
13 ms |
3676 KB |
Output is correct |
147 |
Correct |
12 ms |
2652 KB |
Output is correct |
148 |
Correct |
10 ms |
2652 KB |
Output is correct |
149 |
Correct |
15 ms |
2820 KB |
Output is correct |
150 |
Correct |
8 ms |
2652 KB |
Output is correct |
151 |
Correct |
3 ms |
2776 KB |
Output is correct |
152 |
Correct |
2 ms |
2652 KB |
Output is correct |
153 |
Correct |
8 ms |
2884 KB |
Output is correct |
154 |
Correct |
46 ms |
6108 KB |
Output is correct |
155 |
Correct |
9 ms |
3672 KB |
Output is correct |
156 |
Correct |
8 ms |
5724 KB |
Output is correct |
157 |
Correct |
40 ms |
5952 KB |
Output is correct |
158 |
Correct |
5 ms |
6748 KB |
Output is correct |
159 |
Correct |
32 ms |
6260 KB |
Output is correct |
160 |
Correct |
40 ms |
6288 KB |
Output is correct |
161 |
Correct |
3 ms |
6232 KB |
Output is correct |
162 |
Correct |
4 ms |
6492 KB |
Output is correct |
163 |
Correct |
3 ms |
6316 KB |
Output is correct |
164 |
Correct |
11 ms |
11580 KB |
Output is correct |
165 |
Correct |
37 ms |
11532 KB |
Output is correct |
166 |
Correct |
40 ms |
8496 KB |
Output is correct |
167 |
Correct |
38 ms |
6240 KB |
Output is correct |
168 |
Correct |
55 ms |
6240 KB |
Output is correct |
169 |
Correct |
43 ms |
6236 KB |
Output is correct |
170 |
Correct |
34 ms |
6440 KB |
Output is correct |
171 |
Correct |
15 ms |
6236 KB |
Output is correct |
172 |
Correct |
27 ms |
6236 KB |
Output is correct |
173 |
Correct |
4 ms |
6236 KB |
Output is correct |
174 |
Correct |
21 ms |
8036 KB |
Output is correct |
175 |
Correct |
155 ms |
13148 KB |
Output is correct |
176 |
Correct |
89 ms |
35892 KB |
Output is correct |
177 |
Correct |
315 ms |
39612 KB |
Output is correct |
178 |
Correct |
53 ms |
50848 KB |
Output is correct |
179 |
Correct |
237 ms |
58064 KB |
Output is correct |
180 |
Correct |
495 ms |
57608 KB |
Output is correct |
181 |
Correct |
462 ms |
57732 KB |
Output is correct |
182 |
Correct |
482 ms |
58452 KB |
Output is correct |
183 |
Correct |
378 ms |
58824 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 |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
468 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
13 ms |
2880 KB |
Output is correct |
20 |
Correct |
10 ms |
3748 KB |
Output is correct |
21 |
Correct |
4 ms |
3160 KB |
Output is correct |
22 |
Correct |
12 ms |
2652 KB |
Output is correct |
23 |
Correct |
16 ms |
2876 KB |
Output is correct |
24 |
Correct |
4 ms |
4724 KB |
Output is correct |
25 |
Correct |
12 ms |
4684 KB |
Output is correct |
26 |
Correct |
2 ms |
2908 KB |
Output is correct |
27 |
Correct |
3 ms |
2904 KB |
Output is correct |
28 |
Correct |
9 ms |
2784 KB |
Output is correct |
29 |
Correct |
43 ms |
6240 KB |
Output is correct |
30 |
Correct |
9 ms |
3672 KB |
Output is correct |
31 |
Correct |
5 ms |
6536 KB |
Output is correct |
32 |
Correct |
33 ms |
6236 KB |
Output is correct |
33 |
Correct |
39 ms |
6236 KB |
Output is correct |
34 |
Correct |
12 ms |
11540 KB |
Output is correct |
35 |
Correct |
36 ms |
11532 KB |
Output is correct |
36 |
Correct |
19 ms |
6488 KB |
Output is correct |
37 |
Correct |
28 ms |
6240 KB |
Output is correct |
38 |
Correct |
5 ms |
6236 KB |
Output is correct |
39 |
Correct |
549 ms |
57440 KB |
Output is correct |
40 |
Correct |
11 ms |
7088 KB |
Output is correct |
41 |
Correct |
13 ms |
13924 KB |
Output is correct |
42 |
Correct |
59 ms |
8536 KB |
Output is correct |
43 |
Correct |
38 ms |
12952 KB |
Output is correct |
44 |
Correct |
53 ms |
31516 KB |
Output is correct |
45 |
Correct |
86 ms |
35388 KB |
Output is correct |
46 |
Correct |
55 ms |
63004 KB |
Output is correct |
47 |
Correct |
365 ms |
57688 KB |
Output is correct |
48 |
Correct |
437 ms |
57428 KB |
Output is correct |
49 |
Correct |
94 ms |
108664 KB |
Output is correct |
50 |
Correct |
257 ms |
108668 KB |
Output is correct |
51 |
Correct |
222 ms |
57788 KB |
Output is correct |
52 |
Correct |
186 ms |
57412 KB |
Output is correct |
53 |
Correct |
419 ms |
57436 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
464 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 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 |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 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 |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
600 KB |
Output is correct |
77 |
Correct |
0 ms |
344 KB |
Output is correct |
78 |
Correct |
0 ms |
600 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
1 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 |
344 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
460 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
344 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
3 ms |
1884 KB |
Output is correct |
111 |
Correct |
2 ms |
2584 KB |
Output is correct |
112 |
Correct |
4 ms |
3164 KB |
Output is correct |
113 |
Correct |
1 ms |
2780 KB |
Output is correct |
114 |
Correct |
2 ms |
2748 KB |
Output is correct |
115 |
Correct |
1 ms |
2652 KB |
Output is correct |
116 |
Correct |
7 ms |
2844 KB |
Output is correct |
117 |
Correct |
2 ms |
2908 KB |
Output is correct |
118 |
Correct |
2 ms |
2648 KB |
Output is correct |
119 |
Correct |
8 ms |
5724 KB |
Output is correct |
120 |
Correct |
5 ms |
6492 KB |
Output is correct |
121 |
Correct |
3 ms |
6236 KB |
Output is correct |
122 |
Correct |
4 ms |
6140 KB |
Output is correct |
123 |
Correct |
3 ms |
6236 KB |
Output is correct |
124 |
Correct |
14 ms |
17976 KB |
Output is correct |
125 |
Correct |
67 ms |
53956 KB |
Output is correct |
126 |
Correct |
71 ms |
63028 KB |
Output is correct |
127 |
Correct |
85 ms |
65760 KB |
Output is correct |
128 |
Correct |
31 ms |
57436 KB |
Output is correct |
129 |
Correct |
29 ms |
57428 KB |
Output is correct |
130 |
Correct |
73 ms |
61652 KB |
Output is correct |
131 |
Correct |
51 ms |
59664 KB |
Output is correct |
132 |
Correct |
18 ms |
2652 KB |
Output is correct |
133 |
Correct |
0 ms |
464 KB |
Output is correct |
134 |
Correct |
1 ms |
608 KB |
Output is correct |
135 |
Correct |
3 ms |
1884 KB |
Output is correct |
136 |
Correct |
16 ms |
3748 KB |
Output is correct |
137 |
Correct |
2 ms |
2396 KB |
Output is correct |
138 |
Correct |
4 ms |
3164 KB |
Output is correct |
139 |
Correct |
12 ms |
2656 KB |
Output is correct |
140 |
Correct |
18 ms |
2664 KB |
Output is correct |
141 |
Correct |
2 ms |
2652 KB |
Output is correct |
142 |
Correct |
2 ms |
2908 KB |
Output is correct |
143 |
Correct |
2 ms |
2648 KB |
Output is correct |
144 |
Correct |
5 ms |
4720 KB |
Output is correct |
145 |
Correct |
11 ms |
4592 KB |
Output is correct |
146 |
Correct |
13 ms |
3676 KB |
Output is correct |
147 |
Correct |
12 ms |
2652 KB |
Output is correct |
148 |
Correct |
10 ms |
2652 KB |
Output is correct |
149 |
Correct |
15 ms |
2820 KB |
Output is correct |
150 |
Correct |
8 ms |
2652 KB |
Output is correct |
151 |
Correct |
3 ms |
2776 KB |
Output is correct |
152 |
Correct |
2 ms |
2652 KB |
Output is correct |
153 |
Correct |
8 ms |
2884 KB |
Output is correct |
154 |
Correct |
46 ms |
6108 KB |
Output is correct |
155 |
Correct |
9 ms |
3672 KB |
Output is correct |
156 |
Correct |
8 ms |
5724 KB |
Output is correct |
157 |
Correct |
40 ms |
5952 KB |
Output is correct |
158 |
Correct |
5 ms |
6748 KB |
Output is correct |
159 |
Correct |
32 ms |
6260 KB |
Output is correct |
160 |
Correct |
40 ms |
6288 KB |
Output is correct |
161 |
Correct |
3 ms |
6232 KB |
Output is correct |
162 |
Correct |
4 ms |
6492 KB |
Output is correct |
163 |
Correct |
3 ms |
6316 KB |
Output is correct |
164 |
Correct |
11 ms |
11580 KB |
Output is correct |
165 |
Correct |
37 ms |
11532 KB |
Output is correct |
166 |
Correct |
40 ms |
8496 KB |
Output is correct |
167 |
Correct |
38 ms |
6240 KB |
Output is correct |
168 |
Correct |
55 ms |
6240 KB |
Output is correct |
169 |
Correct |
43 ms |
6236 KB |
Output is correct |
170 |
Correct |
34 ms |
6440 KB |
Output is correct |
171 |
Correct |
15 ms |
6236 KB |
Output is correct |
172 |
Correct |
27 ms |
6236 KB |
Output is correct |
173 |
Correct |
4 ms |
6236 KB |
Output is correct |
174 |
Correct |
21 ms |
8036 KB |
Output is correct |
175 |
Correct |
155 ms |
13148 KB |
Output is correct |
176 |
Correct |
89 ms |
35892 KB |
Output is correct |
177 |
Correct |
315 ms |
39612 KB |
Output is correct |
178 |
Correct |
53 ms |
50848 KB |
Output is correct |
179 |
Correct |
237 ms |
58064 KB |
Output is correct |
180 |
Correct |
495 ms |
57608 KB |
Output is correct |
181 |
Correct |
462 ms |
57732 KB |
Output is correct |
182 |
Correct |
482 ms |
58452 KB |
Output is correct |
183 |
Correct |
378 ms |
58824 KB |
Output is correct |
184 |
Correct |
1131 ms |
114000 KB |
Output is correct |
185 |
Correct |
202 ms |
63856 KB |
Output is correct |
186 |
Correct |
97 ms |
74432 KB |
Output is correct |
187 |
Correct |
180 ms |
82004 KB |
Output is correct |
188 |
Correct |
136 ms |
128520 KB |
Output is correct |
189 |
Correct |
565 ms |
114000 KB |
Output is correct |
190 |
Correct |
428 ms |
113904 KB |
Output is correct |
191 |
Correct |
56 ms |
115048 KB |
Output is correct |
192 |
Correct |
58 ms |
113748 KB |
Output is correct |
193 |
Correct |
50 ms |
113948 KB |
Output is correct |
194 |
Correct |
280 ms |
216876 KB |
Output is correct |
195 |
Correct |
616 ms |
216924 KB |
Output is correct |
196 |
Correct |
962 ms |
114804 KB |
Output is correct |
197 |
Correct |
460 ms |
114880 KB |
Output is correct |
198 |
Correct |
502 ms |
114480 KB |
Output is correct |
199 |
Correct |
1026 ms |
115408 KB |
Output is correct |
200 |
Correct |
308 ms |
114260 KB |
Output is correct |
201 |
Correct |
468 ms |
114000 KB |
Output is correct |
202 |
Correct |
1078 ms |
114092 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 |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
468 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
13 ms |
2880 KB |
Output is correct |
20 |
Correct |
10 ms |
3748 KB |
Output is correct |
21 |
Correct |
4 ms |
3160 KB |
Output is correct |
22 |
Correct |
12 ms |
2652 KB |
Output is correct |
23 |
Correct |
16 ms |
2876 KB |
Output is correct |
24 |
Correct |
4 ms |
4724 KB |
Output is correct |
25 |
Correct |
12 ms |
4684 KB |
Output is correct |
26 |
Correct |
2 ms |
2908 KB |
Output is correct |
27 |
Correct |
3 ms |
2904 KB |
Output is correct |
28 |
Correct |
9 ms |
2784 KB |
Output is correct |
29 |
Correct |
43 ms |
6240 KB |
Output is correct |
30 |
Correct |
9 ms |
3672 KB |
Output is correct |
31 |
Correct |
5 ms |
6536 KB |
Output is correct |
32 |
Correct |
33 ms |
6236 KB |
Output is correct |
33 |
Correct |
39 ms |
6236 KB |
Output is correct |
34 |
Correct |
12 ms |
11540 KB |
Output is correct |
35 |
Correct |
36 ms |
11532 KB |
Output is correct |
36 |
Correct |
19 ms |
6488 KB |
Output is correct |
37 |
Correct |
28 ms |
6240 KB |
Output is correct |
38 |
Correct |
5 ms |
6236 KB |
Output is correct |
39 |
Correct |
549 ms |
57440 KB |
Output is correct |
40 |
Correct |
11 ms |
7088 KB |
Output is correct |
41 |
Correct |
13 ms |
13924 KB |
Output is correct |
42 |
Correct |
59 ms |
8536 KB |
Output is correct |
43 |
Correct |
38 ms |
12952 KB |
Output is correct |
44 |
Correct |
53 ms |
31516 KB |
Output is correct |
45 |
Correct |
86 ms |
35388 KB |
Output is correct |
46 |
Correct |
55 ms |
63004 KB |
Output is correct |
47 |
Correct |
365 ms |
57688 KB |
Output is correct |
48 |
Correct |
437 ms |
57428 KB |
Output is correct |
49 |
Correct |
94 ms |
108664 KB |
Output is correct |
50 |
Correct |
257 ms |
108668 KB |
Output is correct |
51 |
Correct |
222 ms |
57788 KB |
Output is correct |
52 |
Correct |
186 ms |
57412 KB |
Output is correct |
53 |
Correct |
419 ms |
57436 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
464 KB |
Output is correct |
59 |
Correct |
1 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 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 |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 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 |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
600 KB |
Output is correct |
77 |
Correct |
0 ms |
344 KB |
Output is correct |
78 |
Correct |
0 ms |
600 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 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 |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
1 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 |
344 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
460 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
344 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
1 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
3 ms |
1884 KB |
Output is correct |
111 |
Correct |
2 ms |
2584 KB |
Output is correct |
112 |
Correct |
4 ms |
3164 KB |
Output is correct |
113 |
Correct |
1 ms |
2780 KB |
Output is correct |
114 |
Correct |
2 ms |
2748 KB |
Output is correct |
115 |
Correct |
1 ms |
2652 KB |
Output is correct |
116 |
Correct |
7 ms |
2844 KB |
Output is correct |
117 |
Correct |
2 ms |
2908 KB |
Output is correct |
118 |
Correct |
2 ms |
2648 KB |
Output is correct |
119 |
Correct |
8 ms |
5724 KB |
Output is correct |
120 |
Correct |
5 ms |
6492 KB |
Output is correct |
121 |
Correct |
3 ms |
6236 KB |
Output is correct |
122 |
Correct |
4 ms |
6140 KB |
Output is correct |
123 |
Correct |
3 ms |
6236 KB |
Output is correct |
124 |
Correct |
14 ms |
17976 KB |
Output is correct |
125 |
Correct |
67 ms |
53956 KB |
Output is correct |
126 |
Correct |
71 ms |
63028 KB |
Output is correct |
127 |
Correct |
85 ms |
65760 KB |
Output is correct |
128 |
Correct |
31 ms |
57436 KB |
Output is correct |
129 |
Correct |
29 ms |
57428 KB |
Output is correct |
130 |
Correct |
73 ms |
61652 KB |
Output is correct |
131 |
Correct |
51 ms |
59664 KB |
Output is correct |
132 |
Correct |
18 ms |
2652 KB |
Output is correct |
133 |
Correct |
0 ms |
464 KB |
Output is correct |
134 |
Correct |
1 ms |
608 KB |
Output is correct |
135 |
Correct |
3 ms |
1884 KB |
Output is correct |
136 |
Correct |
16 ms |
3748 KB |
Output is correct |
137 |
Correct |
2 ms |
2396 KB |
Output is correct |
138 |
Correct |
4 ms |
3164 KB |
Output is correct |
139 |
Correct |
12 ms |
2656 KB |
Output is correct |
140 |
Correct |
18 ms |
2664 KB |
Output is correct |
141 |
Correct |
2 ms |
2652 KB |
Output is correct |
142 |
Correct |
2 ms |
2908 KB |
Output is correct |
143 |
Correct |
2 ms |
2648 KB |
Output is correct |
144 |
Correct |
5 ms |
4720 KB |
Output is correct |
145 |
Correct |
11 ms |
4592 KB |
Output is correct |
146 |
Correct |
13 ms |
3676 KB |
Output is correct |
147 |
Correct |
12 ms |
2652 KB |
Output is correct |
148 |
Correct |
10 ms |
2652 KB |
Output is correct |
149 |
Correct |
15 ms |
2820 KB |
Output is correct |
150 |
Correct |
8 ms |
2652 KB |
Output is correct |
151 |
Correct |
3 ms |
2776 KB |
Output is correct |
152 |
Correct |
2 ms |
2652 KB |
Output is correct |
153 |
Correct |
8 ms |
2884 KB |
Output is correct |
154 |
Correct |
46 ms |
6108 KB |
Output is correct |
155 |
Correct |
9 ms |
3672 KB |
Output is correct |
156 |
Correct |
8 ms |
5724 KB |
Output is correct |
157 |
Correct |
40 ms |
5952 KB |
Output is correct |
158 |
Correct |
5 ms |
6748 KB |
Output is correct |
159 |
Correct |
32 ms |
6260 KB |
Output is correct |
160 |
Correct |
40 ms |
6288 KB |
Output is correct |
161 |
Correct |
3 ms |
6232 KB |
Output is correct |
162 |
Correct |
4 ms |
6492 KB |
Output is correct |
163 |
Correct |
3 ms |
6316 KB |
Output is correct |
164 |
Correct |
11 ms |
11580 KB |
Output is correct |
165 |
Correct |
37 ms |
11532 KB |
Output is correct |
166 |
Correct |
40 ms |
8496 KB |
Output is correct |
167 |
Correct |
38 ms |
6240 KB |
Output is correct |
168 |
Correct |
55 ms |
6240 KB |
Output is correct |
169 |
Correct |
43 ms |
6236 KB |
Output is correct |
170 |
Correct |
34 ms |
6440 KB |
Output is correct |
171 |
Correct |
15 ms |
6236 KB |
Output is correct |
172 |
Correct |
27 ms |
6236 KB |
Output is correct |
173 |
Correct |
4 ms |
6236 KB |
Output is correct |
174 |
Correct |
21 ms |
8036 KB |
Output is correct |
175 |
Correct |
155 ms |
13148 KB |
Output is correct |
176 |
Correct |
89 ms |
35892 KB |
Output is correct |
177 |
Correct |
315 ms |
39612 KB |
Output is correct |
178 |
Correct |
53 ms |
50848 KB |
Output is correct |
179 |
Correct |
237 ms |
58064 KB |
Output is correct |
180 |
Correct |
495 ms |
57608 KB |
Output is correct |
181 |
Correct |
462 ms |
57732 KB |
Output is correct |
182 |
Correct |
482 ms |
58452 KB |
Output is correct |
183 |
Correct |
378 ms |
58824 KB |
Output is correct |
184 |
Correct |
1131 ms |
114000 KB |
Output is correct |
185 |
Correct |
202 ms |
63856 KB |
Output is correct |
186 |
Correct |
97 ms |
74432 KB |
Output is correct |
187 |
Correct |
180 ms |
82004 KB |
Output is correct |
188 |
Correct |
136 ms |
128520 KB |
Output is correct |
189 |
Correct |
565 ms |
114000 KB |
Output is correct |
190 |
Correct |
428 ms |
113904 KB |
Output is correct |
191 |
Correct |
56 ms |
115048 KB |
Output is correct |
192 |
Correct |
58 ms |
113748 KB |
Output is correct |
193 |
Correct |
50 ms |
113948 KB |
Output is correct |
194 |
Correct |
280 ms |
216876 KB |
Output is correct |
195 |
Correct |
616 ms |
216924 KB |
Output is correct |
196 |
Correct |
962 ms |
114804 KB |
Output is correct |
197 |
Correct |
460 ms |
114880 KB |
Output is correct |
198 |
Correct |
502 ms |
114480 KB |
Output is correct |
199 |
Correct |
1026 ms |
115408 KB |
Output is correct |
200 |
Correct |
308 ms |
114260 KB |
Output is correct |
201 |
Correct |
468 ms |
114000 KB |
Output is correct |
202 |
Correct |
1078 ms |
114092 KB |
Output is correct |
203 |
Execution timed out |
2100 ms |
226556 KB |
Time limit exceeded |
204 |
Halted |
0 ms |
0 KB |
- |