# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
806826 |
2023-08-04T10:08:43 Z |
someone |
Maze (JOI23_ho_t3) |
C++14 |
|
760 ms |
269340 KB |
#include <bits/stdc++.h>
//#define int long long
#define x first
#define y second
using namespace std;
const int N = 6e6 + 42, INF = 1e9 + 42;
int dl[] = {0, 0, 1, -1},
dc[] = {1, -1, 0, 0},
trans[] = {0, 0, 0, 0};
bool etat[N], vu[N];
int row, col, n, ldeb, cdeb, lfin, cfin, ans = INF, dist[N], lhor[N], rhor[N], lver[N], rver[N];
inline bool valid(int l, int c) {
return -1 < l && l < row && -1 < c && c < col;
}
void BFS() {
deque<pair<int, int>> dq;
dist[ldeb * col + cdeb] = 0;
dq.push_front({ldeb, cdeb});
while(!dq.empty()) {
auto act = dq[0];
dq.pop_front();
int id = act.x * col + act.y;
if(!vu[id]) {
vu[id] = true;
int dx = abs(lfin - act.x), dy = abs(cfin - act.y);
if(dx <= n && dy <= n && dx + dy != 2*n)
ans = min(ans, dist[id]+1);
for(int i = 0; i < 4; i++) {
int x = act.x + dl[i], y = act.y + dc[i], j = id + trans[i];
if(valid(x, y) && etat[j] && !vu[j]) {
dq.push_front({x, y});
dist[j] = dist[id];
}
}
/*
//(act.x - n, act.y - n + 1) - (act.x - n, act.y + n - 1)
//(act.x + n, act.y - n + 1) - (act.x + n, act.y + n - 1)
for(int j = act.y - n + 1; j <= act.y + n - 1; j++) {
if(valid(act.x - n, j)) {
dq.push_back({act.x - n, j});
dist[(act.x - n) * col + j] = min(dist[(act.x - n) * col + j], dist[id]+1);
}
if(valid(act.x + n, j)) {
dq.push_back({act.x + n, j});
dist[(act.x + n) * col + j] = min(dist[(act.x + n) * col + j], dist[id]+1);
}
}
//(act.x - n + 1, act.y - n) - (act.x + n - 1, act.y - n)
//(act.x - n + 1, act.y + n) - (act.x + n - 1, act.y + n)
for(int i = act.x - n + 1; i <= act.x + n - 1; i++) {
if(valid(i, act.y - n)) {
dq.push_back({i, act.y - n});
dist[i * col + act.y - n] = min(dist[i * col + act.y - n], dist[id]+1);
}
if(valid(i, act.y + n)) {
dq.push_back({i, act.y + n});
dist[i * col + act.y + n] = min(dist[i * col + act.y + n], dist[id]+1);
}
}*/
//(act.x - n, act.y - n + 1) - (act.x - n, act.y + n - 1)
int l = (act.y + n) / (2 * n - 1) - 1;
if(act.x >= n) {
int i = (act.x - n) * col + l;
if(l != -1) {
int pos = (act.x - n) * col + rhor[i],
sup = max(lhor[i], act.y - n + 1);
while(rhor[i] >= sup) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({act.x - n, rhor[i]});
pos--;
rhor[i]--;
}
}
i++;
if((2 * n - 1) * (l+1) < col) {
int pos = (act.x - n) * col + lhor[i],
inf = min(rhor[i], act.y + n - 1);
while(lhor[i] <= inf) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({act.x - n, lhor[i]});
pos++;
lhor[i]++;
}
}
}
//(act.x + n, act.y - n + 1) - (act.x + n, act.y + n - 1)
if(act.x + n < row) {
int i = (act.x + n) * col + l;
if(l != -1) {
int pos = (act.x + n) * col + rhor[i],
sup = max(lhor[i], act.y - n + 1);
while(rhor[i] >= sup) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({act.x + n, rhor[i]});
pos--;
rhor[i]--;
}
}
i++;
if((2 * n - 1) * (l+1) < col) {
int pos = (act.x + n) * col + lhor[i],
inf = min(rhor[i], act.y + n - 1);
while(lhor[i] <= inf) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({act.x + n, lhor[i]});
pos++;
lhor[i]++;
}
}
}
//(act.x - n + 1, act.y - n) - (act.x + n - 1, act.y - n)
int h = (act.x + n) / (2 * n - 1) - 1;
if(act.y >= n) {
int i = h * col + (act.y - n);
if(h != -1) {
int pos = rver[i] * col + act.y - n,
sup = max(lver[i], act.x - n + 1);
while(rver[i] >= sup) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({rver[i], act.y - n});
pos -= col;
rver[i]--;
}
}
i += col;
if((2 * n - 1) * (h+1) < row) {
int pos = lver[i] * col + act.y - n,
inf = min(rver[i], act.x + n - 1);
while(lver[i] <= inf) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({lver[i], act.y - n});
pos += col;
lver[i]++;
}
}
}
//(act.x - n + 1, act.y + n) - (act.x + n - 1, act.y + n)
if(act.y + n < col) {
int i = h * col + (act.y + n);
if(h != -1) {
int pos = rver[i] * col + act.y + n,
sup = max(lver[i], act.x - n + 1);
while(rver[i] >= sup) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({rver[i], act.y + n});
pos -= col;
rver[i]--;
}
}
i += col;
if((2 * n - 1) * (h+1) < row) {
int pos = lver[i] * col + act.y + n,
inf = min(rver[i], act.x + n - 1);
while(lver[i] <= inf) {
dist[pos] = min(dist[pos], dist[id]+1);
dq.push_back({lver[i], act.y + n});
pos += col;
lver[i]++;
}
}
}
}
}
}
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> row >> col >> n >> ldeb >> cdeb >> lfin >> cfin;
ldeb--, cdeb--, lfin--, cfin--;
for(int i = 0; i < 4; i++)
trans[i] = dl[i] * col + dc[i];
for(int i = 0; i < row*col; i++)
dist[i] = INF;
for(int i = 0; i < row; i++)
for(int j = 0; j < col; j++) {
char c; cin >> c;
etat[i * col + j] = (c == '.');
}
for(int i = 0; i < row; i++)
for(int j = 0; (2*n-1)*j < col; j++) {
lhor[i * col + j] = (2*n-1)*j;
rhor[i * col + j] = min((2*n-1)*(j+1), col)-1;
}
for(int i = 0; (2*n-1)*i < row; i++)
for(int j = 0; j < col; j++) {
lver[i * col + j] = (2*n-1)*i;
rver[i * col + j] = min((2*n-1)*(i+1), row)-1;
}
BFS();
ans = min(ans, dist[lfin * col + cfin]);
cout << ans << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
328 KB |
Output is correct |
5 |
Correct |
1 ms |
328 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
324 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
5 ms |
1684 KB |
Output is correct |
20 |
Correct |
3 ms |
1364 KB |
Output is correct |
21 |
Correct |
6 ms |
2956 KB |
Output is correct |
22 |
Correct |
7 ms |
1748 KB |
Output is correct |
23 |
Correct |
4 ms |
1620 KB |
Output is correct |
24 |
Correct |
3 ms |
1620 KB |
Output is correct |
25 |
Correct |
3 ms |
1620 KB |
Output is correct |
26 |
Correct |
7 ms |
1876 KB |
Output is correct |
27 |
Correct |
7 ms |
1748 KB |
Output is correct |
28 |
Correct |
5 ms |
1748 KB |
Output is correct |
29 |
Correct |
11 ms |
3740 KB |
Output is correct |
30 |
Correct |
5 ms |
1760 KB |
Output is correct |
31 |
Correct |
18 ms |
6492 KB |
Output is correct |
32 |
Correct |
16 ms |
3720 KB |
Output is correct |
33 |
Correct |
10 ms |
3756 KB |
Output is correct |
34 |
Correct |
9 ms |
3712 KB |
Output is correct |
35 |
Correct |
7 ms |
3756 KB |
Output is correct |
36 |
Correct |
16 ms |
3924 KB |
Output is correct |
37 |
Correct |
17 ms |
3764 KB |
Output is correct |
38 |
Correct |
11 ms |
3788 KB |
Output is correct |
39 |
Correct |
151 ms |
32944 KB |
Output is correct |
40 |
Correct |
18 ms |
4184 KB |
Output is correct |
41 |
Correct |
10 ms |
4468 KB |
Output is correct |
42 |
Correct |
23 ms |
5204 KB |
Output is correct |
43 |
Correct |
17 ms |
5720 KB |
Output is correct |
44 |
Correct |
77 ms |
16728 KB |
Output is correct |
45 |
Correct |
69 ms |
17928 KB |
Output is correct |
46 |
Correct |
157 ms |
66168 KB |
Output is correct |
47 |
Correct |
177 ms |
33092 KB |
Output is correct |
48 |
Correct |
145 ms |
33048 KB |
Output is correct |
49 |
Correct |
73 ms |
33120 KB |
Output is correct |
50 |
Correct |
70 ms |
32948 KB |
Output is correct |
51 |
Correct |
170 ms |
33916 KB |
Output is correct |
52 |
Correct |
167 ms |
33372 KB |
Output is correct |
53 |
Correct |
141 ms |
33144 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
324 KB |
Output is correct |
2 |
Correct |
0 ms |
332 KB |
Output is correct |
3 |
Correct |
1 ms |
324 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
324 KB |
Output is correct |
6 |
Correct |
0 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
340 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
340 KB |
Output is correct |
25 |
Correct |
1 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
328 KB |
Output is correct |
27 |
Correct |
0 ms |
328 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
320 KB |
Output is correct |
6 |
Correct |
0 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
328 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
296 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
332 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
324 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
4 ms |
980 KB |
Output is correct |
26 |
Correct |
6 ms |
2132 KB |
Output is correct |
27 |
Correct |
5 ms |
2896 KB |
Output is correct |
28 |
Correct |
3 ms |
1364 KB |
Output is correct |
29 |
Correct |
1 ms |
1108 KB |
Output is correct |
30 |
Correct |
1 ms |
1108 KB |
Output is correct |
31 |
Correct |
4 ms |
1236 KB |
Output is correct |
32 |
Correct |
7 ms |
1876 KB |
Output is correct |
33 |
Correct |
7 ms |
1748 KB |
Output is correct |
34 |
Correct |
11 ms |
4308 KB |
Output is correct |
35 |
Correct |
13 ms |
6484 KB |
Output is correct |
36 |
Correct |
7 ms |
3540 KB |
Output is correct |
37 |
Correct |
3 ms |
2388 KB |
Output is correct |
38 |
Correct |
3 ms |
2388 KB |
Output is correct |
39 |
Correct |
42 ms |
14384 KB |
Output is correct |
40 |
Correct |
110 ms |
26860 KB |
Output is correct |
41 |
Correct |
158 ms |
67264 KB |
Output is correct |
42 |
Correct |
87 ms |
31104 KB |
Output is correct |
43 |
Correct |
28 ms |
18892 KB |
Output is correct |
44 |
Correct |
23 ms |
18904 KB |
Output is correct |
45 |
Correct |
118 ms |
24812 KB |
Output is correct |
46 |
Correct |
108 ms |
25172 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
324 KB |
Output is correct |
2 |
Correct |
0 ms |
332 KB |
Output is correct |
3 |
Correct |
1 ms |
324 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
324 KB |
Output is correct |
6 |
Correct |
0 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
340 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
340 KB |
Output is correct |
25 |
Correct |
1 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
328 KB |
Output is correct |
27 |
Correct |
0 ms |
328 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
5 ms |
1620 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
4 ms |
980 KB |
Output is correct |
37 |
Correct |
2 ms |
1364 KB |
Output is correct |
38 |
Correct |
6 ms |
2132 KB |
Output is correct |
39 |
Correct |
5 ms |
2784 KB |
Output is correct |
40 |
Correct |
7 ms |
1708 KB |
Output is correct |
41 |
Correct |
4 ms |
1620 KB |
Output is correct |
42 |
Correct |
3 ms |
1364 KB |
Output is correct |
43 |
Correct |
1 ms |
1108 KB |
Output is correct |
44 |
Correct |
1 ms |
1108 KB |
Output is correct |
45 |
Correct |
3 ms |
1620 KB |
Output is correct |
46 |
Correct |
3 ms |
1620 KB |
Output is correct |
47 |
Correct |
4 ms |
1108 KB |
Output is correct |
48 |
Correct |
4 ms |
852 KB |
Output is correct |
49 |
Correct |
4 ms |
968 KB |
Output is correct |
50 |
Correct |
4 ms |
1072 KB |
Output is correct |
51 |
Correct |
4 ms |
1236 KB |
Output is correct |
52 |
Correct |
7 ms |
1748 KB |
Output is correct |
53 |
Correct |
6 ms |
1620 KB |
Output is correct |
54 |
Correct |
4 ms |
1700 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
324 KB |
Output is correct |
2 |
Correct |
0 ms |
332 KB |
Output is correct |
3 |
Correct |
1 ms |
324 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
324 KB |
Output is correct |
6 |
Correct |
0 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
0 ms |
324 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
340 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
1 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
340 KB |
Output is correct |
25 |
Correct |
1 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
328 KB |
Output is correct |
27 |
Correct |
0 ms |
328 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
5 ms |
1620 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
4 ms |
980 KB |
Output is correct |
37 |
Correct |
2 ms |
1364 KB |
Output is correct |
38 |
Correct |
6 ms |
2132 KB |
Output is correct |
39 |
Correct |
5 ms |
2784 KB |
Output is correct |
40 |
Correct |
7 ms |
1708 KB |
Output is correct |
41 |
Correct |
4 ms |
1620 KB |
Output is correct |
42 |
Correct |
3 ms |
1364 KB |
Output is correct |
43 |
Correct |
1 ms |
1108 KB |
Output is correct |
44 |
Correct |
1 ms |
1108 KB |
Output is correct |
45 |
Correct |
3 ms |
1620 KB |
Output is correct |
46 |
Correct |
3 ms |
1620 KB |
Output is correct |
47 |
Correct |
4 ms |
1108 KB |
Output is correct |
48 |
Correct |
4 ms |
852 KB |
Output is correct |
49 |
Correct |
4 ms |
968 KB |
Output is correct |
50 |
Correct |
4 ms |
1072 KB |
Output is correct |
51 |
Correct |
4 ms |
1236 KB |
Output is correct |
52 |
Correct |
7 ms |
1748 KB |
Output is correct |
53 |
Correct |
6 ms |
1620 KB |
Output is correct |
54 |
Correct |
4 ms |
1700 KB |
Output is correct |
55 |
Correct |
13 ms |
3540 KB |
Output is correct |
56 |
Correct |
5 ms |
1696 KB |
Output is correct |
57 |
Correct |
11 ms |
4280 KB |
Output is correct |
58 |
Correct |
13 ms |
1740 KB |
Output is correct |
59 |
Correct |
14 ms |
6256 KB |
Output is correct |
60 |
Correct |
16 ms |
3628 KB |
Output is correct |
61 |
Correct |
10 ms |
3540 KB |
Output is correct |
62 |
Correct |
7 ms |
3412 KB |
Output is correct |
63 |
Correct |
2 ms |
2260 KB |
Output is correct |
64 |
Correct |
3 ms |
2260 KB |
Output is correct |
65 |
Correct |
7 ms |
3536 KB |
Output is correct |
66 |
Correct |
7 ms |
3588 KB |
Output is correct |
67 |
Correct |
9 ms |
2204 KB |
Output is correct |
68 |
Correct |
9 ms |
1492 KB |
Output is correct |
69 |
Correct |
10 ms |
1492 KB |
Output is correct |
70 |
Correct |
10 ms |
1748 KB |
Output is correct |
71 |
Correct |
10 ms |
2028 KB |
Output is correct |
72 |
Correct |
21 ms |
3796 KB |
Output is correct |
73 |
Correct |
18 ms |
3732 KB |
Output is correct |
74 |
Correct |
11 ms |
3540 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
328 KB |
Output is correct |
5 |
Correct |
1 ms |
328 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
324 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
5 ms |
1684 KB |
Output is correct |
20 |
Correct |
3 ms |
1364 KB |
Output is correct |
21 |
Correct |
6 ms |
2956 KB |
Output is correct |
22 |
Correct |
7 ms |
1748 KB |
Output is correct |
23 |
Correct |
4 ms |
1620 KB |
Output is correct |
24 |
Correct |
3 ms |
1620 KB |
Output is correct |
25 |
Correct |
3 ms |
1620 KB |
Output is correct |
26 |
Correct |
7 ms |
1876 KB |
Output is correct |
27 |
Correct |
7 ms |
1748 KB |
Output is correct |
28 |
Correct |
5 ms |
1748 KB |
Output is correct |
29 |
Correct |
11 ms |
3740 KB |
Output is correct |
30 |
Correct |
5 ms |
1760 KB |
Output is correct |
31 |
Correct |
18 ms |
6492 KB |
Output is correct |
32 |
Correct |
16 ms |
3720 KB |
Output is correct |
33 |
Correct |
10 ms |
3756 KB |
Output is correct |
34 |
Correct |
9 ms |
3712 KB |
Output is correct |
35 |
Correct |
7 ms |
3756 KB |
Output is correct |
36 |
Correct |
16 ms |
3924 KB |
Output is correct |
37 |
Correct |
17 ms |
3764 KB |
Output is correct |
38 |
Correct |
11 ms |
3788 KB |
Output is correct |
39 |
Correct |
151 ms |
32944 KB |
Output is correct |
40 |
Correct |
18 ms |
4184 KB |
Output is correct |
41 |
Correct |
10 ms |
4468 KB |
Output is correct |
42 |
Correct |
23 ms |
5204 KB |
Output is correct |
43 |
Correct |
17 ms |
5720 KB |
Output is correct |
44 |
Correct |
77 ms |
16728 KB |
Output is correct |
45 |
Correct |
69 ms |
17928 KB |
Output is correct |
46 |
Correct |
157 ms |
66168 KB |
Output is correct |
47 |
Correct |
177 ms |
33092 KB |
Output is correct |
48 |
Correct |
145 ms |
33048 KB |
Output is correct |
49 |
Correct |
73 ms |
33120 KB |
Output is correct |
50 |
Correct |
70 ms |
32948 KB |
Output is correct |
51 |
Correct |
170 ms |
33916 KB |
Output is correct |
52 |
Correct |
167 ms |
33372 KB |
Output is correct |
53 |
Correct |
141 ms |
33144 KB |
Output is correct |
54 |
Correct |
1 ms |
324 KB |
Output is correct |
55 |
Correct |
0 ms |
332 KB |
Output is correct |
56 |
Correct |
1 ms |
324 KB |
Output is correct |
57 |
Correct |
1 ms |
340 KB |
Output is correct |
58 |
Correct |
1 ms |
324 KB |
Output is correct |
59 |
Correct |
0 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
340 KB |
Output is correct |
61 |
Correct |
1 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
0 ms |
324 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
340 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
340 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
0 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
340 KB |
Output is correct |
78 |
Correct |
1 ms |
340 KB |
Output is correct |
79 |
Correct |
1 ms |
328 KB |
Output is correct |
80 |
Correct |
0 ms |
328 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
1 ms |
340 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
340 KB |
Output is correct |
87 |
Correct |
0 ms |
340 KB |
Output is correct |
88 |
Correct |
0 ms |
340 KB |
Output is correct |
89 |
Correct |
1 ms |
340 KB |
Output is correct |
90 |
Correct |
1 ms |
320 KB |
Output is correct |
91 |
Correct |
0 ms |
340 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
328 KB |
Output is correct |
98 |
Correct |
1 ms |
340 KB |
Output is correct |
99 |
Correct |
1 ms |
296 KB |
Output is correct |
100 |
Correct |
0 ms |
340 KB |
Output is correct |
101 |
Correct |
1 ms |
332 KB |
Output is correct |
102 |
Correct |
1 ms |
340 KB |
Output is correct |
103 |
Correct |
1 ms |
340 KB |
Output is correct |
104 |
Correct |
0 ms |
324 KB |
Output is correct |
105 |
Correct |
1 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
340 KB |
Output is correct |
107 |
Correct |
1 ms |
340 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
4 ms |
980 KB |
Output is correct |
111 |
Correct |
6 ms |
2132 KB |
Output is correct |
112 |
Correct |
5 ms |
2896 KB |
Output is correct |
113 |
Correct |
3 ms |
1364 KB |
Output is correct |
114 |
Correct |
1 ms |
1108 KB |
Output is correct |
115 |
Correct |
1 ms |
1108 KB |
Output is correct |
116 |
Correct |
4 ms |
1236 KB |
Output is correct |
117 |
Correct |
7 ms |
1876 KB |
Output is correct |
118 |
Correct |
7 ms |
1748 KB |
Output is correct |
119 |
Correct |
11 ms |
4308 KB |
Output is correct |
120 |
Correct |
13 ms |
6484 KB |
Output is correct |
121 |
Correct |
7 ms |
3540 KB |
Output is correct |
122 |
Correct |
3 ms |
2388 KB |
Output is correct |
123 |
Correct |
3 ms |
2388 KB |
Output is correct |
124 |
Correct |
42 ms |
14384 KB |
Output is correct |
125 |
Correct |
110 ms |
26860 KB |
Output is correct |
126 |
Correct |
158 ms |
67264 KB |
Output is correct |
127 |
Correct |
87 ms |
31104 KB |
Output is correct |
128 |
Correct |
28 ms |
18892 KB |
Output is correct |
129 |
Correct |
23 ms |
18904 KB |
Output is correct |
130 |
Correct |
118 ms |
24812 KB |
Output is correct |
131 |
Correct |
108 ms |
25172 KB |
Output is correct |
132 |
Correct |
5 ms |
1620 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
4 ms |
980 KB |
Output is correct |
136 |
Correct |
2 ms |
1364 KB |
Output is correct |
137 |
Correct |
6 ms |
2132 KB |
Output is correct |
138 |
Correct |
5 ms |
2784 KB |
Output is correct |
139 |
Correct |
7 ms |
1708 KB |
Output is correct |
140 |
Correct |
4 ms |
1620 KB |
Output is correct |
141 |
Correct |
3 ms |
1364 KB |
Output is correct |
142 |
Correct |
1 ms |
1108 KB |
Output is correct |
143 |
Correct |
1 ms |
1108 KB |
Output is correct |
144 |
Correct |
3 ms |
1620 KB |
Output is correct |
145 |
Correct |
3 ms |
1620 KB |
Output is correct |
146 |
Correct |
4 ms |
1108 KB |
Output is correct |
147 |
Correct |
4 ms |
852 KB |
Output is correct |
148 |
Correct |
4 ms |
968 KB |
Output is correct |
149 |
Correct |
4 ms |
1072 KB |
Output is correct |
150 |
Correct |
4 ms |
1236 KB |
Output is correct |
151 |
Correct |
7 ms |
1748 KB |
Output is correct |
152 |
Correct |
6 ms |
1620 KB |
Output is correct |
153 |
Correct |
4 ms |
1700 KB |
Output is correct |
154 |
Correct |
13 ms |
3540 KB |
Output is correct |
155 |
Correct |
5 ms |
1696 KB |
Output is correct |
156 |
Correct |
11 ms |
4280 KB |
Output is correct |
157 |
Correct |
13 ms |
1740 KB |
Output is correct |
158 |
Correct |
14 ms |
6256 KB |
Output is correct |
159 |
Correct |
16 ms |
3628 KB |
Output is correct |
160 |
Correct |
10 ms |
3540 KB |
Output is correct |
161 |
Correct |
7 ms |
3412 KB |
Output is correct |
162 |
Correct |
2 ms |
2260 KB |
Output is correct |
163 |
Correct |
3 ms |
2260 KB |
Output is correct |
164 |
Correct |
7 ms |
3536 KB |
Output is correct |
165 |
Correct |
7 ms |
3588 KB |
Output is correct |
166 |
Correct |
9 ms |
2204 KB |
Output is correct |
167 |
Correct |
9 ms |
1492 KB |
Output is correct |
168 |
Correct |
10 ms |
1492 KB |
Output is correct |
169 |
Correct |
10 ms |
1748 KB |
Output is correct |
170 |
Correct |
10 ms |
2028 KB |
Output is correct |
171 |
Correct |
21 ms |
3796 KB |
Output is correct |
172 |
Correct |
18 ms |
3732 KB |
Output is correct |
173 |
Correct |
11 ms |
3540 KB |
Output is correct |
174 |
Correct |
21 ms |
2444 KB |
Output is correct |
175 |
Correct |
26 ms |
3312 KB |
Output is correct |
176 |
Correct |
59 ms |
9564 KB |
Output is correct |
177 |
Correct |
81 ms |
8512 KB |
Output is correct |
178 |
Correct |
125 ms |
10596 KB |
Output is correct |
179 |
Correct |
93 ms |
11448 KB |
Output is correct |
180 |
Correct |
97 ms |
11572 KB |
Output is correct |
181 |
Correct |
100 ms |
12072 KB |
Output is correct |
182 |
Correct |
99 ms |
13308 KB |
Output is correct |
183 |
Correct |
100 ms |
12620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
328 KB |
Output is correct |
5 |
Correct |
1 ms |
328 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
324 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
5 ms |
1684 KB |
Output is correct |
20 |
Correct |
3 ms |
1364 KB |
Output is correct |
21 |
Correct |
6 ms |
2956 KB |
Output is correct |
22 |
Correct |
7 ms |
1748 KB |
Output is correct |
23 |
Correct |
4 ms |
1620 KB |
Output is correct |
24 |
Correct |
3 ms |
1620 KB |
Output is correct |
25 |
Correct |
3 ms |
1620 KB |
Output is correct |
26 |
Correct |
7 ms |
1876 KB |
Output is correct |
27 |
Correct |
7 ms |
1748 KB |
Output is correct |
28 |
Correct |
5 ms |
1748 KB |
Output is correct |
29 |
Correct |
11 ms |
3740 KB |
Output is correct |
30 |
Correct |
5 ms |
1760 KB |
Output is correct |
31 |
Correct |
18 ms |
6492 KB |
Output is correct |
32 |
Correct |
16 ms |
3720 KB |
Output is correct |
33 |
Correct |
10 ms |
3756 KB |
Output is correct |
34 |
Correct |
9 ms |
3712 KB |
Output is correct |
35 |
Correct |
7 ms |
3756 KB |
Output is correct |
36 |
Correct |
16 ms |
3924 KB |
Output is correct |
37 |
Correct |
17 ms |
3764 KB |
Output is correct |
38 |
Correct |
11 ms |
3788 KB |
Output is correct |
39 |
Correct |
151 ms |
32944 KB |
Output is correct |
40 |
Correct |
18 ms |
4184 KB |
Output is correct |
41 |
Correct |
10 ms |
4468 KB |
Output is correct |
42 |
Correct |
23 ms |
5204 KB |
Output is correct |
43 |
Correct |
17 ms |
5720 KB |
Output is correct |
44 |
Correct |
77 ms |
16728 KB |
Output is correct |
45 |
Correct |
69 ms |
17928 KB |
Output is correct |
46 |
Correct |
157 ms |
66168 KB |
Output is correct |
47 |
Correct |
177 ms |
33092 KB |
Output is correct |
48 |
Correct |
145 ms |
33048 KB |
Output is correct |
49 |
Correct |
73 ms |
33120 KB |
Output is correct |
50 |
Correct |
70 ms |
32948 KB |
Output is correct |
51 |
Correct |
170 ms |
33916 KB |
Output is correct |
52 |
Correct |
167 ms |
33372 KB |
Output is correct |
53 |
Correct |
141 ms |
33144 KB |
Output is correct |
54 |
Correct |
1 ms |
324 KB |
Output is correct |
55 |
Correct |
0 ms |
332 KB |
Output is correct |
56 |
Correct |
1 ms |
324 KB |
Output is correct |
57 |
Correct |
1 ms |
340 KB |
Output is correct |
58 |
Correct |
1 ms |
324 KB |
Output is correct |
59 |
Correct |
0 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
340 KB |
Output is correct |
61 |
Correct |
1 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
0 ms |
324 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
340 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
340 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
0 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
340 KB |
Output is correct |
78 |
Correct |
1 ms |
340 KB |
Output is correct |
79 |
Correct |
1 ms |
328 KB |
Output is correct |
80 |
Correct |
0 ms |
328 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
1 ms |
340 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
340 KB |
Output is correct |
87 |
Correct |
0 ms |
340 KB |
Output is correct |
88 |
Correct |
0 ms |
340 KB |
Output is correct |
89 |
Correct |
1 ms |
340 KB |
Output is correct |
90 |
Correct |
1 ms |
320 KB |
Output is correct |
91 |
Correct |
0 ms |
340 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
328 KB |
Output is correct |
98 |
Correct |
1 ms |
340 KB |
Output is correct |
99 |
Correct |
1 ms |
296 KB |
Output is correct |
100 |
Correct |
0 ms |
340 KB |
Output is correct |
101 |
Correct |
1 ms |
332 KB |
Output is correct |
102 |
Correct |
1 ms |
340 KB |
Output is correct |
103 |
Correct |
1 ms |
340 KB |
Output is correct |
104 |
Correct |
0 ms |
324 KB |
Output is correct |
105 |
Correct |
1 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
340 KB |
Output is correct |
107 |
Correct |
1 ms |
340 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
4 ms |
980 KB |
Output is correct |
111 |
Correct |
6 ms |
2132 KB |
Output is correct |
112 |
Correct |
5 ms |
2896 KB |
Output is correct |
113 |
Correct |
3 ms |
1364 KB |
Output is correct |
114 |
Correct |
1 ms |
1108 KB |
Output is correct |
115 |
Correct |
1 ms |
1108 KB |
Output is correct |
116 |
Correct |
4 ms |
1236 KB |
Output is correct |
117 |
Correct |
7 ms |
1876 KB |
Output is correct |
118 |
Correct |
7 ms |
1748 KB |
Output is correct |
119 |
Correct |
11 ms |
4308 KB |
Output is correct |
120 |
Correct |
13 ms |
6484 KB |
Output is correct |
121 |
Correct |
7 ms |
3540 KB |
Output is correct |
122 |
Correct |
3 ms |
2388 KB |
Output is correct |
123 |
Correct |
3 ms |
2388 KB |
Output is correct |
124 |
Correct |
42 ms |
14384 KB |
Output is correct |
125 |
Correct |
110 ms |
26860 KB |
Output is correct |
126 |
Correct |
158 ms |
67264 KB |
Output is correct |
127 |
Correct |
87 ms |
31104 KB |
Output is correct |
128 |
Correct |
28 ms |
18892 KB |
Output is correct |
129 |
Correct |
23 ms |
18904 KB |
Output is correct |
130 |
Correct |
118 ms |
24812 KB |
Output is correct |
131 |
Correct |
108 ms |
25172 KB |
Output is correct |
132 |
Correct |
5 ms |
1620 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
4 ms |
980 KB |
Output is correct |
136 |
Correct |
2 ms |
1364 KB |
Output is correct |
137 |
Correct |
6 ms |
2132 KB |
Output is correct |
138 |
Correct |
5 ms |
2784 KB |
Output is correct |
139 |
Correct |
7 ms |
1708 KB |
Output is correct |
140 |
Correct |
4 ms |
1620 KB |
Output is correct |
141 |
Correct |
3 ms |
1364 KB |
Output is correct |
142 |
Correct |
1 ms |
1108 KB |
Output is correct |
143 |
Correct |
1 ms |
1108 KB |
Output is correct |
144 |
Correct |
3 ms |
1620 KB |
Output is correct |
145 |
Correct |
3 ms |
1620 KB |
Output is correct |
146 |
Correct |
4 ms |
1108 KB |
Output is correct |
147 |
Correct |
4 ms |
852 KB |
Output is correct |
148 |
Correct |
4 ms |
968 KB |
Output is correct |
149 |
Correct |
4 ms |
1072 KB |
Output is correct |
150 |
Correct |
4 ms |
1236 KB |
Output is correct |
151 |
Correct |
7 ms |
1748 KB |
Output is correct |
152 |
Correct |
6 ms |
1620 KB |
Output is correct |
153 |
Correct |
4 ms |
1700 KB |
Output is correct |
154 |
Correct |
13 ms |
3540 KB |
Output is correct |
155 |
Correct |
5 ms |
1696 KB |
Output is correct |
156 |
Correct |
11 ms |
4280 KB |
Output is correct |
157 |
Correct |
13 ms |
1740 KB |
Output is correct |
158 |
Correct |
14 ms |
6256 KB |
Output is correct |
159 |
Correct |
16 ms |
3628 KB |
Output is correct |
160 |
Correct |
10 ms |
3540 KB |
Output is correct |
161 |
Correct |
7 ms |
3412 KB |
Output is correct |
162 |
Correct |
2 ms |
2260 KB |
Output is correct |
163 |
Correct |
3 ms |
2260 KB |
Output is correct |
164 |
Correct |
7 ms |
3536 KB |
Output is correct |
165 |
Correct |
7 ms |
3588 KB |
Output is correct |
166 |
Correct |
9 ms |
2204 KB |
Output is correct |
167 |
Correct |
9 ms |
1492 KB |
Output is correct |
168 |
Correct |
10 ms |
1492 KB |
Output is correct |
169 |
Correct |
10 ms |
1748 KB |
Output is correct |
170 |
Correct |
10 ms |
2028 KB |
Output is correct |
171 |
Correct |
21 ms |
3796 KB |
Output is correct |
172 |
Correct |
18 ms |
3732 KB |
Output is correct |
173 |
Correct |
11 ms |
3540 KB |
Output is correct |
174 |
Correct |
21 ms |
2444 KB |
Output is correct |
175 |
Correct |
26 ms |
3312 KB |
Output is correct |
176 |
Correct |
59 ms |
9564 KB |
Output is correct |
177 |
Correct |
81 ms |
8512 KB |
Output is correct |
178 |
Correct |
125 ms |
10596 KB |
Output is correct |
179 |
Correct |
93 ms |
11448 KB |
Output is correct |
180 |
Correct |
97 ms |
11572 KB |
Output is correct |
181 |
Correct |
100 ms |
12072 KB |
Output is correct |
182 |
Correct |
99 ms |
13308 KB |
Output is correct |
183 |
Correct |
100 ms |
12620 KB |
Output is correct |
184 |
Correct |
310 ms |
67832 KB |
Output is correct |
185 |
Correct |
128 ms |
12592 KB |
Output is correct |
186 |
Correct |
177 ms |
47396 KB |
Output is correct |
187 |
Correct |
185 ms |
23380 KB |
Output is correct |
188 |
Correct |
330 ms |
135324 KB |
Output is correct |
189 |
Correct |
334 ms |
68124 KB |
Output is correct |
190 |
Correct |
289 ms |
67900 KB |
Output is correct |
191 |
Correct |
159 ms |
56196 KB |
Output is correct |
192 |
Correct |
40 ms |
31760 KB |
Output is correct |
193 |
Correct |
38 ms |
31884 KB |
Output is correct |
194 |
Correct |
146 ms |
67820 KB |
Output is correct |
195 |
Correct |
143 ms |
67836 KB |
Output is correct |
196 |
Correct |
189 ms |
22056 KB |
Output is correct |
197 |
Correct |
192 ms |
22212 KB |
Output is correct |
198 |
Correct |
194 ms |
23164 KB |
Output is correct |
199 |
Correct |
206 ms |
23852 KB |
Output is correct |
200 |
Correct |
341 ms |
69136 KB |
Output is correct |
201 |
Correct |
334 ms |
68364 KB |
Output is correct |
202 |
Correct |
283 ms |
68072 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
1 ms |
328 KB |
Output is correct |
5 |
Correct |
1 ms |
328 KB |
Output is correct |
6 |
Correct |
1 ms |
340 KB |
Output is correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
340 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
324 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
1 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
5 ms |
1684 KB |
Output is correct |
20 |
Correct |
3 ms |
1364 KB |
Output is correct |
21 |
Correct |
6 ms |
2956 KB |
Output is correct |
22 |
Correct |
7 ms |
1748 KB |
Output is correct |
23 |
Correct |
4 ms |
1620 KB |
Output is correct |
24 |
Correct |
3 ms |
1620 KB |
Output is correct |
25 |
Correct |
3 ms |
1620 KB |
Output is correct |
26 |
Correct |
7 ms |
1876 KB |
Output is correct |
27 |
Correct |
7 ms |
1748 KB |
Output is correct |
28 |
Correct |
5 ms |
1748 KB |
Output is correct |
29 |
Correct |
11 ms |
3740 KB |
Output is correct |
30 |
Correct |
5 ms |
1760 KB |
Output is correct |
31 |
Correct |
18 ms |
6492 KB |
Output is correct |
32 |
Correct |
16 ms |
3720 KB |
Output is correct |
33 |
Correct |
10 ms |
3756 KB |
Output is correct |
34 |
Correct |
9 ms |
3712 KB |
Output is correct |
35 |
Correct |
7 ms |
3756 KB |
Output is correct |
36 |
Correct |
16 ms |
3924 KB |
Output is correct |
37 |
Correct |
17 ms |
3764 KB |
Output is correct |
38 |
Correct |
11 ms |
3788 KB |
Output is correct |
39 |
Correct |
151 ms |
32944 KB |
Output is correct |
40 |
Correct |
18 ms |
4184 KB |
Output is correct |
41 |
Correct |
10 ms |
4468 KB |
Output is correct |
42 |
Correct |
23 ms |
5204 KB |
Output is correct |
43 |
Correct |
17 ms |
5720 KB |
Output is correct |
44 |
Correct |
77 ms |
16728 KB |
Output is correct |
45 |
Correct |
69 ms |
17928 KB |
Output is correct |
46 |
Correct |
157 ms |
66168 KB |
Output is correct |
47 |
Correct |
177 ms |
33092 KB |
Output is correct |
48 |
Correct |
145 ms |
33048 KB |
Output is correct |
49 |
Correct |
73 ms |
33120 KB |
Output is correct |
50 |
Correct |
70 ms |
32948 KB |
Output is correct |
51 |
Correct |
170 ms |
33916 KB |
Output is correct |
52 |
Correct |
167 ms |
33372 KB |
Output is correct |
53 |
Correct |
141 ms |
33144 KB |
Output is correct |
54 |
Correct |
1 ms |
324 KB |
Output is correct |
55 |
Correct |
0 ms |
332 KB |
Output is correct |
56 |
Correct |
1 ms |
324 KB |
Output is correct |
57 |
Correct |
1 ms |
340 KB |
Output is correct |
58 |
Correct |
1 ms |
324 KB |
Output is correct |
59 |
Correct |
0 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
340 KB |
Output is correct |
61 |
Correct |
1 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
340 KB |
Output is correct |
63 |
Correct |
1 ms |
340 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
0 ms |
324 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
340 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
340 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
0 ms |
340 KB |
Output is correct |
77 |
Correct |
0 ms |
340 KB |
Output is correct |
78 |
Correct |
1 ms |
340 KB |
Output is correct |
79 |
Correct |
1 ms |
328 KB |
Output is correct |
80 |
Correct |
0 ms |
328 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
1 ms |
340 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
340 KB |
Output is correct |
87 |
Correct |
0 ms |
340 KB |
Output is correct |
88 |
Correct |
0 ms |
340 KB |
Output is correct |
89 |
Correct |
1 ms |
340 KB |
Output is correct |
90 |
Correct |
1 ms |
320 KB |
Output is correct |
91 |
Correct |
0 ms |
340 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
328 KB |
Output is correct |
98 |
Correct |
1 ms |
340 KB |
Output is correct |
99 |
Correct |
1 ms |
296 KB |
Output is correct |
100 |
Correct |
0 ms |
340 KB |
Output is correct |
101 |
Correct |
1 ms |
332 KB |
Output is correct |
102 |
Correct |
1 ms |
340 KB |
Output is correct |
103 |
Correct |
1 ms |
340 KB |
Output is correct |
104 |
Correct |
0 ms |
324 KB |
Output is correct |
105 |
Correct |
1 ms |
340 KB |
Output is correct |
106 |
Correct |
0 ms |
340 KB |
Output is correct |
107 |
Correct |
1 ms |
340 KB |
Output is correct |
108 |
Correct |
1 ms |
340 KB |
Output is correct |
109 |
Correct |
1 ms |
340 KB |
Output is correct |
110 |
Correct |
4 ms |
980 KB |
Output is correct |
111 |
Correct |
6 ms |
2132 KB |
Output is correct |
112 |
Correct |
5 ms |
2896 KB |
Output is correct |
113 |
Correct |
3 ms |
1364 KB |
Output is correct |
114 |
Correct |
1 ms |
1108 KB |
Output is correct |
115 |
Correct |
1 ms |
1108 KB |
Output is correct |
116 |
Correct |
4 ms |
1236 KB |
Output is correct |
117 |
Correct |
7 ms |
1876 KB |
Output is correct |
118 |
Correct |
7 ms |
1748 KB |
Output is correct |
119 |
Correct |
11 ms |
4308 KB |
Output is correct |
120 |
Correct |
13 ms |
6484 KB |
Output is correct |
121 |
Correct |
7 ms |
3540 KB |
Output is correct |
122 |
Correct |
3 ms |
2388 KB |
Output is correct |
123 |
Correct |
3 ms |
2388 KB |
Output is correct |
124 |
Correct |
42 ms |
14384 KB |
Output is correct |
125 |
Correct |
110 ms |
26860 KB |
Output is correct |
126 |
Correct |
158 ms |
67264 KB |
Output is correct |
127 |
Correct |
87 ms |
31104 KB |
Output is correct |
128 |
Correct |
28 ms |
18892 KB |
Output is correct |
129 |
Correct |
23 ms |
18904 KB |
Output is correct |
130 |
Correct |
118 ms |
24812 KB |
Output is correct |
131 |
Correct |
108 ms |
25172 KB |
Output is correct |
132 |
Correct |
5 ms |
1620 KB |
Output is correct |
133 |
Correct |
1 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
4 ms |
980 KB |
Output is correct |
136 |
Correct |
2 ms |
1364 KB |
Output is correct |
137 |
Correct |
6 ms |
2132 KB |
Output is correct |
138 |
Correct |
5 ms |
2784 KB |
Output is correct |
139 |
Correct |
7 ms |
1708 KB |
Output is correct |
140 |
Correct |
4 ms |
1620 KB |
Output is correct |
141 |
Correct |
3 ms |
1364 KB |
Output is correct |
142 |
Correct |
1 ms |
1108 KB |
Output is correct |
143 |
Correct |
1 ms |
1108 KB |
Output is correct |
144 |
Correct |
3 ms |
1620 KB |
Output is correct |
145 |
Correct |
3 ms |
1620 KB |
Output is correct |
146 |
Correct |
4 ms |
1108 KB |
Output is correct |
147 |
Correct |
4 ms |
852 KB |
Output is correct |
148 |
Correct |
4 ms |
968 KB |
Output is correct |
149 |
Correct |
4 ms |
1072 KB |
Output is correct |
150 |
Correct |
4 ms |
1236 KB |
Output is correct |
151 |
Correct |
7 ms |
1748 KB |
Output is correct |
152 |
Correct |
6 ms |
1620 KB |
Output is correct |
153 |
Correct |
4 ms |
1700 KB |
Output is correct |
154 |
Correct |
13 ms |
3540 KB |
Output is correct |
155 |
Correct |
5 ms |
1696 KB |
Output is correct |
156 |
Correct |
11 ms |
4280 KB |
Output is correct |
157 |
Correct |
13 ms |
1740 KB |
Output is correct |
158 |
Correct |
14 ms |
6256 KB |
Output is correct |
159 |
Correct |
16 ms |
3628 KB |
Output is correct |
160 |
Correct |
10 ms |
3540 KB |
Output is correct |
161 |
Correct |
7 ms |
3412 KB |
Output is correct |
162 |
Correct |
2 ms |
2260 KB |
Output is correct |
163 |
Correct |
3 ms |
2260 KB |
Output is correct |
164 |
Correct |
7 ms |
3536 KB |
Output is correct |
165 |
Correct |
7 ms |
3588 KB |
Output is correct |
166 |
Correct |
9 ms |
2204 KB |
Output is correct |
167 |
Correct |
9 ms |
1492 KB |
Output is correct |
168 |
Correct |
10 ms |
1492 KB |
Output is correct |
169 |
Correct |
10 ms |
1748 KB |
Output is correct |
170 |
Correct |
10 ms |
2028 KB |
Output is correct |
171 |
Correct |
21 ms |
3796 KB |
Output is correct |
172 |
Correct |
18 ms |
3732 KB |
Output is correct |
173 |
Correct |
11 ms |
3540 KB |
Output is correct |
174 |
Correct |
21 ms |
2444 KB |
Output is correct |
175 |
Correct |
26 ms |
3312 KB |
Output is correct |
176 |
Correct |
59 ms |
9564 KB |
Output is correct |
177 |
Correct |
81 ms |
8512 KB |
Output is correct |
178 |
Correct |
125 ms |
10596 KB |
Output is correct |
179 |
Correct |
93 ms |
11448 KB |
Output is correct |
180 |
Correct |
97 ms |
11572 KB |
Output is correct |
181 |
Correct |
100 ms |
12072 KB |
Output is correct |
182 |
Correct |
99 ms |
13308 KB |
Output is correct |
183 |
Correct |
100 ms |
12620 KB |
Output is correct |
184 |
Correct |
310 ms |
67832 KB |
Output is correct |
185 |
Correct |
128 ms |
12592 KB |
Output is correct |
186 |
Correct |
177 ms |
47396 KB |
Output is correct |
187 |
Correct |
185 ms |
23380 KB |
Output is correct |
188 |
Correct |
330 ms |
135324 KB |
Output is correct |
189 |
Correct |
334 ms |
68124 KB |
Output is correct |
190 |
Correct |
289 ms |
67900 KB |
Output is correct |
191 |
Correct |
159 ms |
56196 KB |
Output is correct |
192 |
Correct |
40 ms |
31760 KB |
Output is correct |
193 |
Correct |
38 ms |
31884 KB |
Output is correct |
194 |
Correct |
146 ms |
67820 KB |
Output is correct |
195 |
Correct |
143 ms |
67836 KB |
Output is correct |
196 |
Correct |
189 ms |
22056 KB |
Output is correct |
197 |
Correct |
192 ms |
22212 KB |
Output is correct |
198 |
Correct |
194 ms |
23164 KB |
Output is correct |
199 |
Correct |
206 ms |
23852 KB |
Output is correct |
200 |
Correct |
341 ms |
69136 KB |
Output is correct |
201 |
Correct |
334 ms |
68364 KB |
Output is correct |
202 |
Correct |
283 ms |
68072 KB |
Output is correct |
203 |
Correct |
641 ms |
135316 KB |
Output is correct |
204 |
Correct |
171 ms |
34984 KB |
Output is correct |
205 |
Correct |
372 ms |
34504 KB |
Output is correct |
206 |
Correct |
560 ms |
134600 KB |
Output is correct |
207 |
Correct |
760 ms |
269340 KB |
Output is correct |
208 |
Correct |
705 ms |
135692 KB |
Output is correct |
209 |
Correct |
665 ms |
135248 KB |
Output is correct |
210 |
Correct |
332 ms |
104060 KB |
Output is correct |
211 |
Correct |
72 ms |
55264 KB |
Output is correct |
212 |
Correct |
70 ms |
55124 KB |
Output is correct |
213 |
Correct |
286 ms |
135308 KB |
Output is correct |
214 |
Correct |
258 ms |
135304 KB |
Output is correct |
215 |
Correct |
381 ms |
43232 KB |
Output is correct |
216 |
Correct |
364 ms |
43368 KB |
Output is correct |
217 |
Correct |
395 ms |
44292 KB |
Output is correct |
218 |
Correct |
405 ms |
46828 KB |
Output is correct |
219 |
Correct |
423 ms |
58496 KB |
Output is correct |
220 |
Correct |
445 ms |
77056 KB |
Output is correct |
221 |
Correct |
463 ms |
94064 KB |
Output is correct |
222 |
Correct |
463 ms |
95264 KB |
Output is correct |
223 |
Correct |
757 ms |
137116 KB |
Output is correct |
224 |
Correct |
754 ms |
136232 KB |
Output is correct |
225 |
Correct |
609 ms |
135520 KB |
Output is correct |