# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
739022 |
2023-05-09T18:47:46 Z |
He_Huanglu |
Maze (JOI23_ho_t3) |
C++17 |
|
2000 ms |
693156 KB |
#include <bits/stdc++.h>
#define ii pair<int, int>
#define fi first
#define se second
using namespace std;
const int N = 6e6 + 1;
int n, m, s, rs, cs, re, ce;
int dx[4] = {0, -1, 0, 1};
int dy[4] = {-1, 0, 1, 0};
vector <int> f[N], a[N], p[2][N];
queue <ii> q[2];
void up(int u, int v, int val) {
if(0 < u && u <= m && 0 < v && v <= n && !f[u][v]) {
q[1].push({u, v});
f[u][v] = val;
}
}
int get(int t, int id, int u) {
return p[t][id][u] == u ? u : p[t][id][u] = get(t, id, p[t][id][u]);
}
void upd(int t, int id, int i, int j, int val) {
int u = get(t, id, i);
while (u <= j) {
if(t && !f[id][u]) {
q[1].push({id, u});
f[id][u] = val;
}
if(!t && !f[u][id]) {
q[1].push({u, id});
f[u][id] = val;
}
u = get(t, id, u + 1);
p[t][id][i] = u;
}
}
main () {
cin.tie(0)->sync_with_stdio(0);
if(fopen("task.inp", "r")) {
freopen("task.inp", "r", stdin);
freopen("wa.out", "w", stdout);
}
cin >> m >> n >> s >> rs >> cs >> re >> ce;
for(int i = 1; i <= m; i++) a[i].resize(n + 1), f[i].resize(n + 1);
for(int i = 1; i <= m; i++) {
for(int j = 0; j <= n + 1; j++) p[1][i].push_back(j);
}
for(int i = 1; i <= n; i++) {
for(int j = 0; j <= m + 1; j++) p[0][i].push_back(j);
}
for(int i = 1; i <= m; i++) {
for(int j = 1; j <= n; j++) {
char ch; cin >> ch;
a[i][j] = (ch == '.' ? 1 : 0);
}
}
q[1].push({rs, cs}); f[rs][cs] = 1;
while (!q[1].empty() || !q[0].empty()) {
while (!q[1].empty()) {
int x, y; tie(x, y) = q[1].front(); q[1].pop();
q[0].push({x, y});
if(x == re && y == ce) return cout << f[x][y] - 1 << "\n", 0;
for(int i = 0; i < 4; i++) {
int u = x + dx[i], v = y + dy[i];
if(0 < u && u <= m && 0 < v && v <= n && !f[u][v] && a[u][v]) {
f[u][v] = f[x][y];
q[1].push({u, v});
}
}
}
while (!q[0].empty()) {
int x, y; tie(x, y) = q[0].front(); q[0].pop();
if(x == rs && y == cs) {
int s1 = max(1, x - s), s2 = max(1, y - s);
int s3 = min(m, x + s), s4 = min(n, y + s);
for(int i = s1; i <= s3; i++) {
for(int j = s2; j <= s4; j++) if(!f[i][j]) {
if(i == x - s && (j == y - s || j == y + s)) continue ;
if(i == x + s && (j == y - s || j == y + s)) continue ;
f[i][j] = f[x][y] + 1;
q[1].push({i, j});
}
}
continue ;
}
int val = f[x][y] + 1;
for(int i = 0; i < 4; i++) {
int u = x + dx[i], v = y + dy[i];
up(x - s, y + s - 1, val);
up(x + s, y + s - 1, val);
if(y + s <= n) upd(0, y + s, max(1, x - s + 1), min(m, x + s - 1), val);
up(x + s - 1, y - s, val);
up(x + s - 1, y + s, val);
if(x + s <= m) upd(1, x + s, max(1, y - s + 1), min(n, y + s - 1), val);
up(x - s, y - s + 1, val);
up(x + s, y - s + 1, val);
if(y > s) upd(0, y - s, max(1, x - s + 1), min(m, x + s - 1), val);
up(x - s + 1, y - s, val);
up(x - s + 1, y + s, val);
if(x > s) upd(1, x - s, max(1, y - s + 1), min(n, y + s - 1), val);
}
}
}
}
Compilation message
Main.cpp:41:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
41 | main () {
| ^~~~
Main.cpp: In function 'int main()':
Main.cpp:92:21: warning: unused variable 'u' [-Wunused-variable]
92 | int u = x + dx[i], v = y + dy[i];
| ^
Main.cpp:92:36: warning: unused variable 'v' [-Wunused-variable]
92 | int u = x + dx[i], v = y + dy[i];
| ^
Main.cpp:44:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | freopen("task.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:45:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | freopen("wa.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
245 ms |
563868 KB |
Output is correct |
2 |
Correct |
252 ms |
563908 KB |
Output is correct |
3 |
Correct |
261 ms |
563984 KB |
Output is correct |
4 |
Correct |
252 ms |
563932 KB |
Output is correct |
5 |
Correct |
258 ms |
563916 KB |
Output is correct |
6 |
Correct |
251 ms |
564028 KB |
Output is correct |
7 |
Correct |
252 ms |
563864 KB |
Output is correct |
8 |
Correct |
253 ms |
563864 KB |
Output is correct |
9 |
Correct |
252 ms |
563900 KB |
Output is correct |
10 |
Correct |
251 ms |
563812 KB |
Output is correct |
11 |
Correct |
270 ms |
563864 KB |
Output is correct |
12 |
Correct |
260 ms |
563812 KB |
Output is correct |
13 |
Correct |
265 ms |
563788 KB |
Output is correct |
14 |
Correct |
258 ms |
564024 KB |
Output is correct |
15 |
Correct |
255 ms |
563908 KB |
Output is correct |
16 |
Correct |
254 ms |
563888 KB |
Output is correct |
17 |
Correct |
252 ms |
563824 KB |
Output is correct |
18 |
Correct |
254 ms |
563892 KB |
Output is correct |
19 |
Correct |
272 ms |
564864 KB |
Output is correct |
20 |
Correct |
264 ms |
565924 KB |
Output is correct |
21 |
Correct |
282 ms |
565296 KB |
Output is correct |
22 |
Correct |
272 ms |
564968 KB |
Output is correct |
23 |
Correct |
281 ms |
564816 KB |
Output is correct |
24 |
Correct |
264 ms |
566568 KB |
Output is correct |
25 |
Correct |
270 ms |
566524 KB |
Output is correct |
26 |
Correct |
278 ms |
564920 KB |
Output is correct |
27 |
Correct |
258 ms |
564880 KB |
Output is correct |
28 |
Correct |
277 ms |
564804 KB |
Output is correct |
29 |
Correct |
362 ms |
566756 KB |
Output is correct |
30 |
Correct |
270 ms |
565560 KB |
Output is correct |
31 |
Correct |
266 ms |
567812 KB |
Output is correct |
32 |
Correct |
338 ms |
566704 KB |
Output is correct |
33 |
Correct |
301 ms |
566732 KB |
Output is correct |
34 |
Correct |
305 ms |
570520 KB |
Output is correct |
35 |
Correct |
290 ms |
570448 KB |
Output is correct |
36 |
Correct |
279 ms |
567072 KB |
Output is correct |
37 |
Correct |
298 ms |
566792 KB |
Output is correct |
38 |
Correct |
276 ms |
566812 KB |
Output is correct |
39 |
Correct |
861 ms |
595604 KB |
Output is correct |
40 |
Correct |
277 ms |
567368 KB |
Output is correct |
41 |
Correct |
298 ms |
572024 KB |
Output is correct |
42 |
Correct |
355 ms |
568268 KB |
Output is correct |
43 |
Correct |
303 ms |
570636 KB |
Output is correct |
44 |
Correct |
375 ms |
578728 KB |
Output is correct |
45 |
Correct |
372 ms |
581076 KB |
Output is correct |
46 |
Correct |
313 ms |
599096 KB |
Output is correct |
47 |
Correct |
832 ms |
596044 KB |
Output is correct |
48 |
Correct |
692 ms |
596140 KB |
Output is correct |
49 |
Correct |
605 ms |
629164 KB |
Output is correct |
50 |
Correct |
599 ms |
629296 KB |
Output is correct |
51 |
Correct |
675 ms |
596616 KB |
Output is correct |
52 |
Correct |
589 ms |
596104 KB |
Output is correct |
53 |
Correct |
748 ms |
596220 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
265 ms |
563836 KB |
Output is correct |
2 |
Correct |
274 ms |
563908 KB |
Output is correct |
3 |
Correct |
263 ms |
563832 KB |
Output is correct |
4 |
Correct |
248 ms |
563900 KB |
Output is correct |
5 |
Correct |
257 ms |
563852 KB |
Output is correct |
6 |
Correct |
256 ms |
563952 KB |
Output is correct |
7 |
Correct |
275 ms |
563896 KB |
Output is correct |
8 |
Correct |
254 ms |
563916 KB |
Output is correct |
9 |
Correct |
259 ms |
563964 KB |
Output is correct |
10 |
Correct |
246 ms |
563984 KB |
Output is correct |
11 |
Correct |
258 ms |
563836 KB |
Output is correct |
12 |
Correct |
262 ms |
563916 KB |
Output is correct |
13 |
Correct |
252 ms |
563916 KB |
Output is correct |
14 |
Correct |
266 ms |
563828 KB |
Output is correct |
15 |
Correct |
254 ms |
564084 KB |
Output is correct |
16 |
Correct |
252 ms |
563892 KB |
Output is correct |
17 |
Correct |
252 ms |
563968 KB |
Output is correct |
18 |
Correct |
258 ms |
563872 KB |
Output is correct |
19 |
Correct |
271 ms |
563924 KB |
Output is correct |
20 |
Correct |
253 ms |
563876 KB |
Output is correct |
21 |
Correct |
269 ms |
563856 KB |
Output is correct |
22 |
Correct |
252 ms |
563884 KB |
Output is correct |
23 |
Correct |
263 ms |
563872 KB |
Output is correct |
24 |
Correct |
279 ms |
563860 KB |
Output is correct |
25 |
Correct |
261 ms |
563808 KB |
Output is correct |
26 |
Correct |
258 ms |
563908 KB |
Output is correct |
27 |
Correct |
254 ms |
563884 KB |
Output is correct |
28 |
Correct |
273 ms |
563900 KB |
Output is correct |
29 |
Correct |
258 ms |
563788 KB |
Output is correct |
30 |
Correct |
263 ms |
563956 KB |
Output is correct |
31 |
Correct |
259 ms |
563916 KB |
Output is correct |
32 |
Correct |
247 ms |
563912 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
272 ms |
563908 KB |
Output is correct |
2 |
Correct |
270 ms |
563912 KB |
Output is correct |
3 |
Correct |
268 ms |
563916 KB |
Output is correct |
4 |
Correct |
248 ms |
563840 KB |
Output is correct |
5 |
Correct |
267 ms |
563800 KB |
Output is correct |
6 |
Correct |
271 ms |
563820 KB |
Output is correct |
7 |
Correct |
263 ms |
563868 KB |
Output is correct |
8 |
Correct |
251 ms |
563816 KB |
Output is correct |
9 |
Correct |
261 ms |
564028 KB |
Output is correct |
10 |
Correct |
276 ms |
563948 KB |
Output is correct |
11 |
Correct |
251 ms |
563940 KB |
Output is correct |
12 |
Correct |
258 ms |
563940 KB |
Output is correct |
13 |
Correct |
266 ms |
563880 KB |
Output is correct |
14 |
Correct |
256 ms |
563968 KB |
Output is correct |
15 |
Correct |
269 ms |
563904 KB |
Output is correct |
16 |
Correct |
266 ms |
563932 KB |
Output is correct |
17 |
Correct |
338 ms |
563792 KB |
Output is correct |
18 |
Correct |
254 ms |
563904 KB |
Output is correct |
19 |
Correct |
257 ms |
563836 KB |
Output is correct |
20 |
Correct |
253 ms |
563876 KB |
Output is correct |
21 |
Correct |
252 ms |
563892 KB |
Output is correct |
22 |
Correct |
267 ms |
563908 KB |
Output is correct |
23 |
Correct |
267 ms |
563816 KB |
Output is correct |
24 |
Correct |
252 ms |
563956 KB |
Output is correct |
25 |
Correct |
269 ms |
564780 KB |
Output is correct |
26 |
Correct |
279 ms |
565272 KB |
Output is correct |
27 |
Correct |
254 ms |
565448 KB |
Output is correct |
28 |
Correct |
261 ms |
565260 KB |
Output is correct |
29 |
Correct |
252 ms |
565368 KB |
Output is correct |
30 |
Correct |
261 ms |
565352 KB |
Output is correct |
31 |
Correct |
264 ms |
565016 KB |
Output is correct |
32 |
Correct |
282 ms |
564956 KB |
Output is correct |
33 |
Correct |
264 ms |
564916 KB |
Output is correct |
34 |
Correct |
259 ms |
566860 KB |
Output is correct |
35 |
Correct |
260 ms |
567872 KB |
Output is correct |
36 |
Correct |
269 ms |
567744 KB |
Output is correct |
37 |
Correct |
261 ms |
567996 KB |
Output is correct |
38 |
Correct |
270 ms |
568028 KB |
Output is correct |
39 |
Correct |
276 ms |
574624 KB |
Output is correct |
40 |
Correct |
373 ms |
592976 KB |
Output is correct |
41 |
Correct |
310 ms |
599052 KB |
Output is correct |
42 |
Correct |
350 ms |
606320 KB |
Output is correct |
43 |
Correct |
329 ms |
608612 KB |
Output is correct |
44 |
Correct |
341 ms |
608736 KB |
Output is correct |
45 |
Correct |
355 ms |
599448 KB |
Output is correct |
46 |
Correct |
336 ms |
594660 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
265 ms |
563836 KB |
Output is correct |
2 |
Correct |
274 ms |
563908 KB |
Output is correct |
3 |
Correct |
263 ms |
563832 KB |
Output is correct |
4 |
Correct |
248 ms |
563900 KB |
Output is correct |
5 |
Correct |
257 ms |
563852 KB |
Output is correct |
6 |
Correct |
256 ms |
563952 KB |
Output is correct |
7 |
Correct |
275 ms |
563896 KB |
Output is correct |
8 |
Correct |
254 ms |
563916 KB |
Output is correct |
9 |
Correct |
259 ms |
563964 KB |
Output is correct |
10 |
Correct |
246 ms |
563984 KB |
Output is correct |
11 |
Correct |
258 ms |
563836 KB |
Output is correct |
12 |
Correct |
262 ms |
563916 KB |
Output is correct |
13 |
Correct |
252 ms |
563916 KB |
Output is correct |
14 |
Correct |
266 ms |
563828 KB |
Output is correct |
15 |
Correct |
254 ms |
564084 KB |
Output is correct |
16 |
Correct |
252 ms |
563892 KB |
Output is correct |
17 |
Correct |
252 ms |
563968 KB |
Output is correct |
18 |
Correct |
258 ms |
563872 KB |
Output is correct |
19 |
Correct |
271 ms |
563924 KB |
Output is correct |
20 |
Correct |
253 ms |
563876 KB |
Output is correct |
21 |
Correct |
269 ms |
563856 KB |
Output is correct |
22 |
Correct |
252 ms |
563884 KB |
Output is correct |
23 |
Correct |
263 ms |
563872 KB |
Output is correct |
24 |
Correct |
279 ms |
563860 KB |
Output is correct |
25 |
Correct |
261 ms |
563808 KB |
Output is correct |
26 |
Correct |
258 ms |
563908 KB |
Output is correct |
27 |
Correct |
254 ms |
563884 KB |
Output is correct |
28 |
Correct |
273 ms |
563900 KB |
Output is correct |
29 |
Correct |
258 ms |
563788 KB |
Output is correct |
30 |
Correct |
263 ms |
563956 KB |
Output is correct |
31 |
Correct |
259 ms |
563916 KB |
Output is correct |
32 |
Correct |
247 ms |
563912 KB |
Output is correct |
33 |
Correct |
294 ms |
564896 KB |
Output is correct |
34 |
Correct |
255 ms |
563952 KB |
Output is correct |
35 |
Correct |
253 ms |
563940 KB |
Output is correct |
36 |
Correct |
275 ms |
564872 KB |
Output is correct |
37 |
Correct |
260 ms |
565836 KB |
Output is correct |
38 |
Correct |
248 ms |
565152 KB |
Output is correct |
39 |
Correct |
259 ms |
565284 KB |
Output is correct |
40 |
Correct |
288 ms |
564828 KB |
Output is correct |
41 |
Correct |
271 ms |
564812 KB |
Output is correct |
42 |
Correct |
254 ms |
565176 KB |
Output is correct |
43 |
Correct |
251 ms |
565324 KB |
Output is correct |
44 |
Correct |
264 ms |
565276 KB |
Output is correct |
45 |
Correct |
278 ms |
566584 KB |
Output is correct |
46 |
Correct |
265 ms |
566440 KB |
Output is correct |
47 |
Correct |
282 ms |
565508 KB |
Output is correct |
48 |
Correct |
259 ms |
565156 KB |
Output is correct |
49 |
Correct |
273 ms |
565024 KB |
Output is correct |
50 |
Correct |
266 ms |
565248 KB |
Output is correct |
51 |
Correct |
260 ms |
564940 KB |
Output is correct |
52 |
Correct |
271 ms |
564972 KB |
Output is correct |
53 |
Correct |
266 ms |
564900 KB |
Output is correct |
54 |
Correct |
291 ms |
564832 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
265 ms |
563836 KB |
Output is correct |
2 |
Correct |
274 ms |
563908 KB |
Output is correct |
3 |
Correct |
263 ms |
563832 KB |
Output is correct |
4 |
Correct |
248 ms |
563900 KB |
Output is correct |
5 |
Correct |
257 ms |
563852 KB |
Output is correct |
6 |
Correct |
256 ms |
563952 KB |
Output is correct |
7 |
Correct |
275 ms |
563896 KB |
Output is correct |
8 |
Correct |
254 ms |
563916 KB |
Output is correct |
9 |
Correct |
259 ms |
563964 KB |
Output is correct |
10 |
Correct |
246 ms |
563984 KB |
Output is correct |
11 |
Correct |
258 ms |
563836 KB |
Output is correct |
12 |
Correct |
262 ms |
563916 KB |
Output is correct |
13 |
Correct |
252 ms |
563916 KB |
Output is correct |
14 |
Correct |
266 ms |
563828 KB |
Output is correct |
15 |
Correct |
254 ms |
564084 KB |
Output is correct |
16 |
Correct |
252 ms |
563892 KB |
Output is correct |
17 |
Correct |
252 ms |
563968 KB |
Output is correct |
18 |
Correct |
258 ms |
563872 KB |
Output is correct |
19 |
Correct |
271 ms |
563924 KB |
Output is correct |
20 |
Correct |
253 ms |
563876 KB |
Output is correct |
21 |
Correct |
269 ms |
563856 KB |
Output is correct |
22 |
Correct |
252 ms |
563884 KB |
Output is correct |
23 |
Correct |
263 ms |
563872 KB |
Output is correct |
24 |
Correct |
279 ms |
563860 KB |
Output is correct |
25 |
Correct |
261 ms |
563808 KB |
Output is correct |
26 |
Correct |
258 ms |
563908 KB |
Output is correct |
27 |
Correct |
254 ms |
563884 KB |
Output is correct |
28 |
Correct |
273 ms |
563900 KB |
Output is correct |
29 |
Correct |
258 ms |
563788 KB |
Output is correct |
30 |
Correct |
263 ms |
563956 KB |
Output is correct |
31 |
Correct |
259 ms |
563916 KB |
Output is correct |
32 |
Correct |
247 ms |
563912 KB |
Output is correct |
33 |
Correct |
294 ms |
564896 KB |
Output is correct |
34 |
Correct |
255 ms |
563952 KB |
Output is correct |
35 |
Correct |
253 ms |
563940 KB |
Output is correct |
36 |
Correct |
275 ms |
564872 KB |
Output is correct |
37 |
Correct |
260 ms |
565836 KB |
Output is correct |
38 |
Correct |
248 ms |
565152 KB |
Output is correct |
39 |
Correct |
259 ms |
565284 KB |
Output is correct |
40 |
Correct |
288 ms |
564828 KB |
Output is correct |
41 |
Correct |
271 ms |
564812 KB |
Output is correct |
42 |
Correct |
254 ms |
565176 KB |
Output is correct |
43 |
Correct |
251 ms |
565324 KB |
Output is correct |
44 |
Correct |
264 ms |
565276 KB |
Output is correct |
45 |
Correct |
278 ms |
566584 KB |
Output is correct |
46 |
Correct |
265 ms |
566440 KB |
Output is correct |
47 |
Correct |
282 ms |
565508 KB |
Output is correct |
48 |
Correct |
259 ms |
565156 KB |
Output is correct |
49 |
Correct |
273 ms |
565024 KB |
Output is correct |
50 |
Correct |
266 ms |
565248 KB |
Output is correct |
51 |
Correct |
260 ms |
564940 KB |
Output is correct |
52 |
Correct |
271 ms |
564972 KB |
Output is correct |
53 |
Correct |
266 ms |
564900 KB |
Output is correct |
54 |
Correct |
291 ms |
564832 KB |
Output is correct |
55 |
Correct |
340 ms |
566656 KB |
Output is correct |
56 |
Correct |
267 ms |
565576 KB |
Output is correct |
57 |
Correct |
285 ms |
566848 KB |
Output is correct |
58 |
Correct |
289 ms |
566276 KB |
Output is correct |
59 |
Correct |
264 ms |
567732 KB |
Output is correct |
60 |
Correct |
333 ms |
566596 KB |
Output is correct |
61 |
Correct |
295 ms |
566732 KB |
Output is correct |
62 |
Correct |
267 ms |
567600 KB |
Output is correct |
63 |
Correct |
261 ms |
567884 KB |
Output is correct |
64 |
Correct |
262 ms |
567908 KB |
Output is correct |
65 |
Correct |
306 ms |
570500 KB |
Output is correct |
66 |
Correct |
296 ms |
570332 KB |
Output is correct |
67 |
Correct |
292 ms |
567928 KB |
Output is correct |
68 |
Correct |
277 ms |
566720 KB |
Output is correct |
69 |
Correct |
287 ms |
566932 KB |
Output is correct |
70 |
Correct |
289 ms |
566724 KB |
Output is correct |
71 |
Correct |
292 ms |
566792 KB |
Output is correct |
72 |
Correct |
285 ms |
566776 KB |
Output is correct |
73 |
Correct |
302 ms |
566676 KB |
Output is correct |
74 |
Correct |
263 ms |
566584 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
245 ms |
563868 KB |
Output is correct |
2 |
Correct |
252 ms |
563908 KB |
Output is correct |
3 |
Correct |
261 ms |
563984 KB |
Output is correct |
4 |
Correct |
252 ms |
563932 KB |
Output is correct |
5 |
Correct |
258 ms |
563916 KB |
Output is correct |
6 |
Correct |
251 ms |
564028 KB |
Output is correct |
7 |
Correct |
252 ms |
563864 KB |
Output is correct |
8 |
Correct |
253 ms |
563864 KB |
Output is correct |
9 |
Correct |
252 ms |
563900 KB |
Output is correct |
10 |
Correct |
251 ms |
563812 KB |
Output is correct |
11 |
Correct |
270 ms |
563864 KB |
Output is correct |
12 |
Correct |
260 ms |
563812 KB |
Output is correct |
13 |
Correct |
265 ms |
563788 KB |
Output is correct |
14 |
Correct |
258 ms |
564024 KB |
Output is correct |
15 |
Correct |
255 ms |
563908 KB |
Output is correct |
16 |
Correct |
254 ms |
563888 KB |
Output is correct |
17 |
Correct |
252 ms |
563824 KB |
Output is correct |
18 |
Correct |
254 ms |
563892 KB |
Output is correct |
19 |
Correct |
272 ms |
564864 KB |
Output is correct |
20 |
Correct |
264 ms |
565924 KB |
Output is correct |
21 |
Correct |
282 ms |
565296 KB |
Output is correct |
22 |
Correct |
272 ms |
564968 KB |
Output is correct |
23 |
Correct |
281 ms |
564816 KB |
Output is correct |
24 |
Correct |
264 ms |
566568 KB |
Output is correct |
25 |
Correct |
270 ms |
566524 KB |
Output is correct |
26 |
Correct |
278 ms |
564920 KB |
Output is correct |
27 |
Correct |
258 ms |
564880 KB |
Output is correct |
28 |
Correct |
277 ms |
564804 KB |
Output is correct |
29 |
Correct |
362 ms |
566756 KB |
Output is correct |
30 |
Correct |
270 ms |
565560 KB |
Output is correct |
31 |
Correct |
266 ms |
567812 KB |
Output is correct |
32 |
Correct |
338 ms |
566704 KB |
Output is correct |
33 |
Correct |
301 ms |
566732 KB |
Output is correct |
34 |
Correct |
305 ms |
570520 KB |
Output is correct |
35 |
Correct |
290 ms |
570448 KB |
Output is correct |
36 |
Correct |
279 ms |
567072 KB |
Output is correct |
37 |
Correct |
298 ms |
566792 KB |
Output is correct |
38 |
Correct |
276 ms |
566812 KB |
Output is correct |
39 |
Correct |
861 ms |
595604 KB |
Output is correct |
40 |
Correct |
277 ms |
567368 KB |
Output is correct |
41 |
Correct |
298 ms |
572024 KB |
Output is correct |
42 |
Correct |
355 ms |
568268 KB |
Output is correct |
43 |
Correct |
303 ms |
570636 KB |
Output is correct |
44 |
Correct |
375 ms |
578728 KB |
Output is correct |
45 |
Correct |
372 ms |
581076 KB |
Output is correct |
46 |
Correct |
313 ms |
599096 KB |
Output is correct |
47 |
Correct |
832 ms |
596044 KB |
Output is correct |
48 |
Correct |
692 ms |
596140 KB |
Output is correct |
49 |
Correct |
605 ms |
629164 KB |
Output is correct |
50 |
Correct |
599 ms |
629296 KB |
Output is correct |
51 |
Correct |
675 ms |
596616 KB |
Output is correct |
52 |
Correct |
589 ms |
596104 KB |
Output is correct |
53 |
Correct |
748 ms |
596220 KB |
Output is correct |
54 |
Correct |
265 ms |
563836 KB |
Output is correct |
55 |
Correct |
274 ms |
563908 KB |
Output is correct |
56 |
Correct |
263 ms |
563832 KB |
Output is correct |
57 |
Correct |
248 ms |
563900 KB |
Output is correct |
58 |
Correct |
257 ms |
563852 KB |
Output is correct |
59 |
Correct |
256 ms |
563952 KB |
Output is correct |
60 |
Correct |
275 ms |
563896 KB |
Output is correct |
61 |
Correct |
254 ms |
563916 KB |
Output is correct |
62 |
Correct |
259 ms |
563964 KB |
Output is correct |
63 |
Correct |
246 ms |
563984 KB |
Output is correct |
64 |
Correct |
258 ms |
563836 KB |
Output is correct |
65 |
Correct |
262 ms |
563916 KB |
Output is correct |
66 |
Correct |
252 ms |
563916 KB |
Output is correct |
67 |
Correct |
266 ms |
563828 KB |
Output is correct |
68 |
Correct |
254 ms |
564084 KB |
Output is correct |
69 |
Correct |
252 ms |
563892 KB |
Output is correct |
70 |
Correct |
252 ms |
563968 KB |
Output is correct |
71 |
Correct |
258 ms |
563872 KB |
Output is correct |
72 |
Correct |
271 ms |
563924 KB |
Output is correct |
73 |
Correct |
253 ms |
563876 KB |
Output is correct |
74 |
Correct |
269 ms |
563856 KB |
Output is correct |
75 |
Correct |
252 ms |
563884 KB |
Output is correct |
76 |
Correct |
263 ms |
563872 KB |
Output is correct |
77 |
Correct |
279 ms |
563860 KB |
Output is correct |
78 |
Correct |
261 ms |
563808 KB |
Output is correct |
79 |
Correct |
258 ms |
563908 KB |
Output is correct |
80 |
Correct |
254 ms |
563884 KB |
Output is correct |
81 |
Correct |
273 ms |
563900 KB |
Output is correct |
82 |
Correct |
258 ms |
563788 KB |
Output is correct |
83 |
Correct |
263 ms |
563956 KB |
Output is correct |
84 |
Correct |
259 ms |
563916 KB |
Output is correct |
85 |
Correct |
247 ms |
563912 KB |
Output is correct |
86 |
Correct |
272 ms |
563908 KB |
Output is correct |
87 |
Correct |
270 ms |
563912 KB |
Output is correct |
88 |
Correct |
268 ms |
563916 KB |
Output is correct |
89 |
Correct |
248 ms |
563840 KB |
Output is correct |
90 |
Correct |
267 ms |
563800 KB |
Output is correct |
91 |
Correct |
271 ms |
563820 KB |
Output is correct |
92 |
Correct |
263 ms |
563868 KB |
Output is correct |
93 |
Correct |
251 ms |
563816 KB |
Output is correct |
94 |
Correct |
261 ms |
564028 KB |
Output is correct |
95 |
Correct |
276 ms |
563948 KB |
Output is correct |
96 |
Correct |
251 ms |
563940 KB |
Output is correct |
97 |
Correct |
258 ms |
563940 KB |
Output is correct |
98 |
Correct |
266 ms |
563880 KB |
Output is correct |
99 |
Correct |
256 ms |
563968 KB |
Output is correct |
100 |
Correct |
269 ms |
563904 KB |
Output is correct |
101 |
Correct |
266 ms |
563932 KB |
Output is correct |
102 |
Correct |
338 ms |
563792 KB |
Output is correct |
103 |
Correct |
254 ms |
563904 KB |
Output is correct |
104 |
Correct |
257 ms |
563836 KB |
Output is correct |
105 |
Correct |
253 ms |
563876 KB |
Output is correct |
106 |
Correct |
252 ms |
563892 KB |
Output is correct |
107 |
Correct |
267 ms |
563908 KB |
Output is correct |
108 |
Correct |
267 ms |
563816 KB |
Output is correct |
109 |
Correct |
252 ms |
563956 KB |
Output is correct |
110 |
Correct |
269 ms |
564780 KB |
Output is correct |
111 |
Correct |
279 ms |
565272 KB |
Output is correct |
112 |
Correct |
254 ms |
565448 KB |
Output is correct |
113 |
Correct |
261 ms |
565260 KB |
Output is correct |
114 |
Correct |
252 ms |
565368 KB |
Output is correct |
115 |
Correct |
261 ms |
565352 KB |
Output is correct |
116 |
Correct |
264 ms |
565016 KB |
Output is correct |
117 |
Correct |
282 ms |
564956 KB |
Output is correct |
118 |
Correct |
264 ms |
564916 KB |
Output is correct |
119 |
Correct |
259 ms |
566860 KB |
Output is correct |
120 |
Correct |
260 ms |
567872 KB |
Output is correct |
121 |
Correct |
269 ms |
567744 KB |
Output is correct |
122 |
Correct |
261 ms |
567996 KB |
Output is correct |
123 |
Correct |
270 ms |
568028 KB |
Output is correct |
124 |
Correct |
276 ms |
574624 KB |
Output is correct |
125 |
Correct |
373 ms |
592976 KB |
Output is correct |
126 |
Correct |
310 ms |
599052 KB |
Output is correct |
127 |
Correct |
350 ms |
606320 KB |
Output is correct |
128 |
Correct |
329 ms |
608612 KB |
Output is correct |
129 |
Correct |
341 ms |
608736 KB |
Output is correct |
130 |
Correct |
355 ms |
599448 KB |
Output is correct |
131 |
Correct |
336 ms |
594660 KB |
Output is correct |
132 |
Correct |
294 ms |
564896 KB |
Output is correct |
133 |
Correct |
255 ms |
563952 KB |
Output is correct |
134 |
Correct |
253 ms |
563940 KB |
Output is correct |
135 |
Correct |
275 ms |
564872 KB |
Output is correct |
136 |
Correct |
260 ms |
565836 KB |
Output is correct |
137 |
Correct |
248 ms |
565152 KB |
Output is correct |
138 |
Correct |
259 ms |
565284 KB |
Output is correct |
139 |
Correct |
288 ms |
564828 KB |
Output is correct |
140 |
Correct |
271 ms |
564812 KB |
Output is correct |
141 |
Correct |
254 ms |
565176 KB |
Output is correct |
142 |
Correct |
251 ms |
565324 KB |
Output is correct |
143 |
Correct |
264 ms |
565276 KB |
Output is correct |
144 |
Correct |
278 ms |
566584 KB |
Output is correct |
145 |
Correct |
265 ms |
566440 KB |
Output is correct |
146 |
Correct |
282 ms |
565508 KB |
Output is correct |
147 |
Correct |
259 ms |
565156 KB |
Output is correct |
148 |
Correct |
273 ms |
565024 KB |
Output is correct |
149 |
Correct |
266 ms |
565248 KB |
Output is correct |
150 |
Correct |
260 ms |
564940 KB |
Output is correct |
151 |
Correct |
271 ms |
564972 KB |
Output is correct |
152 |
Correct |
266 ms |
564900 KB |
Output is correct |
153 |
Correct |
291 ms |
564832 KB |
Output is correct |
154 |
Correct |
340 ms |
566656 KB |
Output is correct |
155 |
Correct |
267 ms |
565576 KB |
Output is correct |
156 |
Correct |
285 ms |
566848 KB |
Output is correct |
157 |
Correct |
289 ms |
566276 KB |
Output is correct |
158 |
Correct |
264 ms |
567732 KB |
Output is correct |
159 |
Correct |
333 ms |
566596 KB |
Output is correct |
160 |
Correct |
295 ms |
566732 KB |
Output is correct |
161 |
Correct |
267 ms |
567600 KB |
Output is correct |
162 |
Correct |
261 ms |
567884 KB |
Output is correct |
163 |
Correct |
262 ms |
567908 KB |
Output is correct |
164 |
Correct |
306 ms |
570500 KB |
Output is correct |
165 |
Correct |
296 ms |
570332 KB |
Output is correct |
166 |
Correct |
292 ms |
567928 KB |
Output is correct |
167 |
Correct |
277 ms |
566720 KB |
Output is correct |
168 |
Correct |
287 ms |
566932 KB |
Output is correct |
169 |
Correct |
289 ms |
566724 KB |
Output is correct |
170 |
Correct |
292 ms |
566792 KB |
Output is correct |
171 |
Correct |
285 ms |
566776 KB |
Output is correct |
172 |
Correct |
302 ms |
566676 KB |
Output is correct |
173 |
Correct |
263 ms |
566584 KB |
Output is correct |
174 |
Correct |
275 ms |
567424 KB |
Output is correct |
175 |
Correct |
398 ms |
569756 KB |
Output is correct |
176 |
Correct |
389 ms |
584784 KB |
Output is correct |
177 |
Correct |
497 ms |
582172 KB |
Output is correct |
178 |
Correct |
309 ms |
588908 KB |
Output is correct |
179 |
Correct |
437 ms |
590624 KB |
Output is correct |
180 |
Correct |
559 ms |
592664 KB |
Output is correct |
181 |
Correct |
662 ms |
589256 KB |
Output is correct |
182 |
Correct |
571 ms |
591820 KB |
Output is correct |
183 |
Correct |
581 ms |
591876 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
245 ms |
563868 KB |
Output is correct |
2 |
Correct |
252 ms |
563908 KB |
Output is correct |
3 |
Correct |
261 ms |
563984 KB |
Output is correct |
4 |
Correct |
252 ms |
563932 KB |
Output is correct |
5 |
Correct |
258 ms |
563916 KB |
Output is correct |
6 |
Correct |
251 ms |
564028 KB |
Output is correct |
7 |
Correct |
252 ms |
563864 KB |
Output is correct |
8 |
Correct |
253 ms |
563864 KB |
Output is correct |
9 |
Correct |
252 ms |
563900 KB |
Output is correct |
10 |
Correct |
251 ms |
563812 KB |
Output is correct |
11 |
Correct |
270 ms |
563864 KB |
Output is correct |
12 |
Correct |
260 ms |
563812 KB |
Output is correct |
13 |
Correct |
265 ms |
563788 KB |
Output is correct |
14 |
Correct |
258 ms |
564024 KB |
Output is correct |
15 |
Correct |
255 ms |
563908 KB |
Output is correct |
16 |
Correct |
254 ms |
563888 KB |
Output is correct |
17 |
Correct |
252 ms |
563824 KB |
Output is correct |
18 |
Correct |
254 ms |
563892 KB |
Output is correct |
19 |
Correct |
272 ms |
564864 KB |
Output is correct |
20 |
Correct |
264 ms |
565924 KB |
Output is correct |
21 |
Correct |
282 ms |
565296 KB |
Output is correct |
22 |
Correct |
272 ms |
564968 KB |
Output is correct |
23 |
Correct |
281 ms |
564816 KB |
Output is correct |
24 |
Correct |
264 ms |
566568 KB |
Output is correct |
25 |
Correct |
270 ms |
566524 KB |
Output is correct |
26 |
Correct |
278 ms |
564920 KB |
Output is correct |
27 |
Correct |
258 ms |
564880 KB |
Output is correct |
28 |
Correct |
277 ms |
564804 KB |
Output is correct |
29 |
Correct |
362 ms |
566756 KB |
Output is correct |
30 |
Correct |
270 ms |
565560 KB |
Output is correct |
31 |
Correct |
266 ms |
567812 KB |
Output is correct |
32 |
Correct |
338 ms |
566704 KB |
Output is correct |
33 |
Correct |
301 ms |
566732 KB |
Output is correct |
34 |
Correct |
305 ms |
570520 KB |
Output is correct |
35 |
Correct |
290 ms |
570448 KB |
Output is correct |
36 |
Correct |
279 ms |
567072 KB |
Output is correct |
37 |
Correct |
298 ms |
566792 KB |
Output is correct |
38 |
Correct |
276 ms |
566812 KB |
Output is correct |
39 |
Correct |
861 ms |
595604 KB |
Output is correct |
40 |
Correct |
277 ms |
567368 KB |
Output is correct |
41 |
Correct |
298 ms |
572024 KB |
Output is correct |
42 |
Correct |
355 ms |
568268 KB |
Output is correct |
43 |
Correct |
303 ms |
570636 KB |
Output is correct |
44 |
Correct |
375 ms |
578728 KB |
Output is correct |
45 |
Correct |
372 ms |
581076 KB |
Output is correct |
46 |
Correct |
313 ms |
599096 KB |
Output is correct |
47 |
Correct |
832 ms |
596044 KB |
Output is correct |
48 |
Correct |
692 ms |
596140 KB |
Output is correct |
49 |
Correct |
605 ms |
629164 KB |
Output is correct |
50 |
Correct |
599 ms |
629296 KB |
Output is correct |
51 |
Correct |
675 ms |
596616 KB |
Output is correct |
52 |
Correct |
589 ms |
596104 KB |
Output is correct |
53 |
Correct |
748 ms |
596220 KB |
Output is correct |
54 |
Correct |
265 ms |
563836 KB |
Output is correct |
55 |
Correct |
274 ms |
563908 KB |
Output is correct |
56 |
Correct |
263 ms |
563832 KB |
Output is correct |
57 |
Correct |
248 ms |
563900 KB |
Output is correct |
58 |
Correct |
257 ms |
563852 KB |
Output is correct |
59 |
Correct |
256 ms |
563952 KB |
Output is correct |
60 |
Correct |
275 ms |
563896 KB |
Output is correct |
61 |
Correct |
254 ms |
563916 KB |
Output is correct |
62 |
Correct |
259 ms |
563964 KB |
Output is correct |
63 |
Correct |
246 ms |
563984 KB |
Output is correct |
64 |
Correct |
258 ms |
563836 KB |
Output is correct |
65 |
Correct |
262 ms |
563916 KB |
Output is correct |
66 |
Correct |
252 ms |
563916 KB |
Output is correct |
67 |
Correct |
266 ms |
563828 KB |
Output is correct |
68 |
Correct |
254 ms |
564084 KB |
Output is correct |
69 |
Correct |
252 ms |
563892 KB |
Output is correct |
70 |
Correct |
252 ms |
563968 KB |
Output is correct |
71 |
Correct |
258 ms |
563872 KB |
Output is correct |
72 |
Correct |
271 ms |
563924 KB |
Output is correct |
73 |
Correct |
253 ms |
563876 KB |
Output is correct |
74 |
Correct |
269 ms |
563856 KB |
Output is correct |
75 |
Correct |
252 ms |
563884 KB |
Output is correct |
76 |
Correct |
263 ms |
563872 KB |
Output is correct |
77 |
Correct |
279 ms |
563860 KB |
Output is correct |
78 |
Correct |
261 ms |
563808 KB |
Output is correct |
79 |
Correct |
258 ms |
563908 KB |
Output is correct |
80 |
Correct |
254 ms |
563884 KB |
Output is correct |
81 |
Correct |
273 ms |
563900 KB |
Output is correct |
82 |
Correct |
258 ms |
563788 KB |
Output is correct |
83 |
Correct |
263 ms |
563956 KB |
Output is correct |
84 |
Correct |
259 ms |
563916 KB |
Output is correct |
85 |
Correct |
247 ms |
563912 KB |
Output is correct |
86 |
Correct |
272 ms |
563908 KB |
Output is correct |
87 |
Correct |
270 ms |
563912 KB |
Output is correct |
88 |
Correct |
268 ms |
563916 KB |
Output is correct |
89 |
Correct |
248 ms |
563840 KB |
Output is correct |
90 |
Correct |
267 ms |
563800 KB |
Output is correct |
91 |
Correct |
271 ms |
563820 KB |
Output is correct |
92 |
Correct |
263 ms |
563868 KB |
Output is correct |
93 |
Correct |
251 ms |
563816 KB |
Output is correct |
94 |
Correct |
261 ms |
564028 KB |
Output is correct |
95 |
Correct |
276 ms |
563948 KB |
Output is correct |
96 |
Correct |
251 ms |
563940 KB |
Output is correct |
97 |
Correct |
258 ms |
563940 KB |
Output is correct |
98 |
Correct |
266 ms |
563880 KB |
Output is correct |
99 |
Correct |
256 ms |
563968 KB |
Output is correct |
100 |
Correct |
269 ms |
563904 KB |
Output is correct |
101 |
Correct |
266 ms |
563932 KB |
Output is correct |
102 |
Correct |
338 ms |
563792 KB |
Output is correct |
103 |
Correct |
254 ms |
563904 KB |
Output is correct |
104 |
Correct |
257 ms |
563836 KB |
Output is correct |
105 |
Correct |
253 ms |
563876 KB |
Output is correct |
106 |
Correct |
252 ms |
563892 KB |
Output is correct |
107 |
Correct |
267 ms |
563908 KB |
Output is correct |
108 |
Correct |
267 ms |
563816 KB |
Output is correct |
109 |
Correct |
252 ms |
563956 KB |
Output is correct |
110 |
Correct |
269 ms |
564780 KB |
Output is correct |
111 |
Correct |
279 ms |
565272 KB |
Output is correct |
112 |
Correct |
254 ms |
565448 KB |
Output is correct |
113 |
Correct |
261 ms |
565260 KB |
Output is correct |
114 |
Correct |
252 ms |
565368 KB |
Output is correct |
115 |
Correct |
261 ms |
565352 KB |
Output is correct |
116 |
Correct |
264 ms |
565016 KB |
Output is correct |
117 |
Correct |
282 ms |
564956 KB |
Output is correct |
118 |
Correct |
264 ms |
564916 KB |
Output is correct |
119 |
Correct |
259 ms |
566860 KB |
Output is correct |
120 |
Correct |
260 ms |
567872 KB |
Output is correct |
121 |
Correct |
269 ms |
567744 KB |
Output is correct |
122 |
Correct |
261 ms |
567996 KB |
Output is correct |
123 |
Correct |
270 ms |
568028 KB |
Output is correct |
124 |
Correct |
276 ms |
574624 KB |
Output is correct |
125 |
Correct |
373 ms |
592976 KB |
Output is correct |
126 |
Correct |
310 ms |
599052 KB |
Output is correct |
127 |
Correct |
350 ms |
606320 KB |
Output is correct |
128 |
Correct |
329 ms |
608612 KB |
Output is correct |
129 |
Correct |
341 ms |
608736 KB |
Output is correct |
130 |
Correct |
355 ms |
599448 KB |
Output is correct |
131 |
Correct |
336 ms |
594660 KB |
Output is correct |
132 |
Correct |
294 ms |
564896 KB |
Output is correct |
133 |
Correct |
255 ms |
563952 KB |
Output is correct |
134 |
Correct |
253 ms |
563940 KB |
Output is correct |
135 |
Correct |
275 ms |
564872 KB |
Output is correct |
136 |
Correct |
260 ms |
565836 KB |
Output is correct |
137 |
Correct |
248 ms |
565152 KB |
Output is correct |
138 |
Correct |
259 ms |
565284 KB |
Output is correct |
139 |
Correct |
288 ms |
564828 KB |
Output is correct |
140 |
Correct |
271 ms |
564812 KB |
Output is correct |
141 |
Correct |
254 ms |
565176 KB |
Output is correct |
142 |
Correct |
251 ms |
565324 KB |
Output is correct |
143 |
Correct |
264 ms |
565276 KB |
Output is correct |
144 |
Correct |
278 ms |
566584 KB |
Output is correct |
145 |
Correct |
265 ms |
566440 KB |
Output is correct |
146 |
Correct |
282 ms |
565508 KB |
Output is correct |
147 |
Correct |
259 ms |
565156 KB |
Output is correct |
148 |
Correct |
273 ms |
565024 KB |
Output is correct |
149 |
Correct |
266 ms |
565248 KB |
Output is correct |
150 |
Correct |
260 ms |
564940 KB |
Output is correct |
151 |
Correct |
271 ms |
564972 KB |
Output is correct |
152 |
Correct |
266 ms |
564900 KB |
Output is correct |
153 |
Correct |
291 ms |
564832 KB |
Output is correct |
154 |
Correct |
340 ms |
566656 KB |
Output is correct |
155 |
Correct |
267 ms |
565576 KB |
Output is correct |
156 |
Correct |
285 ms |
566848 KB |
Output is correct |
157 |
Correct |
289 ms |
566276 KB |
Output is correct |
158 |
Correct |
264 ms |
567732 KB |
Output is correct |
159 |
Correct |
333 ms |
566596 KB |
Output is correct |
160 |
Correct |
295 ms |
566732 KB |
Output is correct |
161 |
Correct |
267 ms |
567600 KB |
Output is correct |
162 |
Correct |
261 ms |
567884 KB |
Output is correct |
163 |
Correct |
262 ms |
567908 KB |
Output is correct |
164 |
Correct |
306 ms |
570500 KB |
Output is correct |
165 |
Correct |
296 ms |
570332 KB |
Output is correct |
166 |
Correct |
292 ms |
567928 KB |
Output is correct |
167 |
Correct |
277 ms |
566720 KB |
Output is correct |
168 |
Correct |
287 ms |
566932 KB |
Output is correct |
169 |
Correct |
289 ms |
566724 KB |
Output is correct |
170 |
Correct |
292 ms |
566792 KB |
Output is correct |
171 |
Correct |
285 ms |
566776 KB |
Output is correct |
172 |
Correct |
302 ms |
566676 KB |
Output is correct |
173 |
Correct |
263 ms |
566584 KB |
Output is correct |
174 |
Correct |
275 ms |
567424 KB |
Output is correct |
175 |
Correct |
398 ms |
569756 KB |
Output is correct |
176 |
Correct |
389 ms |
584784 KB |
Output is correct |
177 |
Correct |
497 ms |
582172 KB |
Output is correct |
178 |
Correct |
309 ms |
588908 KB |
Output is correct |
179 |
Correct |
437 ms |
590624 KB |
Output is correct |
180 |
Correct |
559 ms |
592664 KB |
Output is correct |
181 |
Correct |
662 ms |
589256 KB |
Output is correct |
182 |
Correct |
571 ms |
591820 KB |
Output is correct |
183 |
Correct |
581 ms |
591876 KB |
Output is correct |
184 |
Correct |
1532 ms |
615412 KB |
Output is correct |
185 |
Correct |
477 ms |
596444 KB |
Output is correct |
186 |
Correct |
396 ms |
601772 KB |
Output is correct |
187 |
Correct |
476 ms |
603864 KB |
Output is correct |
188 |
Correct |
430 ms |
638940 KB |
Output is correct |
189 |
Correct |
1185 ms |
615512 KB |
Output is correct |
190 |
Correct |
683 ms |
615244 KB |
Output is correct |
191 |
Correct |
495 ms |
639124 KB |
Output is correct |
192 |
Correct |
378 ms |
639944 KB |
Output is correct |
193 |
Correct |
399 ms |
640536 KB |
Output is correct |
194 |
Correct |
1147 ms |
693156 KB |
Output is correct |
195 |
Correct |
953 ms |
693132 KB |
Output is correct |
196 |
Correct |
908 ms |
613680 KB |
Output is correct |
197 |
Correct |
617 ms |
617196 KB |
Output is correct |
198 |
Correct |
610 ms |
621440 KB |
Output is correct |
199 |
Correct |
876 ms |
615244 KB |
Output is correct |
200 |
Correct |
778 ms |
616028 KB |
Output is correct |
201 |
Correct |
1104 ms |
615560 KB |
Output is correct |
202 |
Correct |
1573 ms |
615360 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
245 ms |
563868 KB |
Output is correct |
2 |
Correct |
252 ms |
563908 KB |
Output is correct |
3 |
Correct |
261 ms |
563984 KB |
Output is correct |
4 |
Correct |
252 ms |
563932 KB |
Output is correct |
5 |
Correct |
258 ms |
563916 KB |
Output is correct |
6 |
Correct |
251 ms |
564028 KB |
Output is correct |
7 |
Correct |
252 ms |
563864 KB |
Output is correct |
8 |
Correct |
253 ms |
563864 KB |
Output is correct |
9 |
Correct |
252 ms |
563900 KB |
Output is correct |
10 |
Correct |
251 ms |
563812 KB |
Output is correct |
11 |
Correct |
270 ms |
563864 KB |
Output is correct |
12 |
Correct |
260 ms |
563812 KB |
Output is correct |
13 |
Correct |
265 ms |
563788 KB |
Output is correct |
14 |
Correct |
258 ms |
564024 KB |
Output is correct |
15 |
Correct |
255 ms |
563908 KB |
Output is correct |
16 |
Correct |
254 ms |
563888 KB |
Output is correct |
17 |
Correct |
252 ms |
563824 KB |
Output is correct |
18 |
Correct |
254 ms |
563892 KB |
Output is correct |
19 |
Correct |
272 ms |
564864 KB |
Output is correct |
20 |
Correct |
264 ms |
565924 KB |
Output is correct |
21 |
Correct |
282 ms |
565296 KB |
Output is correct |
22 |
Correct |
272 ms |
564968 KB |
Output is correct |
23 |
Correct |
281 ms |
564816 KB |
Output is correct |
24 |
Correct |
264 ms |
566568 KB |
Output is correct |
25 |
Correct |
270 ms |
566524 KB |
Output is correct |
26 |
Correct |
278 ms |
564920 KB |
Output is correct |
27 |
Correct |
258 ms |
564880 KB |
Output is correct |
28 |
Correct |
277 ms |
564804 KB |
Output is correct |
29 |
Correct |
362 ms |
566756 KB |
Output is correct |
30 |
Correct |
270 ms |
565560 KB |
Output is correct |
31 |
Correct |
266 ms |
567812 KB |
Output is correct |
32 |
Correct |
338 ms |
566704 KB |
Output is correct |
33 |
Correct |
301 ms |
566732 KB |
Output is correct |
34 |
Correct |
305 ms |
570520 KB |
Output is correct |
35 |
Correct |
290 ms |
570448 KB |
Output is correct |
36 |
Correct |
279 ms |
567072 KB |
Output is correct |
37 |
Correct |
298 ms |
566792 KB |
Output is correct |
38 |
Correct |
276 ms |
566812 KB |
Output is correct |
39 |
Correct |
861 ms |
595604 KB |
Output is correct |
40 |
Correct |
277 ms |
567368 KB |
Output is correct |
41 |
Correct |
298 ms |
572024 KB |
Output is correct |
42 |
Correct |
355 ms |
568268 KB |
Output is correct |
43 |
Correct |
303 ms |
570636 KB |
Output is correct |
44 |
Correct |
375 ms |
578728 KB |
Output is correct |
45 |
Correct |
372 ms |
581076 KB |
Output is correct |
46 |
Correct |
313 ms |
599096 KB |
Output is correct |
47 |
Correct |
832 ms |
596044 KB |
Output is correct |
48 |
Correct |
692 ms |
596140 KB |
Output is correct |
49 |
Correct |
605 ms |
629164 KB |
Output is correct |
50 |
Correct |
599 ms |
629296 KB |
Output is correct |
51 |
Correct |
675 ms |
596616 KB |
Output is correct |
52 |
Correct |
589 ms |
596104 KB |
Output is correct |
53 |
Correct |
748 ms |
596220 KB |
Output is correct |
54 |
Correct |
265 ms |
563836 KB |
Output is correct |
55 |
Correct |
274 ms |
563908 KB |
Output is correct |
56 |
Correct |
263 ms |
563832 KB |
Output is correct |
57 |
Correct |
248 ms |
563900 KB |
Output is correct |
58 |
Correct |
257 ms |
563852 KB |
Output is correct |
59 |
Correct |
256 ms |
563952 KB |
Output is correct |
60 |
Correct |
275 ms |
563896 KB |
Output is correct |
61 |
Correct |
254 ms |
563916 KB |
Output is correct |
62 |
Correct |
259 ms |
563964 KB |
Output is correct |
63 |
Correct |
246 ms |
563984 KB |
Output is correct |
64 |
Correct |
258 ms |
563836 KB |
Output is correct |
65 |
Correct |
262 ms |
563916 KB |
Output is correct |
66 |
Correct |
252 ms |
563916 KB |
Output is correct |
67 |
Correct |
266 ms |
563828 KB |
Output is correct |
68 |
Correct |
254 ms |
564084 KB |
Output is correct |
69 |
Correct |
252 ms |
563892 KB |
Output is correct |
70 |
Correct |
252 ms |
563968 KB |
Output is correct |
71 |
Correct |
258 ms |
563872 KB |
Output is correct |
72 |
Correct |
271 ms |
563924 KB |
Output is correct |
73 |
Correct |
253 ms |
563876 KB |
Output is correct |
74 |
Correct |
269 ms |
563856 KB |
Output is correct |
75 |
Correct |
252 ms |
563884 KB |
Output is correct |
76 |
Correct |
263 ms |
563872 KB |
Output is correct |
77 |
Correct |
279 ms |
563860 KB |
Output is correct |
78 |
Correct |
261 ms |
563808 KB |
Output is correct |
79 |
Correct |
258 ms |
563908 KB |
Output is correct |
80 |
Correct |
254 ms |
563884 KB |
Output is correct |
81 |
Correct |
273 ms |
563900 KB |
Output is correct |
82 |
Correct |
258 ms |
563788 KB |
Output is correct |
83 |
Correct |
263 ms |
563956 KB |
Output is correct |
84 |
Correct |
259 ms |
563916 KB |
Output is correct |
85 |
Correct |
247 ms |
563912 KB |
Output is correct |
86 |
Correct |
272 ms |
563908 KB |
Output is correct |
87 |
Correct |
270 ms |
563912 KB |
Output is correct |
88 |
Correct |
268 ms |
563916 KB |
Output is correct |
89 |
Correct |
248 ms |
563840 KB |
Output is correct |
90 |
Correct |
267 ms |
563800 KB |
Output is correct |
91 |
Correct |
271 ms |
563820 KB |
Output is correct |
92 |
Correct |
263 ms |
563868 KB |
Output is correct |
93 |
Correct |
251 ms |
563816 KB |
Output is correct |
94 |
Correct |
261 ms |
564028 KB |
Output is correct |
95 |
Correct |
276 ms |
563948 KB |
Output is correct |
96 |
Correct |
251 ms |
563940 KB |
Output is correct |
97 |
Correct |
258 ms |
563940 KB |
Output is correct |
98 |
Correct |
266 ms |
563880 KB |
Output is correct |
99 |
Correct |
256 ms |
563968 KB |
Output is correct |
100 |
Correct |
269 ms |
563904 KB |
Output is correct |
101 |
Correct |
266 ms |
563932 KB |
Output is correct |
102 |
Correct |
338 ms |
563792 KB |
Output is correct |
103 |
Correct |
254 ms |
563904 KB |
Output is correct |
104 |
Correct |
257 ms |
563836 KB |
Output is correct |
105 |
Correct |
253 ms |
563876 KB |
Output is correct |
106 |
Correct |
252 ms |
563892 KB |
Output is correct |
107 |
Correct |
267 ms |
563908 KB |
Output is correct |
108 |
Correct |
267 ms |
563816 KB |
Output is correct |
109 |
Correct |
252 ms |
563956 KB |
Output is correct |
110 |
Correct |
269 ms |
564780 KB |
Output is correct |
111 |
Correct |
279 ms |
565272 KB |
Output is correct |
112 |
Correct |
254 ms |
565448 KB |
Output is correct |
113 |
Correct |
261 ms |
565260 KB |
Output is correct |
114 |
Correct |
252 ms |
565368 KB |
Output is correct |
115 |
Correct |
261 ms |
565352 KB |
Output is correct |
116 |
Correct |
264 ms |
565016 KB |
Output is correct |
117 |
Correct |
282 ms |
564956 KB |
Output is correct |
118 |
Correct |
264 ms |
564916 KB |
Output is correct |
119 |
Correct |
259 ms |
566860 KB |
Output is correct |
120 |
Correct |
260 ms |
567872 KB |
Output is correct |
121 |
Correct |
269 ms |
567744 KB |
Output is correct |
122 |
Correct |
261 ms |
567996 KB |
Output is correct |
123 |
Correct |
270 ms |
568028 KB |
Output is correct |
124 |
Correct |
276 ms |
574624 KB |
Output is correct |
125 |
Correct |
373 ms |
592976 KB |
Output is correct |
126 |
Correct |
310 ms |
599052 KB |
Output is correct |
127 |
Correct |
350 ms |
606320 KB |
Output is correct |
128 |
Correct |
329 ms |
608612 KB |
Output is correct |
129 |
Correct |
341 ms |
608736 KB |
Output is correct |
130 |
Correct |
355 ms |
599448 KB |
Output is correct |
131 |
Correct |
336 ms |
594660 KB |
Output is correct |
132 |
Correct |
294 ms |
564896 KB |
Output is correct |
133 |
Correct |
255 ms |
563952 KB |
Output is correct |
134 |
Correct |
253 ms |
563940 KB |
Output is correct |
135 |
Correct |
275 ms |
564872 KB |
Output is correct |
136 |
Correct |
260 ms |
565836 KB |
Output is correct |
137 |
Correct |
248 ms |
565152 KB |
Output is correct |
138 |
Correct |
259 ms |
565284 KB |
Output is correct |
139 |
Correct |
288 ms |
564828 KB |
Output is correct |
140 |
Correct |
271 ms |
564812 KB |
Output is correct |
141 |
Correct |
254 ms |
565176 KB |
Output is correct |
142 |
Correct |
251 ms |
565324 KB |
Output is correct |
143 |
Correct |
264 ms |
565276 KB |
Output is correct |
144 |
Correct |
278 ms |
566584 KB |
Output is correct |
145 |
Correct |
265 ms |
566440 KB |
Output is correct |
146 |
Correct |
282 ms |
565508 KB |
Output is correct |
147 |
Correct |
259 ms |
565156 KB |
Output is correct |
148 |
Correct |
273 ms |
565024 KB |
Output is correct |
149 |
Correct |
266 ms |
565248 KB |
Output is correct |
150 |
Correct |
260 ms |
564940 KB |
Output is correct |
151 |
Correct |
271 ms |
564972 KB |
Output is correct |
152 |
Correct |
266 ms |
564900 KB |
Output is correct |
153 |
Correct |
291 ms |
564832 KB |
Output is correct |
154 |
Correct |
340 ms |
566656 KB |
Output is correct |
155 |
Correct |
267 ms |
565576 KB |
Output is correct |
156 |
Correct |
285 ms |
566848 KB |
Output is correct |
157 |
Correct |
289 ms |
566276 KB |
Output is correct |
158 |
Correct |
264 ms |
567732 KB |
Output is correct |
159 |
Correct |
333 ms |
566596 KB |
Output is correct |
160 |
Correct |
295 ms |
566732 KB |
Output is correct |
161 |
Correct |
267 ms |
567600 KB |
Output is correct |
162 |
Correct |
261 ms |
567884 KB |
Output is correct |
163 |
Correct |
262 ms |
567908 KB |
Output is correct |
164 |
Correct |
306 ms |
570500 KB |
Output is correct |
165 |
Correct |
296 ms |
570332 KB |
Output is correct |
166 |
Correct |
292 ms |
567928 KB |
Output is correct |
167 |
Correct |
277 ms |
566720 KB |
Output is correct |
168 |
Correct |
287 ms |
566932 KB |
Output is correct |
169 |
Correct |
289 ms |
566724 KB |
Output is correct |
170 |
Correct |
292 ms |
566792 KB |
Output is correct |
171 |
Correct |
285 ms |
566776 KB |
Output is correct |
172 |
Correct |
302 ms |
566676 KB |
Output is correct |
173 |
Correct |
263 ms |
566584 KB |
Output is correct |
174 |
Correct |
275 ms |
567424 KB |
Output is correct |
175 |
Correct |
398 ms |
569756 KB |
Output is correct |
176 |
Correct |
389 ms |
584784 KB |
Output is correct |
177 |
Correct |
497 ms |
582172 KB |
Output is correct |
178 |
Correct |
309 ms |
588908 KB |
Output is correct |
179 |
Correct |
437 ms |
590624 KB |
Output is correct |
180 |
Correct |
559 ms |
592664 KB |
Output is correct |
181 |
Correct |
662 ms |
589256 KB |
Output is correct |
182 |
Correct |
571 ms |
591820 KB |
Output is correct |
183 |
Correct |
581 ms |
591876 KB |
Output is correct |
184 |
Correct |
1532 ms |
615412 KB |
Output is correct |
185 |
Correct |
477 ms |
596444 KB |
Output is correct |
186 |
Correct |
396 ms |
601772 KB |
Output is correct |
187 |
Correct |
476 ms |
603864 KB |
Output is correct |
188 |
Correct |
430 ms |
638940 KB |
Output is correct |
189 |
Correct |
1185 ms |
615512 KB |
Output is correct |
190 |
Correct |
683 ms |
615244 KB |
Output is correct |
191 |
Correct |
495 ms |
639124 KB |
Output is correct |
192 |
Correct |
378 ms |
639944 KB |
Output is correct |
193 |
Correct |
399 ms |
640536 KB |
Output is correct |
194 |
Correct |
1147 ms |
693156 KB |
Output is correct |
195 |
Correct |
953 ms |
693132 KB |
Output is correct |
196 |
Correct |
908 ms |
613680 KB |
Output is correct |
197 |
Correct |
617 ms |
617196 KB |
Output is correct |
198 |
Correct |
610 ms |
621440 KB |
Output is correct |
199 |
Correct |
876 ms |
615244 KB |
Output is correct |
200 |
Correct |
778 ms |
616028 KB |
Output is correct |
201 |
Correct |
1104 ms |
615560 KB |
Output is correct |
202 |
Correct |
1573 ms |
615360 KB |
Output is correct |
203 |
Execution timed out |
2101 ms |
677660 KB |
Time limit exceeded |
204 |
Halted |
0 ms |
0 KB |
- |