#include <bits/stdc++.h>
#define ii pair<int, int>
#define fi first
#define se second
using namespace std;
const int N = 6e6 + 5;
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], ok[N];
queue <ii> q[2];
void upd(int t, int id, int i, int j, int val) {
for(int x = i; x <= j; x++) {
if(t) {
if(!f[id][x]) q[1].push({id, x}), f[id][x] = val;
}
else {
if(!f[x][id]) q[1].push({x, id}), f[x][id] = val;
}
}
}
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), ok[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});
// cout << x << " " << y << " " << f[x][y] << " $$\n";
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(u && u <= m && v && v <= n && !f[u][v] && a[u][v]) {
// cout << x << " " << y << " : " << u << " " << v << "\n";
f[u][v] = f[x][y];
q[1].push({u, v});
// cout << u << " " << v << "*\n";
}
}
}
while (!q[0].empty()) {
int x, y; tie(x, y) = q[0].front(); q[0].pop();
if(s != 1) {
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]) {
f[i][j] = f[x][y] + 1;
q[1].push({i, j});
}
}
}
else {
int val = f[x][y] + 1;
upd(0, min(n, y + s), max(1, x - s), min(m, x + s), val);
upd(1, min(m, x + s), max(1, y - s), min(n, y + s), val);
upd(0, max(1, y - s), max(1, x - s), min(m, x + s), val);
upd(1, max(1, x - s), max(1, y - s), min(n, y + s), val);
}
}
else {
for(int i = 0; i < 4; i++) {
int u = x + dx[i], v = y + dy[i];
if(u && u <= m && v && v <= n && !f[u][v]) {
f[u][v] = f[x][y] + 1;
q[1].push({u, v});
// cout << u << " " << v << " ****\n";
}
}
}
}
}
}
Compilation message
Main.cpp:25:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
25 | main () {
| ^~~~
Main.cpp: In function 'int main()':
Main.cpp:28:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | freopen("task.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:29:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | freopen("wa.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
322 ms |
704716 KB |
Output is correct |
2 |
Correct |
329 ms |
704792 KB |
Output is correct |
3 |
Correct |
319 ms |
704772 KB |
Output is correct |
4 |
Correct |
359 ms |
704816 KB |
Output is correct |
5 |
Correct |
336 ms |
704816 KB |
Output is correct |
6 |
Correct |
334 ms |
704840 KB |
Output is correct |
7 |
Correct |
332 ms |
704780 KB |
Output is correct |
8 |
Correct |
317 ms |
704844 KB |
Output is correct |
9 |
Correct |
314 ms |
704816 KB |
Output is correct |
10 |
Correct |
401 ms |
704772 KB |
Output is correct |
11 |
Correct |
330 ms |
704716 KB |
Output is correct |
12 |
Correct |
342 ms |
704804 KB |
Output is correct |
13 |
Correct |
328 ms |
704748 KB |
Output is correct |
14 |
Correct |
319 ms |
704696 KB |
Output is correct |
15 |
Correct |
321 ms |
704780 KB |
Output is correct |
16 |
Correct |
329 ms |
704876 KB |
Output is correct |
17 |
Correct |
321 ms |
704792 KB |
Output is correct |
18 |
Correct |
337 ms |
704900 KB |
Output is correct |
19 |
Correct |
327 ms |
706060 KB |
Output is correct |
20 |
Correct |
337 ms |
706924 KB |
Output is correct |
21 |
Correct |
319 ms |
706436 KB |
Output is correct |
22 |
Correct |
325 ms |
706048 KB |
Output is correct |
23 |
Correct |
334 ms |
705996 KB |
Output is correct |
24 |
Correct |
326 ms |
707620 KB |
Output is correct |
25 |
Correct |
339 ms |
707768 KB |
Output is correct |
26 |
Correct |
333 ms |
706140 KB |
Output is correct |
27 |
Correct |
325 ms |
706036 KB |
Output is correct |
28 |
Correct |
318 ms |
705940 KB |
Output is correct |
29 |
Correct |
345 ms |
708104 KB |
Output is correct |
30 |
Correct |
328 ms |
706732 KB |
Output is correct |
31 |
Correct |
358 ms |
709192 KB |
Output is correct |
32 |
Correct |
338 ms |
708092 KB |
Output is correct |
33 |
Correct |
345 ms |
708264 KB |
Output is correct |
34 |
Correct |
347 ms |
711880 KB |
Output is correct |
35 |
Correct |
348 ms |
711752 KB |
Output is correct |
36 |
Correct |
351 ms |
708280 KB |
Output is correct |
37 |
Correct |
339 ms |
708216 KB |
Output is correct |
38 |
Correct |
320 ms |
708064 KB |
Output is correct |
39 |
Correct |
473 ms |
742140 KB |
Output is correct |
40 |
Correct |
327 ms |
708940 KB |
Output is correct |
41 |
Correct |
347 ms |
713416 KB |
Output is correct |
42 |
Correct |
337 ms |
709924 KB |
Output is correct |
43 |
Correct |
370 ms |
712420 KB |
Output is correct |
44 |
Correct |
368 ms |
722208 KB |
Output is correct |
45 |
Correct |
386 ms |
724904 KB |
Output is correct |
46 |
Correct |
377 ms |
744944 KB |
Output is correct |
47 |
Correct |
455 ms |
742196 KB |
Output is correct |
48 |
Correct |
448 ms |
742148 KB |
Output is correct |
49 |
Correct |
573 ms |
775208 KB |
Output is correct |
50 |
Correct |
536 ms |
775208 KB |
Output is correct |
51 |
Correct |
474 ms |
742724 KB |
Output is correct |
52 |
Correct |
421 ms |
742284 KB |
Output is correct |
53 |
Correct |
453 ms |
742148 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
332 ms |
704804 KB |
Output is correct |
2 |
Correct |
317 ms |
704888 KB |
Output is correct |
3 |
Correct |
349 ms |
704708 KB |
Output is correct |
4 |
Correct |
312 ms |
704736 KB |
Output is correct |
5 |
Correct |
330 ms |
704728 KB |
Output is correct |
6 |
Correct |
322 ms |
704836 KB |
Output is correct |
7 |
Correct |
310 ms |
704768 KB |
Output is correct |
8 |
Correct |
316 ms |
704748 KB |
Output is correct |
9 |
Correct |
347 ms |
704744 KB |
Output is correct |
10 |
Correct |
324 ms |
704716 KB |
Output is correct |
11 |
Correct |
332 ms |
704840 KB |
Output is correct |
12 |
Correct |
320 ms |
704832 KB |
Output is correct |
13 |
Correct |
326 ms |
704844 KB |
Output is correct |
14 |
Correct |
321 ms |
704736 KB |
Output is correct |
15 |
Correct |
325 ms |
704844 KB |
Output is correct |
16 |
Correct |
318 ms |
704740 KB |
Output is correct |
17 |
Correct |
325 ms |
704844 KB |
Output is correct |
18 |
Correct |
315 ms |
704808 KB |
Output is correct |
19 |
Correct |
337 ms |
704712 KB |
Output is correct |
20 |
Correct |
341 ms |
704704 KB |
Output is correct |
21 |
Correct |
327 ms |
704808 KB |
Output is correct |
22 |
Correct |
320 ms |
704772 KB |
Output is correct |
23 |
Correct |
328 ms |
704832 KB |
Output is correct |
24 |
Correct |
319 ms |
704804 KB |
Output is correct |
25 |
Correct |
338 ms |
704768 KB |
Output is correct |
26 |
Correct |
314 ms |
704816 KB |
Output is correct |
27 |
Correct |
330 ms |
704784 KB |
Output is correct |
28 |
Correct |
314 ms |
704716 KB |
Output is correct |
29 |
Correct |
316 ms |
704788 KB |
Output is correct |
30 |
Correct |
310 ms |
704740 KB |
Output is correct |
31 |
Correct |
342 ms |
704828 KB |
Output is correct |
32 |
Correct |
342 ms |
704864 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
319 ms |
704784 KB |
Output is correct |
2 |
Correct |
336 ms |
704724 KB |
Output is correct |
3 |
Correct |
322 ms |
704804 KB |
Output is correct |
4 |
Correct |
330 ms |
704816 KB |
Output is correct |
5 |
Correct |
339 ms |
704776 KB |
Output is correct |
6 |
Correct |
322 ms |
704808 KB |
Output is correct |
7 |
Correct |
355 ms |
704748 KB |
Output is correct |
8 |
Correct |
311 ms |
704728 KB |
Output is correct |
9 |
Correct |
319 ms |
704940 KB |
Output is correct |
10 |
Correct |
333 ms |
704844 KB |
Output is correct |
11 |
Correct |
317 ms |
704800 KB |
Output is correct |
12 |
Correct |
333 ms |
704892 KB |
Output is correct |
13 |
Correct |
318 ms |
704836 KB |
Output is correct |
14 |
Correct |
333 ms |
704844 KB |
Output is correct |
15 |
Correct |
327 ms |
704784 KB |
Output is correct |
16 |
Correct |
327 ms |
704696 KB |
Output is correct |
17 |
Correct |
321 ms |
704908 KB |
Output is correct |
18 |
Correct |
323 ms |
704808 KB |
Output is correct |
19 |
Correct |
313 ms |
704760 KB |
Output is correct |
20 |
Correct |
324 ms |
704816 KB |
Output is correct |
21 |
Correct |
338 ms |
704904 KB |
Output is correct |
22 |
Correct |
343 ms |
704796 KB |
Output is correct |
23 |
Correct |
348 ms |
704848 KB |
Output is correct |
24 |
Correct |
330 ms |
704864 KB |
Output is correct |
25 |
Correct |
324 ms |
705876 KB |
Output is correct |
26 |
Correct |
324 ms |
706416 KB |
Output is correct |
27 |
Correct |
317 ms |
706508 KB |
Output is correct |
28 |
Correct |
334 ms |
706456 KB |
Output is correct |
29 |
Correct |
322 ms |
706464 KB |
Output is correct |
30 |
Correct |
367 ms |
706540 KB |
Output is correct |
31 |
Correct |
326 ms |
706088 KB |
Output is correct |
32 |
Correct |
358 ms |
706064 KB |
Output is correct |
33 |
Correct |
330 ms |
706076 KB |
Output is correct |
34 |
Correct |
367 ms |
708264 KB |
Output is correct |
35 |
Correct |
326 ms |
709200 KB |
Output is correct |
36 |
Correct |
338 ms |
709464 KB |
Output is correct |
37 |
Correct |
333 ms |
709360 KB |
Output is correct |
38 |
Correct |
335 ms |
709348 KB |
Output is correct |
39 |
Correct |
347 ms |
716892 KB |
Output is correct |
40 |
Correct |
409 ms |
738156 KB |
Output is correct |
41 |
Correct |
392 ms |
745136 KB |
Output is correct |
42 |
Correct |
408 ms |
752488 KB |
Output is correct |
43 |
Correct |
401 ms |
754616 KB |
Output is correct |
44 |
Correct |
395 ms |
754764 KB |
Output is correct |
45 |
Correct |
433 ms |
745508 KB |
Output is correct |
46 |
Correct |
408 ms |
741168 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
332 ms |
704804 KB |
Output is correct |
2 |
Correct |
317 ms |
704888 KB |
Output is correct |
3 |
Correct |
349 ms |
704708 KB |
Output is correct |
4 |
Correct |
312 ms |
704736 KB |
Output is correct |
5 |
Correct |
330 ms |
704728 KB |
Output is correct |
6 |
Correct |
322 ms |
704836 KB |
Output is correct |
7 |
Correct |
310 ms |
704768 KB |
Output is correct |
8 |
Correct |
316 ms |
704748 KB |
Output is correct |
9 |
Correct |
347 ms |
704744 KB |
Output is correct |
10 |
Correct |
324 ms |
704716 KB |
Output is correct |
11 |
Correct |
332 ms |
704840 KB |
Output is correct |
12 |
Correct |
320 ms |
704832 KB |
Output is correct |
13 |
Correct |
326 ms |
704844 KB |
Output is correct |
14 |
Correct |
321 ms |
704736 KB |
Output is correct |
15 |
Correct |
325 ms |
704844 KB |
Output is correct |
16 |
Correct |
318 ms |
704740 KB |
Output is correct |
17 |
Correct |
325 ms |
704844 KB |
Output is correct |
18 |
Correct |
315 ms |
704808 KB |
Output is correct |
19 |
Correct |
337 ms |
704712 KB |
Output is correct |
20 |
Correct |
341 ms |
704704 KB |
Output is correct |
21 |
Correct |
327 ms |
704808 KB |
Output is correct |
22 |
Correct |
320 ms |
704772 KB |
Output is correct |
23 |
Correct |
328 ms |
704832 KB |
Output is correct |
24 |
Correct |
319 ms |
704804 KB |
Output is correct |
25 |
Correct |
338 ms |
704768 KB |
Output is correct |
26 |
Correct |
314 ms |
704816 KB |
Output is correct |
27 |
Correct |
330 ms |
704784 KB |
Output is correct |
28 |
Correct |
314 ms |
704716 KB |
Output is correct |
29 |
Correct |
316 ms |
704788 KB |
Output is correct |
30 |
Correct |
310 ms |
704740 KB |
Output is correct |
31 |
Correct |
342 ms |
704828 KB |
Output is correct |
32 |
Correct |
342 ms |
704864 KB |
Output is correct |
33 |
Correct |
330 ms |
705920 KB |
Output is correct |
34 |
Correct |
326 ms |
704864 KB |
Output is correct |
35 |
Correct |
330 ms |
704864 KB |
Output is correct |
36 |
Correct |
325 ms |
705832 KB |
Output is correct |
37 |
Correct |
354 ms |
706948 KB |
Output is correct |
38 |
Correct |
328 ms |
706284 KB |
Output is correct |
39 |
Correct |
362 ms |
706424 KB |
Output is correct |
40 |
Correct |
343 ms |
706036 KB |
Output is correct |
41 |
Correct |
332 ms |
705940 KB |
Output is correct |
42 |
Correct |
352 ms |
706404 KB |
Output is correct |
43 |
Correct |
328 ms |
706416 KB |
Output is correct |
44 |
Correct |
350 ms |
706520 KB |
Output is correct |
45 |
Correct |
335 ms |
707616 KB |
Output is correct |
46 |
Correct |
346 ms |
707580 KB |
Output is correct |
47 |
Correct |
344 ms |
706704 KB |
Output is correct |
48 |
Correct |
360 ms |
706212 KB |
Output is correct |
49 |
Correct |
380 ms |
706164 KB |
Output is correct |
50 |
Correct |
336 ms |
706264 KB |
Output is correct |
51 |
Correct |
419 ms |
706020 KB |
Output is correct |
52 |
Correct |
330 ms |
706032 KB |
Output is correct |
53 |
Correct |
319 ms |
705992 KB |
Output is correct |
54 |
Correct |
332 ms |
705912 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
332 ms |
704804 KB |
Output is correct |
2 |
Correct |
317 ms |
704888 KB |
Output is correct |
3 |
Correct |
349 ms |
704708 KB |
Output is correct |
4 |
Correct |
312 ms |
704736 KB |
Output is correct |
5 |
Correct |
330 ms |
704728 KB |
Output is correct |
6 |
Correct |
322 ms |
704836 KB |
Output is correct |
7 |
Correct |
310 ms |
704768 KB |
Output is correct |
8 |
Correct |
316 ms |
704748 KB |
Output is correct |
9 |
Correct |
347 ms |
704744 KB |
Output is correct |
10 |
Correct |
324 ms |
704716 KB |
Output is correct |
11 |
Correct |
332 ms |
704840 KB |
Output is correct |
12 |
Correct |
320 ms |
704832 KB |
Output is correct |
13 |
Correct |
326 ms |
704844 KB |
Output is correct |
14 |
Correct |
321 ms |
704736 KB |
Output is correct |
15 |
Correct |
325 ms |
704844 KB |
Output is correct |
16 |
Correct |
318 ms |
704740 KB |
Output is correct |
17 |
Correct |
325 ms |
704844 KB |
Output is correct |
18 |
Correct |
315 ms |
704808 KB |
Output is correct |
19 |
Correct |
337 ms |
704712 KB |
Output is correct |
20 |
Correct |
341 ms |
704704 KB |
Output is correct |
21 |
Correct |
327 ms |
704808 KB |
Output is correct |
22 |
Correct |
320 ms |
704772 KB |
Output is correct |
23 |
Correct |
328 ms |
704832 KB |
Output is correct |
24 |
Correct |
319 ms |
704804 KB |
Output is correct |
25 |
Correct |
338 ms |
704768 KB |
Output is correct |
26 |
Correct |
314 ms |
704816 KB |
Output is correct |
27 |
Correct |
330 ms |
704784 KB |
Output is correct |
28 |
Correct |
314 ms |
704716 KB |
Output is correct |
29 |
Correct |
316 ms |
704788 KB |
Output is correct |
30 |
Correct |
310 ms |
704740 KB |
Output is correct |
31 |
Correct |
342 ms |
704828 KB |
Output is correct |
32 |
Correct |
342 ms |
704864 KB |
Output is correct |
33 |
Correct |
330 ms |
705920 KB |
Output is correct |
34 |
Correct |
326 ms |
704864 KB |
Output is correct |
35 |
Correct |
330 ms |
704864 KB |
Output is correct |
36 |
Correct |
325 ms |
705832 KB |
Output is correct |
37 |
Correct |
354 ms |
706948 KB |
Output is correct |
38 |
Correct |
328 ms |
706284 KB |
Output is correct |
39 |
Correct |
362 ms |
706424 KB |
Output is correct |
40 |
Correct |
343 ms |
706036 KB |
Output is correct |
41 |
Correct |
332 ms |
705940 KB |
Output is correct |
42 |
Correct |
352 ms |
706404 KB |
Output is correct |
43 |
Correct |
328 ms |
706416 KB |
Output is correct |
44 |
Correct |
350 ms |
706520 KB |
Output is correct |
45 |
Correct |
335 ms |
707616 KB |
Output is correct |
46 |
Correct |
346 ms |
707580 KB |
Output is correct |
47 |
Correct |
344 ms |
706704 KB |
Output is correct |
48 |
Correct |
360 ms |
706212 KB |
Output is correct |
49 |
Correct |
380 ms |
706164 KB |
Output is correct |
50 |
Correct |
336 ms |
706264 KB |
Output is correct |
51 |
Correct |
419 ms |
706020 KB |
Output is correct |
52 |
Correct |
330 ms |
706032 KB |
Output is correct |
53 |
Correct |
319 ms |
705992 KB |
Output is correct |
54 |
Correct |
332 ms |
705912 KB |
Output is correct |
55 |
Correct |
340 ms |
708120 KB |
Output is correct |
56 |
Correct |
346 ms |
706672 KB |
Output is correct |
57 |
Correct |
329 ms |
708228 KB |
Output is correct |
58 |
Incorrect |
330 ms |
707756 KB |
Output isn't correct |
59 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
322 ms |
704716 KB |
Output is correct |
2 |
Correct |
329 ms |
704792 KB |
Output is correct |
3 |
Correct |
319 ms |
704772 KB |
Output is correct |
4 |
Correct |
359 ms |
704816 KB |
Output is correct |
5 |
Correct |
336 ms |
704816 KB |
Output is correct |
6 |
Correct |
334 ms |
704840 KB |
Output is correct |
7 |
Correct |
332 ms |
704780 KB |
Output is correct |
8 |
Correct |
317 ms |
704844 KB |
Output is correct |
9 |
Correct |
314 ms |
704816 KB |
Output is correct |
10 |
Correct |
401 ms |
704772 KB |
Output is correct |
11 |
Correct |
330 ms |
704716 KB |
Output is correct |
12 |
Correct |
342 ms |
704804 KB |
Output is correct |
13 |
Correct |
328 ms |
704748 KB |
Output is correct |
14 |
Correct |
319 ms |
704696 KB |
Output is correct |
15 |
Correct |
321 ms |
704780 KB |
Output is correct |
16 |
Correct |
329 ms |
704876 KB |
Output is correct |
17 |
Correct |
321 ms |
704792 KB |
Output is correct |
18 |
Correct |
337 ms |
704900 KB |
Output is correct |
19 |
Correct |
327 ms |
706060 KB |
Output is correct |
20 |
Correct |
337 ms |
706924 KB |
Output is correct |
21 |
Correct |
319 ms |
706436 KB |
Output is correct |
22 |
Correct |
325 ms |
706048 KB |
Output is correct |
23 |
Correct |
334 ms |
705996 KB |
Output is correct |
24 |
Correct |
326 ms |
707620 KB |
Output is correct |
25 |
Correct |
339 ms |
707768 KB |
Output is correct |
26 |
Correct |
333 ms |
706140 KB |
Output is correct |
27 |
Correct |
325 ms |
706036 KB |
Output is correct |
28 |
Correct |
318 ms |
705940 KB |
Output is correct |
29 |
Correct |
345 ms |
708104 KB |
Output is correct |
30 |
Correct |
328 ms |
706732 KB |
Output is correct |
31 |
Correct |
358 ms |
709192 KB |
Output is correct |
32 |
Correct |
338 ms |
708092 KB |
Output is correct |
33 |
Correct |
345 ms |
708264 KB |
Output is correct |
34 |
Correct |
347 ms |
711880 KB |
Output is correct |
35 |
Correct |
348 ms |
711752 KB |
Output is correct |
36 |
Correct |
351 ms |
708280 KB |
Output is correct |
37 |
Correct |
339 ms |
708216 KB |
Output is correct |
38 |
Correct |
320 ms |
708064 KB |
Output is correct |
39 |
Correct |
473 ms |
742140 KB |
Output is correct |
40 |
Correct |
327 ms |
708940 KB |
Output is correct |
41 |
Correct |
347 ms |
713416 KB |
Output is correct |
42 |
Correct |
337 ms |
709924 KB |
Output is correct |
43 |
Correct |
370 ms |
712420 KB |
Output is correct |
44 |
Correct |
368 ms |
722208 KB |
Output is correct |
45 |
Correct |
386 ms |
724904 KB |
Output is correct |
46 |
Correct |
377 ms |
744944 KB |
Output is correct |
47 |
Correct |
455 ms |
742196 KB |
Output is correct |
48 |
Correct |
448 ms |
742148 KB |
Output is correct |
49 |
Correct |
573 ms |
775208 KB |
Output is correct |
50 |
Correct |
536 ms |
775208 KB |
Output is correct |
51 |
Correct |
474 ms |
742724 KB |
Output is correct |
52 |
Correct |
421 ms |
742284 KB |
Output is correct |
53 |
Correct |
453 ms |
742148 KB |
Output is correct |
54 |
Correct |
332 ms |
704804 KB |
Output is correct |
55 |
Correct |
317 ms |
704888 KB |
Output is correct |
56 |
Correct |
349 ms |
704708 KB |
Output is correct |
57 |
Correct |
312 ms |
704736 KB |
Output is correct |
58 |
Correct |
330 ms |
704728 KB |
Output is correct |
59 |
Correct |
322 ms |
704836 KB |
Output is correct |
60 |
Correct |
310 ms |
704768 KB |
Output is correct |
61 |
Correct |
316 ms |
704748 KB |
Output is correct |
62 |
Correct |
347 ms |
704744 KB |
Output is correct |
63 |
Correct |
324 ms |
704716 KB |
Output is correct |
64 |
Correct |
332 ms |
704840 KB |
Output is correct |
65 |
Correct |
320 ms |
704832 KB |
Output is correct |
66 |
Correct |
326 ms |
704844 KB |
Output is correct |
67 |
Correct |
321 ms |
704736 KB |
Output is correct |
68 |
Correct |
325 ms |
704844 KB |
Output is correct |
69 |
Correct |
318 ms |
704740 KB |
Output is correct |
70 |
Correct |
325 ms |
704844 KB |
Output is correct |
71 |
Correct |
315 ms |
704808 KB |
Output is correct |
72 |
Correct |
337 ms |
704712 KB |
Output is correct |
73 |
Correct |
341 ms |
704704 KB |
Output is correct |
74 |
Correct |
327 ms |
704808 KB |
Output is correct |
75 |
Correct |
320 ms |
704772 KB |
Output is correct |
76 |
Correct |
328 ms |
704832 KB |
Output is correct |
77 |
Correct |
319 ms |
704804 KB |
Output is correct |
78 |
Correct |
338 ms |
704768 KB |
Output is correct |
79 |
Correct |
314 ms |
704816 KB |
Output is correct |
80 |
Correct |
330 ms |
704784 KB |
Output is correct |
81 |
Correct |
314 ms |
704716 KB |
Output is correct |
82 |
Correct |
316 ms |
704788 KB |
Output is correct |
83 |
Correct |
310 ms |
704740 KB |
Output is correct |
84 |
Correct |
342 ms |
704828 KB |
Output is correct |
85 |
Correct |
342 ms |
704864 KB |
Output is correct |
86 |
Correct |
319 ms |
704784 KB |
Output is correct |
87 |
Correct |
336 ms |
704724 KB |
Output is correct |
88 |
Correct |
322 ms |
704804 KB |
Output is correct |
89 |
Correct |
330 ms |
704816 KB |
Output is correct |
90 |
Correct |
339 ms |
704776 KB |
Output is correct |
91 |
Correct |
322 ms |
704808 KB |
Output is correct |
92 |
Correct |
355 ms |
704748 KB |
Output is correct |
93 |
Correct |
311 ms |
704728 KB |
Output is correct |
94 |
Correct |
319 ms |
704940 KB |
Output is correct |
95 |
Correct |
333 ms |
704844 KB |
Output is correct |
96 |
Correct |
317 ms |
704800 KB |
Output is correct |
97 |
Correct |
333 ms |
704892 KB |
Output is correct |
98 |
Correct |
318 ms |
704836 KB |
Output is correct |
99 |
Correct |
333 ms |
704844 KB |
Output is correct |
100 |
Correct |
327 ms |
704784 KB |
Output is correct |
101 |
Correct |
327 ms |
704696 KB |
Output is correct |
102 |
Correct |
321 ms |
704908 KB |
Output is correct |
103 |
Correct |
323 ms |
704808 KB |
Output is correct |
104 |
Correct |
313 ms |
704760 KB |
Output is correct |
105 |
Correct |
324 ms |
704816 KB |
Output is correct |
106 |
Correct |
338 ms |
704904 KB |
Output is correct |
107 |
Correct |
343 ms |
704796 KB |
Output is correct |
108 |
Correct |
348 ms |
704848 KB |
Output is correct |
109 |
Correct |
330 ms |
704864 KB |
Output is correct |
110 |
Correct |
324 ms |
705876 KB |
Output is correct |
111 |
Correct |
324 ms |
706416 KB |
Output is correct |
112 |
Correct |
317 ms |
706508 KB |
Output is correct |
113 |
Correct |
334 ms |
706456 KB |
Output is correct |
114 |
Correct |
322 ms |
706464 KB |
Output is correct |
115 |
Correct |
367 ms |
706540 KB |
Output is correct |
116 |
Correct |
326 ms |
706088 KB |
Output is correct |
117 |
Correct |
358 ms |
706064 KB |
Output is correct |
118 |
Correct |
330 ms |
706076 KB |
Output is correct |
119 |
Correct |
367 ms |
708264 KB |
Output is correct |
120 |
Correct |
326 ms |
709200 KB |
Output is correct |
121 |
Correct |
338 ms |
709464 KB |
Output is correct |
122 |
Correct |
333 ms |
709360 KB |
Output is correct |
123 |
Correct |
335 ms |
709348 KB |
Output is correct |
124 |
Correct |
347 ms |
716892 KB |
Output is correct |
125 |
Correct |
409 ms |
738156 KB |
Output is correct |
126 |
Correct |
392 ms |
745136 KB |
Output is correct |
127 |
Correct |
408 ms |
752488 KB |
Output is correct |
128 |
Correct |
401 ms |
754616 KB |
Output is correct |
129 |
Correct |
395 ms |
754764 KB |
Output is correct |
130 |
Correct |
433 ms |
745508 KB |
Output is correct |
131 |
Correct |
408 ms |
741168 KB |
Output is correct |
132 |
Correct |
330 ms |
705920 KB |
Output is correct |
133 |
Correct |
326 ms |
704864 KB |
Output is correct |
134 |
Correct |
330 ms |
704864 KB |
Output is correct |
135 |
Correct |
325 ms |
705832 KB |
Output is correct |
136 |
Correct |
354 ms |
706948 KB |
Output is correct |
137 |
Correct |
328 ms |
706284 KB |
Output is correct |
138 |
Correct |
362 ms |
706424 KB |
Output is correct |
139 |
Correct |
343 ms |
706036 KB |
Output is correct |
140 |
Correct |
332 ms |
705940 KB |
Output is correct |
141 |
Correct |
352 ms |
706404 KB |
Output is correct |
142 |
Correct |
328 ms |
706416 KB |
Output is correct |
143 |
Correct |
350 ms |
706520 KB |
Output is correct |
144 |
Correct |
335 ms |
707616 KB |
Output is correct |
145 |
Correct |
346 ms |
707580 KB |
Output is correct |
146 |
Correct |
344 ms |
706704 KB |
Output is correct |
147 |
Correct |
360 ms |
706212 KB |
Output is correct |
148 |
Correct |
380 ms |
706164 KB |
Output is correct |
149 |
Correct |
336 ms |
706264 KB |
Output is correct |
150 |
Correct |
419 ms |
706020 KB |
Output is correct |
151 |
Correct |
330 ms |
706032 KB |
Output is correct |
152 |
Correct |
319 ms |
705992 KB |
Output is correct |
153 |
Correct |
332 ms |
705912 KB |
Output is correct |
154 |
Correct |
340 ms |
708120 KB |
Output is correct |
155 |
Correct |
346 ms |
706672 KB |
Output is correct |
156 |
Correct |
329 ms |
708228 KB |
Output is correct |
157 |
Incorrect |
330 ms |
707756 KB |
Output isn't correct |
158 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
322 ms |
704716 KB |
Output is correct |
2 |
Correct |
329 ms |
704792 KB |
Output is correct |
3 |
Correct |
319 ms |
704772 KB |
Output is correct |
4 |
Correct |
359 ms |
704816 KB |
Output is correct |
5 |
Correct |
336 ms |
704816 KB |
Output is correct |
6 |
Correct |
334 ms |
704840 KB |
Output is correct |
7 |
Correct |
332 ms |
704780 KB |
Output is correct |
8 |
Correct |
317 ms |
704844 KB |
Output is correct |
9 |
Correct |
314 ms |
704816 KB |
Output is correct |
10 |
Correct |
401 ms |
704772 KB |
Output is correct |
11 |
Correct |
330 ms |
704716 KB |
Output is correct |
12 |
Correct |
342 ms |
704804 KB |
Output is correct |
13 |
Correct |
328 ms |
704748 KB |
Output is correct |
14 |
Correct |
319 ms |
704696 KB |
Output is correct |
15 |
Correct |
321 ms |
704780 KB |
Output is correct |
16 |
Correct |
329 ms |
704876 KB |
Output is correct |
17 |
Correct |
321 ms |
704792 KB |
Output is correct |
18 |
Correct |
337 ms |
704900 KB |
Output is correct |
19 |
Correct |
327 ms |
706060 KB |
Output is correct |
20 |
Correct |
337 ms |
706924 KB |
Output is correct |
21 |
Correct |
319 ms |
706436 KB |
Output is correct |
22 |
Correct |
325 ms |
706048 KB |
Output is correct |
23 |
Correct |
334 ms |
705996 KB |
Output is correct |
24 |
Correct |
326 ms |
707620 KB |
Output is correct |
25 |
Correct |
339 ms |
707768 KB |
Output is correct |
26 |
Correct |
333 ms |
706140 KB |
Output is correct |
27 |
Correct |
325 ms |
706036 KB |
Output is correct |
28 |
Correct |
318 ms |
705940 KB |
Output is correct |
29 |
Correct |
345 ms |
708104 KB |
Output is correct |
30 |
Correct |
328 ms |
706732 KB |
Output is correct |
31 |
Correct |
358 ms |
709192 KB |
Output is correct |
32 |
Correct |
338 ms |
708092 KB |
Output is correct |
33 |
Correct |
345 ms |
708264 KB |
Output is correct |
34 |
Correct |
347 ms |
711880 KB |
Output is correct |
35 |
Correct |
348 ms |
711752 KB |
Output is correct |
36 |
Correct |
351 ms |
708280 KB |
Output is correct |
37 |
Correct |
339 ms |
708216 KB |
Output is correct |
38 |
Correct |
320 ms |
708064 KB |
Output is correct |
39 |
Correct |
473 ms |
742140 KB |
Output is correct |
40 |
Correct |
327 ms |
708940 KB |
Output is correct |
41 |
Correct |
347 ms |
713416 KB |
Output is correct |
42 |
Correct |
337 ms |
709924 KB |
Output is correct |
43 |
Correct |
370 ms |
712420 KB |
Output is correct |
44 |
Correct |
368 ms |
722208 KB |
Output is correct |
45 |
Correct |
386 ms |
724904 KB |
Output is correct |
46 |
Correct |
377 ms |
744944 KB |
Output is correct |
47 |
Correct |
455 ms |
742196 KB |
Output is correct |
48 |
Correct |
448 ms |
742148 KB |
Output is correct |
49 |
Correct |
573 ms |
775208 KB |
Output is correct |
50 |
Correct |
536 ms |
775208 KB |
Output is correct |
51 |
Correct |
474 ms |
742724 KB |
Output is correct |
52 |
Correct |
421 ms |
742284 KB |
Output is correct |
53 |
Correct |
453 ms |
742148 KB |
Output is correct |
54 |
Correct |
332 ms |
704804 KB |
Output is correct |
55 |
Correct |
317 ms |
704888 KB |
Output is correct |
56 |
Correct |
349 ms |
704708 KB |
Output is correct |
57 |
Correct |
312 ms |
704736 KB |
Output is correct |
58 |
Correct |
330 ms |
704728 KB |
Output is correct |
59 |
Correct |
322 ms |
704836 KB |
Output is correct |
60 |
Correct |
310 ms |
704768 KB |
Output is correct |
61 |
Correct |
316 ms |
704748 KB |
Output is correct |
62 |
Correct |
347 ms |
704744 KB |
Output is correct |
63 |
Correct |
324 ms |
704716 KB |
Output is correct |
64 |
Correct |
332 ms |
704840 KB |
Output is correct |
65 |
Correct |
320 ms |
704832 KB |
Output is correct |
66 |
Correct |
326 ms |
704844 KB |
Output is correct |
67 |
Correct |
321 ms |
704736 KB |
Output is correct |
68 |
Correct |
325 ms |
704844 KB |
Output is correct |
69 |
Correct |
318 ms |
704740 KB |
Output is correct |
70 |
Correct |
325 ms |
704844 KB |
Output is correct |
71 |
Correct |
315 ms |
704808 KB |
Output is correct |
72 |
Correct |
337 ms |
704712 KB |
Output is correct |
73 |
Correct |
341 ms |
704704 KB |
Output is correct |
74 |
Correct |
327 ms |
704808 KB |
Output is correct |
75 |
Correct |
320 ms |
704772 KB |
Output is correct |
76 |
Correct |
328 ms |
704832 KB |
Output is correct |
77 |
Correct |
319 ms |
704804 KB |
Output is correct |
78 |
Correct |
338 ms |
704768 KB |
Output is correct |
79 |
Correct |
314 ms |
704816 KB |
Output is correct |
80 |
Correct |
330 ms |
704784 KB |
Output is correct |
81 |
Correct |
314 ms |
704716 KB |
Output is correct |
82 |
Correct |
316 ms |
704788 KB |
Output is correct |
83 |
Correct |
310 ms |
704740 KB |
Output is correct |
84 |
Correct |
342 ms |
704828 KB |
Output is correct |
85 |
Correct |
342 ms |
704864 KB |
Output is correct |
86 |
Correct |
319 ms |
704784 KB |
Output is correct |
87 |
Correct |
336 ms |
704724 KB |
Output is correct |
88 |
Correct |
322 ms |
704804 KB |
Output is correct |
89 |
Correct |
330 ms |
704816 KB |
Output is correct |
90 |
Correct |
339 ms |
704776 KB |
Output is correct |
91 |
Correct |
322 ms |
704808 KB |
Output is correct |
92 |
Correct |
355 ms |
704748 KB |
Output is correct |
93 |
Correct |
311 ms |
704728 KB |
Output is correct |
94 |
Correct |
319 ms |
704940 KB |
Output is correct |
95 |
Correct |
333 ms |
704844 KB |
Output is correct |
96 |
Correct |
317 ms |
704800 KB |
Output is correct |
97 |
Correct |
333 ms |
704892 KB |
Output is correct |
98 |
Correct |
318 ms |
704836 KB |
Output is correct |
99 |
Correct |
333 ms |
704844 KB |
Output is correct |
100 |
Correct |
327 ms |
704784 KB |
Output is correct |
101 |
Correct |
327 ms |
704696 KB |
Output is correct |
102 |
Correct |
321 ms |
704908 KB |
Output is correct |
103 |
Correct |
323 ms |
704808 KB |
Output is correct |
104 |
Correct |
313 ms |
704760 KB |
Output is correct |
105 |
Correct |
324 ms |
704816 KB |
Output is correct |
106 |
Correct |
338 ms |
704904 KB |
Output is correct |
107 |
Correct |
343 ms |
704796 KB |
Output is correct |
108 |
Correct |
348 ms |
704848 KB |
Output is correct |
109 |
Correct |
330 ms |
704864 KB |
Output is correct |
110 |
Correct |
324 ms |
705876 KB |
Output is correct |
111 |
Correct |
324 ms |
706416 KB |
Output is correct |
112 |
Correct |
317 ms |
706508 KB |
Output is correct |
113 |
Correct |
334 ms |
706456 KB |
Output is correct |
114 |
Correct |
322 ms |
706464 KB |
Output is correct |
115 |
Correct |
367 ms |
706540 KB |
Output is correct |
116 |
Correct |
326 ms |
706088 KB |
Output is correct |
117 |
Correct |
358 ms |
706064 KB |
Output is correct |
118 |
Correct |
330 ms |
706076 KB |
Output is correct |
119 |
Correct |
367 ms |
708264 KB |
Output is correct |
120 |
Correct |
326 ms |
709200 KB |
Output is correct |
121 |
Correct |
338 ms |
709464 KB |
Output is correct |
122 |
Correct |
333 ms |
709360 KB |
Output is correct |
123 |
Correct |
335 ms |
709348 KB |
Output is correct |
124 |
Correct |
347 ms |
716892 KB |
Output is correct |
125 |
Correct |
409 ms |
738156 KB |
Output is correct |
126 |
Correct |
392 ms |
745136 KB |
Output is correct |
127 |
Correct |
408 ms |
752488 KB |
Output is correct |
128 |
Correct |
401 ms |
754616 KB |
Output is correct |
129 |
Correct |
395 ms |
754764 KB |
Output is correct |
130 |
Correct |
433 ms |
745508 KB |
Output is correct |
131 |
Correct |
408 ms |
741168 KB |
Output is correct |
132 |
Correct |
330 ms |
705920 KB |
Output is correct |
133 |
Correct |
326 ms |
704864 KB |
Output is correct |
134 |
Correct |
330 ms |
704864 KB |
Output is correct |
135 |
Correct |
325 ms |
705832 KB |
Output is correct |
136 |
Correct |
354 ms |
706948 KB |
Output is correct |
137 |
Correct |
328 ms |
706284 KB |
Output is correct |
138 |
Correct |
362 ms |
706424 KB |
Output is correct |
139 |
Correct |
343 ms |
706036 KB |
Output is correct |
140 |
Correct |
332 ms |
705940 KB |
Output is correct |
141 |
Correct |
352 ms |
706404 KB |
Output is correct |
142 |
Correct |
328 ms |
706416 KB |
Output is correct |
143 |
Correct |
350 ms |
706520 KB |
Output is correct |
144 |
Correct |
335 ms |
707616 KB |
Output is correct |
145 |
Correct |
346 ms |
707580 KB |
Output is correct |
146 |
Correct |
344 ms |
706704 KB |
Output is correct |
147 |
Correct |
360 ms |
706212 KB |
Output is correct |
148 |
Correct |
380 ms |
706164 KB |
Output is correct |
149 |
Correct |
336 ms |
706264 KB |
Output is correct |
150 |
Correct |
419 ms |
706020 KB |
Output is correct |
151 |
Correct |
330 ms |
706032 KB |
Output is correct |
152 |
Correct |
319 ms |
705992 KB |
Output is correct |
153 |
Correct |
332 ms |
705912 KB |
Output is correct |
154 |
Correct |
340 ms |
708120 KB |
Output is correct |
155 |
Correct |
346 ms |
706672 KB |
Output is correct |
156 |
Correct |
329 ms |
708228 KB |
Output is correct |
157 |
Incorrect |
330 ms |
707756 KB |
Output isn't correct |
158 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
322 ms |
704716 KB |
Output is correct |
2 |
Correct |
329 ms |
704792 KB |
Output is correct |
3 |
Correct |
319 ms |
704772 KB |
Output is correct |
4 |
Correct |
359 ms |
704816 KB |
Output is correct |
5 |
Correct |
336 ms |
704816 KB |
Output is correct |
6 |
Correct |
334 ms |
704840 KB |
Output is correct |
7 |
Correct |
332 ms |
704780 KB |
Output is correct |
8 |
Correct |
317 ms |
704844 KB |
Output is correct |
9 |
Correct |
314 ms |
704816 KB |
Output is correct |
10 |
Correct |
401 ms |
704772 KB |
Output is correct |
11 |
Correct |
330 ms |
704716 KB |
Output is correct |
12 |
Correct |
342 ms |
704804 KB |
Output is correct |
13 |
Correct |
328 ms |
704748 KB |
Output is correct |
14 |
Correct |
319 ms |
704696 KB |
Output is correct |
15 |
Correct |
321 ms |
704780 KB |
Output is correct |
16 |
Correct |
329 ms |
704876 KB |
Output is correct |
17 |
Correct |
321 ms |
704792 KB |
Output is correct |
18 |
Correct |
337 ms |
704900 KB |
Output is correct |
19 |
Correct |
327 ms |
706060 KB |
Output is correct |
20 |
Correct |
337 ms |
706924 KB |
Output is correct |
21 |
Correct |
319 ms |
706436 KB |
Output is correct |
22 |
Correct |
325 ms |
706048 KB |
Output is correct |
23 |
Correct |
334 ms |
705996 KB |
Output is correct |
24 |
Correct |
326 ms |
707620 KB |
Output is correct |
25 |
Correct |
339 ms |
707768 KB |
Output is correct |
26 |
Correct |
333 ms |
706140 KB |
Output is correct |
27 |
Correct |
325 ms |
706036 KB |
Output is correct |
28 |
Correct |
318 ms |
705940 KB |
Output is correct |
29 |
Correct |
345 ms |
708104 KB |
Output is correct |
30 |
Correct |
328 ms |
706732 KB |
Output is correct |
31 |
Correct |
358 ms |
709192 KB |
Output is correct |
32 |
Correct |
338 ms |
708092 KB |
Output is correct |
33 |
Correct |
345 ms |
708264 KB |
Output is correct |
34 |
Correct |
347 ms |
711880 KB |
Output is correct |
35 |
Correct |
348 ms |
711752 KB |
Output is correct |
36 |
Correct |
351 ms |
708280 KB |
Output is correct |
37 |
Correct |
339 ms |
708216 KB |
Output is correct |
38 |
Correct |
320 ms |
708064 KB |
Output is correct |
39 |
Correct |
473 ms |
742140 KB |
Output is correct |
40 |
Correct |
327 ms |
708940 KB |
Output is correct |
41 |
Correct |
347 ms |
713416 KB |
Output is correct |
42 |
Correct |
337 ms |
709924 KB |
Output is correct |
43 |
Correct |
370 ms |
712420 KB |
Output is correct |
44 |
Correct |
368 ms |
722208 KB |
Output is correct |
45 |
Correct |
386 ms |
724904 KB |
Output is correct |
46 |
Correct |
377 ms |
744944 KB |
Output is correct |
47 |
Correct |
455 ms |
742196 KB |
Output is correct |
48 |
Correct |
448 ms |
742148 KB |
Output is correct |
49 |
Correct |
573 ms |
775208 KB |
Output is correct |
50 |
Correct |
536 ms |
775208 KB |
Output is correct |
51 |
Correct |
474 ms |
742724 KB |
Output is correct |
52 |
Correct |
421 ms |
742284 KB |
Output is correct |
53 |
Correct |
453 ms |
742148 KB |
Output is correct |
54 |
Correct |
332 ms |
704804 KB |
Output is correct |
55 |
Correct |
317 ms |
704888 KB |
Output is correct |
56 |
Correct |
349 ms |
704708 KB |
Output is correct |
57 |
Correct |
312 ms |
704736 KB |
Output is correct |
58 |
Correct |
330 ms |
704728 KB |
Output is correct |
59 |
Correct |
322 ms |
704836 KB |
Output is correct |
60 |
Correct |
310 ms |
704768 KB |
Output is correct |
61 |
Correct |
316 ms |
704748 KB |
Output is correct |
62 |
Correct |
347 ms |
704744 KB |
Output is correct |
63 |
Correct |
324 ms |
704716 KB |
Output is correct |
64 |
Correct |
332 ms |
704840 KB |
Output is correct |
65 |
Correct |
320 ms |
704832 KB |
Output is correct |
66 |
Correct |
326 ms |
704844 KB |
Output is correct |
67 |
Correct |
321 ms |
704736 KB |
Output is correct |
68 |
Correct |
325 ms |
704844 KB |
Output is correct |
69 |
Correct |
318 ms |
704740 KB |
Output is correct |
70 |
Correct |
325 ms |
704844 KB |
Output is correct |
71 |
Correct |
315 ms |
704808 KB |
Output is correct |
72 |
Correct |
337 ms |
704712 KB |
Output is correct |
73 |
Correct |
341 ms |
704704 KB |
Output is correct |
74 |
Correct |
327 ms |
704808 KB |
Output is correct |
75 |
Correct |
320 ms |
704772 KB |
Output is correct |
76 |
Correct |
328 ms |
704832 KB |
Output is correct |
77 |
Correct |
319 ms |
704804 KB |
Output is correct |
78 |
Correct |
338 ms |
704768 KB |
Output is correct |
79 |
Correct |
314 ms |
704816 KB |
Output is correct |
80 |
Correct |
330 ms |
704784 KB |
Output is correct |
81 |
Correct |
314 ms |
704716 KB |
Output is correct |
82 |
Correct |
316 ms |
704788 KB |
Output is correct |
83 |
Correct |
310 ms |
704740 KB |
Output is correct |
84 |
Correct |
342 ms |
704828 KB |
Output is correct |
85 |
Correct |
342 ms |
704864 KB |
Output is correct |
86 |
Correct |
319 ms |
704784 KB |
Output is correct |
87 |
Correct |
336 ms |
704724 KB |
Output is correct |
88 |
Correct |
322 ms |
704804 KB |
Output is correct |
89 |
Correct |
330 ms |
704816 KB |
Output is correct |
90 |
Correct |
339 ms |
704776 KB |
Output is correct |
91 |
Correct |
322 ms |
704808 KB |
Output is correct |
92 |
Correct |
355 ms |
704748 KB |
Output is correct |
93 |
Correct |
311 ms |
704728 KB |
Output is correct |
94 |
Correct |
319 ms |
704940 KB |
Output is correct |
95 |
Correct |
333 ms |
704844 KB |
Output is correct |
96 |
Correct |
317 ms |
704800 KB |
Output is correct |
97 |
Correct |
333 ms |
704892 KB |
Output is correct |
98 |
Correct |
318 ms |
704836 KB |
Output is correct |
99 |
Correct |
333 ms |
704844 KB |
Output is correct |
100 |
Correct |
327 ms |
704784 KB |
Output is correct |
101 |
Correct |
327 ms |
704696 KB |
Output is correct |
102 |
Correct |
321 ms |
704908 KB |
Output is correct |
103 |
Correct |
323 ms |
704808 KB |
Output is correct |
104 |
Correct |
313 ms |
704760 KB |
Output is correct |
105 |
Correct |
324 ms |
704816 KB |
Output is correct |
106 |
Correct |
338 ms |
704904 KB |
Output is correct |
107 |
Correct |
343 ms |
704796 KB |
Output is correct |
108 |
Correct |
348 ms |
704848 KB |
Output is correct |
109 |
Correct |
330 ms |
704864 KB |
Output is correct |
110 |
Correct |
324 ms |
705876 KB |
Output is correct |
111 |
Correct |
324 ms |
706416 KB |
Output is correct |
112 |
Correct |
317 ms |
706508 KB |
Output is correct |
113 |
Correct |
334 ms |
706456 KB |
Output is correct |
114 |
Correct |
322 ms |
706464 KB |
Output is correct |
115 |
Correct |
367 ms |
706540 KB |
Output is correct |
116 |
Correct |
326 ms |
706088 KB |
Output is correct |
117 |
Correct |
358 ms |
706064 KB |
Output is correct |
118 |
Correct |
330 ms |
706076 KB |
Output is correct |
119 |
Correct |
367 ms |
708264 KB |
Output is correct |
120 |
Correct |
326 ms |
709200 KB |
Output is correct |
121 |
Correct |
338 ms |
709464 KB |
Output is correct |
122 |
Correct |
333 ms |
709360 KB |
Output is correct |
123 |
Correct |
335 ms |
709348 KB |
Output is correct |
124 |
Correct |
347 ms |
716892 KB |
Output is correct |
125 |
Correct |
409 ms |
738156 KB |
Output is correct |
126 |
Correct |
392 ms |
745136 KB |
Output is correct |
127 |
Correct |
408 ms |
752488 KB |
Output is correct |
128 |
Correct |
401 ms |
754616 KB |
Output is correct |
129 |
Correct |
395 ms |
754764 KB |
Output is correct |
130 |
Correct |
433 ms |
745508 KB |
Output is correct |
131 |
Correct |
408 ms |
741168 KB |
Output is correct |
132 |
Correct |
330 ms |
705920 KB |
Output is correct |
133 |
Correct |
326 ms |
704864 KB |
Output is correct |
134 |
Correct |
330 ms |
704864 KB |
Output is correct |
135 |
Correct |
325 ms |
705832 KB |
Output is correct |
136 |
Correct |
354 ms |
706948 KB |
Output is correct |
137 |
Correct |
328 ms |
706284 KB |
Output is correct |
138 |
Correct |
362 ms |
706424 KB |
Output is correct |
139 |
Correct |
343 ms |
706036 KB |
Output is correct |
140 |
Correct |
332 ms |
705940 KB |
Output is correct |
141 |
Correct |
352 ms |
706404 KB |
Output is correct |
142 |
Correct |
328 ms |
706416 KB |
Output is correct |
143 |
Correct |
350 ms |
706520 KB |
Output is correct |
144 |
Correct |
335 ms |
707616 KB |
Output is correct |
145 |
Correct |
346 ms |
707580 KB |
Output is correct |
146 |
Correct |
344 ms |
706704 KB |
Output is correct |
147 |
Correct |
360 ms |
706212 KB |
Output is correct |
148 |
Correct |
380 ms |
706164 KB |
Output is correct |
149 |
Correct |
336 ms |
706264 KB |
Output is correct |
150 |
Correct |
419 ms |
706020 KB |
Output is correct |
151 |
Correct |
330 ms |
706032 KB |
Output is correct |
152 |
Correct |
319 ms |
705992 KB |
Output is correct |
153 |
Correct |
332 ms |
705912 KB |
Output is correct |
154 |
Correct |
340 ms |
708120 KB |
Output is correct |
155 |
Correct |
346 ms |
706672 KB |
Output is correct |
156 |
Correct |
329 ms |
708228 KB |
Output is correct |
157 |
Incorrect |
330 ms |
707756 KB |
Output isn't correct |
158 |
Halted |
0 ms |
0 KB |
- |