# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
894210 |
2023-12-28T02:55:26 Z |
box |
Maze (JOI23_ho_t3) |
C++17 |
|
1684 ms |
307672 KB |
#pragma GCC optimize("O3,unroll-loops")
#include "bits/stdc++.h"
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define debug(...)
#endif
const int NM = 6e6;
typedef pair<int, int> pi;
struct Range {
int p[NM], n, m;
bool rem[NM];
Range(int n, int m) : n(n), m(m) {
for (int i = 0; i < n*m; i++) p[i] = i, rem[i] = false;
}
int dsf(int i) {
return p[i] == i ? i : p[i] = dsf(p[i]);
}
void dsj(int i, int j) { p[dsf(i)] = dsf(j); }
bool has(int i) { return !rem[i]; }
void remove(int i) {
if (i > 0 && rem[i-1]) dsj(i-1, i);
if (i+1 < n && rem[i+1]) dsj(i, i+1);
rem[i] = 1;
}
int next(int i) { return i == n ? n : !rem[i] ? i : dsf(i)+1; }
int next(int i, int j) { return min(m,next(i*m+j)-i*m); }
void remove(int i, int j) { remove(i*m+j); }
bool has(int i, int j) { return has(i*m+j); }
};
int main() {
ios::sync_with_stdio(false);
cin.exceptions(cin.failbit);
cin.tie(NULL);
int k, n, m;
cin >> n >> m >> k;
int i1, j1, i2, j2;
cin >> i1 >> j1 >> i2 >> j2, i1--, j1--, i2--, j2--;
static char g[NM+1];
for (int i = 0; i < n; i++) {
string s;
cin >> s;
for (int j = 0; j < m; j++) g[i*m+j] = s[j];
}
Range row(n, m), col(m, n);
static int d[NM];
for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) d[i*m+j] = -1;
static bool fl[NM];
vector<pi> f;
d[i1*m+j1] = 0, f.push_back({i1, j1}), row.remove(i1,j1), col.remove(j1,i1);
for (int x = 0; ; x++) {
for (int p = 0; p < int(f.size()); p++) {
auto [i,j] = f[p];
fl[i*m+j] = true;
if (i == i2 && j == j2) {
cout << x << '\n';
return 0;
}
if (i > 0 && g[(i-1)*m+j] == '.' && d[(i-1)*m+j] == -1)
d[(i-1)*m+j] = x, f.push_back({i-1,j}), row.remove(i-1,j), col.remove(j,i-1);
if (i+1 < n && g[(i+1)*m+j] == '.' && d[(i+1)*m+j] == -1)
d[(i+1)*m+j] = x, f.push_back({i+1,j}), row.remove(i+1,j), col.remove(j,i+1);
if (j > 0 && g[i*m+j-1] == '.' && d[i*m+j-1] == -1)
d[i*m+j-1] = x, f.push_back({i,j-1}), row.remove(i,j-1), col.remove(j-1,i);
if (j+1 < m && g[i*m+j+1] == '.' && d[i*m+j+1] == -1)
d[i*m+j+1] = x, f.push_back({i,j+1}), row.remove(i,j+1), col.remove(j+1,i);
}
vector<pi> half = f, g;
for (auto [i,j] : f) {
int p = row.next(i,max(0,j-k));
while (p < m && p <= j+k) {
d[i*m+p] = x+1;
if (abs(p-j) != k) {
row.remove(i,p), col.remove(p,i);
fl[i*m+p] = true;
}
half.push_back({i,p}), g.push_back({i,p});
p = row.next(i,p+1);
}
}
for (auto [i,j] : half) if (row.has(i,j))
row.remove(i,j), col.remove(j,i);
for (auto [i,j] : half) {
int bound = k - (fl[i*m+j]?0:1);
int p = col.next(j,max(0,i-bound));
while (p < n && p <= i+bound) {
d[p*m+j] = x+1;
g.push_back({p,j});
row.remove(p,j), col.remove(j,p);
p = col.next(j,p+1);
}
}
f = move(g);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
35 ms |
63136 KB |
Output is correct |
2 |
Correct |
35 ms |
63056 KB |
Output is correct |
3 |
Correct |
27 ms |
63040 KB |
Output is correct |
4 |
Correct |
36 ms |
63068 KB |
Output is correct |
5 |
Correct |
27 ms |
63056 KB |
Output is correct |
6 |
Correct |
28 ms |
63236 KB |
Output is correct |
7 |
Correct |
33 ms |
63112 KB |
Output is correct |
8 |
Correct |
27 ms |
63168 KB |
Output is correct |
9 |
Correct |
27 ms |
63036 KB |
Output is correct |
10 |
Correct |
34 ms |
63056 KB |
Output is correct |
11 |
Correct |
27 ms |
63060 KB |
Output is correct |
12 |
Correct |
27 ms |
63232 KB |
Output is correct |
13 |
Correct |
27 ms |
63248 KB |
Output is correct |
14 |
Correct |
28 ms |
63056 KB |
Output is correct |
15 |
Correct |
27 ms |
63008 KB |
Output is correct |
16 |
Correct |
28 ms |
63228 KB |
Output is correct |
17 |
Correct |
33 ms |
63056 KB |
Output is correct |
18 |
Correct |
33 ms |
63076 KB |
Output is correct |
19 |
Correct |
34 ms |
63316 KB |
Output is correct |
20 |
Correct |
34 ms |
63312 KB |
Output is correct |
21 |
Correct |
30 ms |
63960 KB |
Output is correct |
22 |
Correct |
36 ms |
63448 KB |
Output is correct |
23 |
Correct |
43 ms |
63316 KB |
Output is correct |
24 |
Correct |
32 ms |
63324 KB |
Output is correct |
25 |
Correct |
35 ms |
63424 KB |
Output is correct |
26 |
Correct |
30 ms |
63184 KB |
Output is correct |
27 |
Correct |
28 ms |
63256 KB |
Output is correct |
28 |
Correct |
30 ms |
63324 KB |
Output is correct |
29 |
Correct |
46 ms |
65684 KB |
Output is correct |
30 |
Correct |
35 ms |
63264 KB |
Output is correct |
31 |
Correct |
37 ms |
67788 KB |
Output is correct |
32 |
Correct |
58 ms |
65880 KB |
Output is correct |
33 |
Correct |
42 ms |
65620 KB |
Output is correct |
34 |
Correct |
37 ms |
65612 KB |
Output is correct |
35 |
Correct |
50 ms |
65516 KB |
Output is correct |
36 |
Correct |
41 ms |
66588 KB |
Output is correct |
37 |
Correct |
54 ms |
66180 KB |
Output is correct |
38 |
Correct |
29 ms |
65600 KB |
Output is correct |
39 |
Correct |
304 ms |
73412 KB |
Output is correct |
40 |
Correct |
36 ms |
65364 KB |
Output is correct |
41 |
Correct |
44 ms |
65652 KB |
Output is correct |
42 |
Correct |
67 ms |
67836 KB |
Output is correct |
43 |
Correct |
70 ms |
67748 KB |
Output is correct |
44 |
Correct |
71 ms |
70248 KB |
Output is correct |
45 |
Correct |
73 ms |
70420 KB |
Output is correct |
46 |
Correct |
42 ms |
77508 KB |
Output is correct |
47 |
Correct |
354 ms |
74072 KB |
Output is correct |
48 |
Correct |
231 ms |
73120 KB |
Output is correct |
49 |
Correct |
70 ms |
73016 KB |
Output is correct |
50 |
Correct |
151 ms |
73040 KB |
Output is correct |
51 |
Correct |
265 ms |
78840 KB |
Output is correct |
52 |
Correct |
200 ms |
75296 KB |
Output is correct |
53 |
Correct |
237 ms |
73740 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
63236 KB |
Output is correct |
2 |
Correct |
28 ms |
63068 KB |
Output is correct |
3 |
Correct |
32 ms |
63060 KB |
Output is correct |
4 |
Correct |
28 ms |
63184 KB |
Output is correct |
5 |
Correct |
35 ms |
63052 KB |
Output is correct |
6 |
Correct |
27 ms |
63068 KB |
Output is correct |
7 |
Correct |
28 ms |
63088 KB |
Output is correct |
8 |
Correct |
36 ms |
63076 KB |
Output is correct |
9 |
Correct |
34 ms |
63056 KB |
Output is correct |
10 |
Correct |
32 ms |
63128 KB |
Output is correct |
11 |
Correct |
36 ms |
63252 KB |
Output is correct |
12 |
Correct |
35 ms |
63060 KB |
Output is correct |
13 |
Correct |
35 ms |
63244 KB |
Output is correct |
14 |
Correct |
35 ms |
63132 KB |
Output is correct |
15 |
Correct |
36 ms |
63004 KB |
Output is correct |
16 |
Correct |
35 ms |
63232 KB |
Output is correct |
17 |
Correct |
28 ms |
63056 KB |
Output is correct |
18 |
Correct |
28 ms |
63068 KB |
Output is correct |
19 |
Correct |
28 ms |
63068 KB |
Output is correct |
20 |
Correct |
29 ms |
63268 KB |
Output is correct |
21 |
Correct |
31 ms |
63240 KB |
Output is correct |
22 |
Correct |
37 ms |
63068 KB |
Output is correct |
23 |
Correct |
32 ms |
63076 KB |
Output is correct |
24 |
Correct |
34 ms |
63056 KB |
Output is correct |
25 |
Correct |
30 ms |
63272 KB |
Output is correct |
26 |
Correct |
32 ms |
63044 KB |
Output is correct |
27 |
Correct |
30 ms |
63060 KB |
Output is correct |
28 |
Correct |
31 ms |
63068 KB |
Output is correct |
29 |
Correct |
29 ms |
63176 KB |
Output is correct |
30 |
Correct |
31 ms |
63060 KB |
Output is correct |
31 |
Correct |
29 ms |
63252 KB |
Output is correct |
32 |
Correct |
45 ms |
63060 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
29 ms |
63052 KB |
Output is correct |
2 |
Correct |
35 ms |
63136 KB |
Output is correct |
3 |
Correct |
39 ms |
63196 KB |
Output is correct |
4 |
Correct |
48 ms |
63056 KB |
Output is correct |
5 |
Correct |
48 ms |
63148 KB |
Output is correct |
6 |
Correct |
34 ms |
63092 KB |
Output is correct |
7 |
Correct |
28 ms |
63068 KB |
Output is correct |
8 |
Correct |
27 ms |
63068 KB |
Output is correct |
9 |
Correct |
47 ms |
63048 KB |
Output is correct |
10 |
Correct |
27 ms |
63208 KB |
Output is correct |
11 |
Correct |
31 ms |
63116 KB |
Output is correct |
12 |
Correct |
34 ms |
63408 KB |
Output is correct |
13 |
Correct |
28 ms |
63056 KB |
Output is correct |
14 |
Correct |
27 ms |
63068 KB |
Output is correct |
15 |
Correct |
45 ms |
63036 KB |
Output is correct |
16 |
Correct |
37 ms |
63068 KB |
Output is correct |
17 |
Correct |
37 ms |
63240 KB |
Output is correct |
18 |
Correct |
45 ms |
63144 KB |
Output is correct |
19 |
Correct |
29 ms |
63000 KB |
Output is correct |
20 |
Correct |
30 ms |
63064 KB |
Output is correct |
21 |
Correct |
30 ms |
63068 KB |
Output is correct |
22 |
Correct |
28 ms |
63068 KB |
Output is correct |
23 |
Correct |
28 ms |
63088 KB |
Output is correct |
24 |
Correct |
27 ms |
63064 KB |
Output is correct |
25 |
Correct |
28 ms |
63280 KB |
Output is correct |
26 |
Correct |
36 ms |
63704 KB |
Output is correct |
27 |
Correct |
29 ms |
63960 KB |
Output is correct |
28 |
Correct |
30 ms |
63976 KB |
Output is correct |
29 |
Correct |
28 ms |
63988 KB |
Output is correct |
30 |
Correct |
37 ms |
63956 KB |
Output is correct |
31 |
Correct |
35 ms |
64500 KB |
Output is correct |
32 |
Correct |
30 ms |
63312 KB |
Output is correct |
33 |
Correct |
29 ms |
63316 KB |
Output is correct |
34 |
Correct |
36 ms |
66704 KB |
Output is correct |
35 |
Correct |
31 ms |
67800 KB |
Output is correct |
36 |
Correct |
31 ms |
66572 KB |
Output is correct |
37 |
Correct |
32 ms |
67608 KB |
Output is correct |
38 |
Correct |
43 ms |
67480 KB |
Output is correct |
39 |
Correct |
40 ms |
70104 KB |
Output is correct |
40 |
Correct |
68 ms |
82280 KB |
Output is correct |
41 |
Correct |
56 ms |
78216 KB |
Output is correct |
42 |
Correct |
85 ms |
91396 KB |
Output is correct |
43 |
Correct |
92 ms |
89956 KB |
Output is correct |
44 |
Correct |
70 ms |
89468 KB |
Output is correct |
45 |
Correct |
81 ms |
81856 KB |
Output is correct |
46 |
Correct |
81 ms |
81684 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
63236 KB |
Output is correct |
2 |
Correct |
28 ms |
63068 KB |
Output is correct |
3 |
Correct |
32 ms |
63060 KB |
Output is correct |
4 |
Correct |
28 ms |
63184 KB |
Output is correct |
5 |
Correct |
35 ms |
63052 KB |
Output is correct |
6 |
Correct |
27 ms |
63068 KB |
Output is correct |
7 |
Correct |
28 ms |
63088 KB |
Output is correct |
8 |
Correct |
36 ms |
63076 KB |
Output is correct |
9 |
Correct |
34 ms |
63056 KB |
Output is correct |
10 |
Correct |
32 ms |
63128 KB |
Output is correct |
11 |
Correct |
36 ms |
63252 KB |
Output is correct |
12 |
Correct |
35 ms |
63060 KB |
Output is correct |
13 |
Correct |
35 ms |
63244 KB |
Output is correct |
14 |
Correct |
35 ms |
63132 KB |
Output is correct |
15 |
Correct |
36 ms |
63004 KB |
Output is correct |
16 |
Correct |
35 ms |
63232 KB |
Output is correct |
17 |
Correct |
28 ms |
63056 KB |
Output is correct |
18 |
Correct |
28 ms |
63068 KB |
Output is correct |
19 |
Correct |
28 ms |
63068 KB |
Output is correct |
20 |
Correct |
29 ms |
63268 KB |
Output is correct |
21 |
Correct |
31 ms |
63240 KB |
Output is correct |
22 |
Correct |
37 ms |
63068 KB |
Output is correct |
23 |
Correct |
32 ms |
63076 KB |
Output is correct |
24 |
Correct |
34 ms |
63056 KB |
Output is correct |
25 |
Correct |
30 ms |
63272 KB |
Output is correct |
26 |
Correct |
32 ms |
63044 KB |
Output is correct |
27 |
Correct |
30 ms |
63060 KB |
Output is correct |
28 |
Correct |
31 ms |
63068 KB |
Output is correct |
29 |
Correct |
29 ms |
63176 KB |
Output is correct |
30 |
Correct |
31 ms |
63060 KB |
Output is correct |
31 |
Correct |
29 ms |
63252 KB |
Output is correct |
32 |
Correct |
45 ms |
63060 KB |
Output is correct |
33 |
Correct |
34 ms |
63312 KB |
Output is correct |
34 |
Correct |
31 ms |
63076 KB |
Output is correct |
35 |
Correct |
31 ms |
63068 KB |
Output is correct |
36 |
Correct |
30 ms |
63248 KB |
Output is correct |
37 |
Correct |
42 ms |
63240 KB |
Output is correct |
38 |
Correct |
29 ms |
63708 KB |
Output is correct |
39 |
Correct |
29 ms |
63792 KB |
Output is correct |
40 |
Correct |
36 ms |
63580 KB |
Output is correct |
41 |
Correct |
37 ms |
63252 KB |
Output is correct |
42 |
Correct |
29 ms |
63956 KB |
Output is correct |
43 |
Correct |
29 ms |
63996 KB |
Output is correct |
44 |
Correct |
37 ms |
63764 KB |
Output is correct |
45 |
Correct |
34 ms |
63412 KB |
Output is correct |
46 |
Correct |
35 ms |
63320 KB |
Output is correct |
47 |
Correct |
33 ms |
63404 KB |
Output is correct |
48 |
Correct |
35 ms |
63316 KB |
Output is correct |
49 |
Correct |
33 ms |
63664 KB |
Output is correct |
50 |
Correct |
47 ms |
64036 KB |
Output is correct |
51 |
Correct |
35 ms |
64656 KB |
Output is correct |
52 |
Correct |
34 ms |
63324 KB |
Output is correct |
53 |
Correct |
33 ms |
63252 KB |
Output is correct |
54 |
Correct |
31 ms |
63448 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
63236 KB |
Output is correct |
2 |
Correct |
28 ms |
63068 KB |
Output is correct |
3 |
Correct |
32 ms |
63060 KB |
Output is correct |
4 |
Correct |
28 ms |
63184 KB |
Output is correct |
5 |
Correct |
35 ms |
63052 KB |
Output is correct |
6 |
Correct |
27 ms |
63068 KB |
Output is correct |
7 |
Correct |
28 ms |
63088 KB |
Output is correct |
8 |
Correct |
36 ms |
63076 KB |
Output is correct |
9 |
Correct |
34 ms |
63056 KB |
Output is correct |
10 |
Correct |
32 ms |
63128 KB |
Output is correct |
11 |
Correct |
36 ms |
63252 KB |
Output is correct |
12 |
Correct |
35 ms |
63060 KB |
Output is correct |
13 |
Correct |
35 ms |
63244 KB |
Output is correct |
14 |
Correct |
35 ms |
63132 KB |
Output is correct |
15 |
Correct |
36 ms |
63004 KB |
Output is correct |
16 |
Correct |
35 ms |
63232 KB |
Output is correct |
17 |
Correct |
28 ms |
63056 KB |
Output is correct |
18 |
Correct |
28 ms |
63068 KB |
Output is correct |
19 |
Correct |
28 ms |
63068 KB |
Output is correct |
20 |
Correct |
29 ms |
63268 KB |
Output is correct |
21 |
Correct |
31 ms |
63240 KB |
Output is correct |
22 |
Correct |
37 ms |
63068 KB |
Output is correct |
23 |
Correct |
32 ms |
63076 KB |
Output is correct |
24 |
Correct |
34 ms |
63056 KB |
Output is correct |
25 |
Correct |
30 ms |
63272 KB |
Output is correct |
26 |
Correct |
32 ms |
63044 KB |
Output is correct |
27 |
Correct |
30 ms |
63060 KB |
Output is correct |
28 |
Correct |
31 ms |
63068 KB |
Output is correct |
29 |
Correct |
29 ms |
63176 KB |
Output is correct |
30 |
Correct |
31 ms |
63060 KB |
Output is correct |
31 |
Correct |
29 ms |
63252 KB |
Output is correct |
32 |
Correct |
45 ms |
63060 KB |
Output is correct |
33 |
Correct |
34 ms |
63312 KB |
Output is correct |
34 |
Correct |
31 ms |
63076 KB |
Output is correct |
35 |
Correct |
31 ms |
63068 KB |
Output is correct |
36 |
Correct |
30 ms |
63248 KB |
Output is correct |
37 |
Correct |
42 ms |
63240 KB |
Output is correct |
38 |
Correct |
29 ms |
63708 KB |
Output is correct |
39 |
Correct |
29 ms |
63792 KB |
Output is correct |
40 |
Correct |
36 ms |
63580 KB |
Output is correct |
41 |
Correct |
37 ms |
63252 KB |
Output is correct |
42 |
Correct |
29 ms |
63956 KB |
Output is correct |
43 |
Correct |
29 ms |
63996 KB |
Output is correct |
44 |
Correct |
37 ms |
63764 KB |
Output is correct |
45 |
Correct |
34 ms |
63412 KB |
Output is correct |
46 |
Correct |
35 ms |
63320 KB |
Output is correct |
47 |
Correct |
33 ms |
63404 KB |
Output is correct |
48 |
Correct |
35 ms |
63316 KB |
Output is correct |
49 |
Correct |
33 ms |
63664 KB |
Output is correct |
50 |
Correct |
47 ms |
64036 KB |
Output is correct |
51 |
Correct |
35 ms |
64656 KB |
Output is correct |
52 |
Correct |
34 ms |
63324 KB |
Output is correct |
53 |
Correct |
33 ms |
63252 KB |
Output is correct |
54 |
Correct |
31 ms |
63448 KB |
Output is correct |
55 |
Correct |
49 ms |
65616 KB |
Output is correct |
56 |
Correct |
34 ms |
63336 KB |
Output is correct |
57 |
Correct |
33 ms |
66568 KB |
Output is correct |
58 |
Correct |
46 ms |
65472 KB |
Output is correct |
59 |
Correct |
32 ms |
67788 KB |
Output is correct |
60 |
Correct |
60 ms |
65944 KB |
Output is correct |
61 |
Correct |
42 ms |
65672 KB |
Output is correct |
62 |
Correct |
33 ms |
66516 KB |
Output is correct |
63 |
Correct |
37 ms |
67492 KB |
Output is correct |
64 |
Correct |
32 ms |
67696 KB |
Output is correct |
65 |
Correct |
43 ms |
65612 KB |
Output is correct |
66 |
Correct |
69 ms |
65612 KB |
Output is correct |
67 |
Correct |
59 ms |
65916 KB |
Output is correct |
68 |
Correct |
50 ms |
65784 KB |
Output is correct |
69 |
Correct |
64 ms |
66252 KB |
Output is correct |
70 |
Correct |
49 ms |
66264 KB |
Output is correct |
71 |
Correct |
53 ms |
68648 KB |
Output is correct |
72 |
Correct |
44 ms |
66604 KB |
Output is correct |
73 |
Correct |
59 ms |
66348 KB |
Output is correct |
74 |
Correct |
32 ms |
65720 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
35 ms |
63136 KB |
Output is correct |
2 |
Correct |
35 ms |
63056 KB |
Output is correct |
3 |
Correct |
27 ms |
63040 KB |
Output is correct |
4 |
Correct |
36 ms |
63068 KB |
Output is correct |
5 |
Correct |
27 ms |
63056 KB |
Output is correct |
6 |
Correct |
28 ms |
63236 KB |
Output is correct |
7 |
Correct |
33 ms |
63112 KB |
Output is correct |
8 |
Correct |
27 ms |
63168 KB |
Output is correct |
9 |
Correct |
27 ms |
63036 KB |
Output is correct |
10 |
Correct |
34 ms |
63056 KB |
Output is correct |
11 |
Correct |
27 ms |
63060 KB |
Output is correct |
12 |
Correct |
27 ms |
63232 KB |
Output is correct |
13 |
Correct |
27 ms |
63248 KB |
Output is correct |
14 |
Correct |
28 ms |
63056 KB |
Output is correct |
15 |
Correct |
27 ms |
63008 KB |
Output is correct |
16 |
Correct |
28 ms |
63228 KB |
Output is correct |
17 |
Correct |
33 ms |
63056 KB |
Output is correct |
18 |
Correct |
33 ms |
63076 KB |
Output is correct |
19 |
Correct |
34 ms |
63316 KB |
Output is correct |
20 |
Correct |
34 ms |
63312 KB |
Output is correct |
21 |
Correct |
30 ms |
63960 KB |
Output is correct |
22 |
Correct |
36 ms |
63448 KB |
Output is correct |
23 |
Correct |
43 ms |
63316 KB |
Output is correct |
24 |
Correct |
32 ms |
63324 KB |
Output is correct |
25 |
Correct |
35 ms |
63424 KB |
Output is correct |
26 |
Correct |
30 ms |
63184 KB |
Output is correct |
27 |
Correct |
28 ms |
63256 KB |
Output is correct |
28 |
Correct |
30 ms |
63324 KB |
Output is correct |
29 |
Correct |
46 ms |
65684 KB |
Output is correct |
30 |
Correct |
35 ms |
63264 KB |
Output is correct |
31 |
Correct |
37 ms |
67788 KB |
Output is correct |
32 |
Correct |
58 ms |
65880 KB |
Output is correct |
33 |
Correct |
42 ms |
65620 KB |
Output is correct |
34 |
Correct |
37 ms |
65612 KB |
Output is correct |
35 |
Correct |
50 ms |
65516 KB |
Output is correct |
36 |
Correct |
41 ms |
66588 KB |
Output is correct |
37 |
Correct |
54 ms |
66180 KB |
Output is correct |
38 |
Correct |
29 ms |
65600 KB |
Output is correct |
39 |
Correct |
304 ms |
73412 KB |
Output is correct |
40 |
Correct |
36 ms |
65364 KB |
Output is correct |
41 |
Correct |
44 ms |
65652 KB |
Output is correct |
42 |
Correct |
67 ms |
67836 KB |
Output is correct |
43 |
Correct |
70 ms |
67748 KB |
Output is correct |
44 |
Correct |
71 ms |
70248 KB |
Output is correct |
45 |
Correct |
73 ms |
70420 KB |
Output is correct |
46 |
Correct |
42 ms |
77508 KB |
Output is correct |
47 |
Correct |
354 ms |
74072 KB |
Output is correct |
48 |
Correct |
231 ms |
73120 KB |
Output is correct |
49 |
Correct |
70 ms |
73016 KB |
Output is correct |
50 |
Correct |
151 ms |
73040 KB |
Output is correct |
51 |
Correct |
265 ms |
78840 KB |
Output is correct |
52 |
Correct |
200 ms |
75296 KB |
Output is correct |
53 |
Correct |
237 ms |
73740 KB |
Output is correct |
54 |
Correct |
28 ms |
63236 KB |
Output is correct |
55 |
Correct |
28 ms |
63068 KB |
Output is correct |
56 |
Correct |
32 ms |
63060 KB |
Output is correct |
57 |
Correct |
28 ms |
63184 KB |
Output is correct |
58 |
Correct |
35 ms |
63052 KB |
Output is correct |
59 |
Correct |
27 ms |
63068 KB |
Output is correct |
60 |
Correct |
28 ms |
63088 KB |
Output is correct |
61 |
Correct |
36 ms |
63076 KB |
Output is correct |
62 |
Correct |
34 ms |
63056 KB |
Output is correct |
63 |
Correct |
32 ms |
63128 KB |
Output is correct |
64 |
Correct |
36 ms |
63252 KB |
Output is correct |
65 |
Correct |
35 ms |
63060 KB |
Output is correct |
66 |
Correct |
35 ms |
63244 KB |
Output is correct |
67 |
Correct |
35 ms |
63132 KB |
Output is correct |
68 |
Correct |
36 ms |
63004 KB |
Output is correct |
69 |
Correct |
35 ms |
63232 KB |
Output is correct |
70 |
Correct |
28 ms |
63056 KB |
Output is correct |
71 |
Correct |
28 ms |
63068 KB |
Output is correct |
72 |
Correct |
28 ms |
63068 KB |
Output is correct |
73 |
Correct |
29 ms |
63268 KB |
Output is correct |
74 |
Correct |
31 ms |
63240 KB |
Output is correct |
75 |
Correct |
37 ms |
63068 KB |
Output is correct |
76 |
Correct |
32 ms |
63076 KB |
Output is correct |
77 |
Correct |
34 ms |
63056 KB |
Output is correct |
78 |
Correct |
30 ms |
63272 KB |
Output is correct |
79 |
Correct |
32 ms |
63044 KB |
Output is correct |
80 |
Correct |
30 ms |
63060 KB |
Output is correct |
81 |
Correct |
31 ms |
63068 KB |
Output is correct |
82 |
Correct |
29 ms |
63176 KB |
Output is correct |
83 |
Correct |
31 ms |
63060 KB |
Output is correct |
84 |
Correct |
29 ms |
63252 KB |
Output is correct |
85 |
Correct |
45 ms |
63060 KB |
Output is correct |
86 |
Correct |
29 ms |
63052 KB |
Output is correct |
87 |
Correct |
35 ms |
63136 KB |
Output is correct |
88 |
Correct |
39 ms |
63196 KB |
Output is correct |
89 |
Correct |
48 ms |
63056 KB |
Output is correct |
90 |
Correct |
48 ms |
63148 KB |
Output is correct |
91 |
Correct |
34 ms |
63092 KB |
Output is correct |
92 |
Correct |
28 ms |
63068 KB |
Output is correct |
93 |
Correct |
27 ms |
63068 KB |
Output is correct |
94 |
Correct |
47 ms |
63048 KB |
Output is correct |
95 |
Correct |
27 ms |
63208 KB |
Output is correct |
96 |
Correct |
31 ms |
63116 KB |
Output is correct |
97 |
Correct |
34 ms |
63408 KB |
Output is correct |
98 |
Correct |
28 ms |
63056 KB |
Output is correct |
99 |
Correct |
27 ms |
63068 KB |
Output is correct |
100 |
Correct |
45 ms |
63036 KB |
Output is correct |
101 |
Correct |
37 ms |
63068 KB |
Output is correct |
102 |
Correct |
37 ms |
63240 KB |
Output is correct |
103 |
Correct |
45 ms |
63144 KB |
Output is correct |
104 |
Correct |
29 ms |
63000 KB |
Output is correct |
105 |
Correct |
30 ms |
63064 KB |
Output is correct |
106 |
Correct |
30 ms |
63068 KB |
Output is correct |
107 |
Correct |
28 ms |
63068 KB |
Output is correct |
108 |
Correct |
28 ms |
63088 KB |
Output is correct |
109 |
Correct |
27 ms |
63064 KB |
Output is correct |
110 |
Correct |
28 ms |
63280 KB |
Output is correct |
111 |
Correct |
36 ms |
63704 KB |
Output is correct |
112 |
Correct |
29 ms |
63960 KB |
Output is correct |
113 |
Correct |
30 ms |
63976 KB |
Output is correct |
114 |
Correct |
28 ms |
63988 KB |
Output is correct |
115 |
Correct |
37 ms |
63956 KB |
Output is correct |
116 |
Correct |
35 ms |
64500 KB |
Output is correct |
117 |
Correct |
30 ms |
63312 KB |
Output is correct |
118 |
Correct |
29 ms |
63316 KB |
Output is correct |
119 |
Correct |
36 ms |
66704 KB |
Output is correct |
120 |
Correct |
31 ms |
67800 KB |
Output is correct |
121 |
Correct |
31 ms |
66572 KB |
Output is correct |
122 |
Correct |
32 ms |
67608 KB |
Output is correct |
123 |
Correct |
43 ms |
67480 KB |
Output is correct |
124 |
Correct |
40 ms |
70104 KB |
Output is correct |
125 |
Correct |
68 ms |
82280 KB |
Output is correct |
126 |
Correct |
56 ms |
78216 KB |
Output is correct |
127 |
Correct |
85 ms |
91396 KB |
Output is correct |
128 |
Correct |
92 ms |
89956 KB |
Output is correct |
129 |
Correct |
70 ms |
89468 KB |
Output is correct |
130 |
Correct |
81 ms |
81856 KB |
Output is correct |
131 |
Correct |
81 ms |
81684 KB |
Output is correct |
132 |
Correct |
34 ms |
63312 KB |
Output is correct |
133 |
Correct |
31 ms |
63076 KB |
Output is correct |
134 |
Correct |
31 ms |
63068 KB |
Output is correct |
135 |
Correct |
30 ms |
63248 KB |
Output is correct |
136 |
Correct |
42 ms |
63240 KB |
Output is correct |
137 |
Correct |
29 ms |
63708 KB |
Output is correct |
138 |
Correct |
29 ms |
63792 KB |
Output is correct |
139 |
Correct |
36 ms |
63580 KB |
Output is correct |
140 |
Correct |
37 ms |
63252 KB |
Output is correct |
141 |
Correct |
29 ms |
63956 KB |
Output is correct |
142 |
Correct |
29 ms |
63996 KB |
Output is correct |
143 |
Correct |
37 ms |
63764 KB |
Output is correct |
144 |
Correct |
34 ms |
63412 KB |
Output is correct |
145 |
Correct |
35 ms |
63320 KB |
Output is correct |
146 |
Correct |
33 ms |
63404 KB |
Output is correct |
147 |
Correct |
35 ms |
63316 KB |
Output is correct |
148 |
Correct |
33 ms |
63664 KB |
Output is correct |
149 |
Correct |
47 ms |
64036 KB |
Output is correct |
150 |
Correct |
35 ms |
64656 KB |
Output is correct |
151 |
Correct |
34 ms |
63324 KB |
Output is correct |
152 |
Correct |
33 ms |
63252 KB |
Output is correct |
153 |
Correct |
31 ms |
63448 KB |
Output is correct |
154 |
Correct |
49 ms |
65616 KB |
Output is correct |
155 |
Correct |
34 ms |
63336 KB |
Output is correct |
156 |
Correct |
33 ms |
66568 KB |
Output is correct |
157 |
Correct |
46 ms |
65472 KB |
Output is correct |
158 |
Correct |
32 ms |
67788 KB |
Output is correct |
159 |
Correct |
60 ms |
65944 KB |
Output is correct |
160 |
Correct |
42 ms |
65672 KB |
Output is correct |
161 |
Correct |
33 ms |
66516 KB |
Output is correct |
162 |
Correct |
37 ms |
67492 KB |
Output is correct |
163 |
Correct |
32 ms |
67696 KB |
Output is correct |
164 |
Correct |
43 ms |
65612 KB |
Output is correct |
165 |
Correct |
69 ms |
65612 KB |
Output is correct |
166 |
Correct |
59 ms |
65916 KB |
Output is correct |
167 |
Correct |
50 ms |
65784 KB |
Output is correct |
168 |
Correct |
64 ms |
66252 KB |
Output is correct |
169 |
Correct |
49 ms |
66264 KB |
Output is correct |
170 |
Correct |
53 ms |
68648 KB |
Output is correct |
171 |
Correct |
44 ms |
66604 KB |
Output is correct |
172 |
Correct |
59 ms |
66348 KB |
Output is correct |
173 |
Correct |
32 ms |
65720 KB |
Output is correct |
174 |
Correct |
39 ms |
67476 KB |
Output is correct |
175 |
Correct |
94 ms |
68684 KB |
Output is correct |
176 |
Correct |
93 ms |
70308 KB |
Output is correct |
177 |
Correct |
158 ms |
70608 KB |
Output is correct |
178 |
Correct |
44 ms |
72884 KB |
Output is correct |
179 |
Correct |
197 ms |
74140 KB |
Output is correct |
180 |
Correct |
349 ms |
76656 KB |
Output is correct |
181 |
Correct |
352 ms |
87156 KB |
Output is correct |
182 |
Correct |
329 ms |
104304 KB |
Output is correct |
183 |
Correct |
264 ms |
83664 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
35 ms |
63136 KB |
Output is correct |
2 |
Correct |
35 ms |
63056 KB |
Output is correct |
3 |
Correct |
27 ms |
63040 KB |
Output is correct |
4 |
Correct |
36 ms |
63068 KB |
Output is correct |
5 |
Correct |
27 ms |
63056 KB |
Output is correct |
6 |
Correct |
28 ms |
63236 KB |
Output is correct |
7 |
Correct |
33 ms |
63112 KB |
Output is correct |
8 |
Correct |
27 ms |
63168 KB |
Output is correct |
9 |
Correct |
27 ms |
63036 KB |
Output is correct |
10 |
Correct |
34 ms |
63056 KB |
Output is correct |
11 |
Correct |
27 ms |
63060 KB |
Output is correct |
12 |
Correct |
27 ms |
63232 KB |
Output is correct |
13 |
Correct |
27 ms |
63248 KB |
Output is correct |
14 |
Correct |
28 ms |
63056 KB |
Output is correct |
15 |
Correct |
27 ms |
63008 KB |
Output is correct |
16 |
Correct |
28 ms |
63228 KB |
Output is correct |
17 |
Correct |
33 ms |
63056 KB |
Output is correct |
18 |
Correct |
33 ms |
63076 KB |
Output is correct |
19 |
Correct |
34 ms |
63316 KB |
Output is correct |
20 |
Correct |
34 ms |
63312 KB |
Output is correct |
21 |
Correct |
30 ms |
63960 KB |
Output is correct |
22 |
Correct |
36 ms |
63448 KB |
Output is correct |
23 |
Correct |
43 ms |
63316 KB |
Output is correct |
24 |
Correct |
32 ms |
63324 KB |
Output is correct |
25 |
Correct |
35 ms |
63424 KB |
Output is correct |
26 |
Correct |
30 ms |
63184 KB |
Output is correct |
27 |
Correct |
28 ms |
63256 KB |
Output is correct |
28 |
Correct |
30 ms |
63324 KB |
Output is correct |
29 |
Correct |
46 ms |
65684 KB |
Output is correct |
30 |
Correct |
35 ms |
63264 KB |
Output is correct |
31 |
Correct |
37 ms |
67788 KB |
Output is correct |
32 |
Correct |
58 ms |
65880 KB |
Output is correct |
33 |
Correct |
42 ms |
65620 KB |
Output is correct |
34 |
Correct |
37 ms |
65612 KB |
Output is correct |
35 |
Correct |
50 ms |
65516 KB |
Output is correct |
36 |
Correct |
41 ms |
66588 KB |
Output is correct |
37 |
Correct |
54 ms |
66180 KB |
Output is correct |
38 |
Correct |
29 ms |
65600 KB |
Output is correct |
39 |
Correct |
304 ms |
73412 KB |
Output is correct |
40 |
Correct |
36 ms |
65364 KB |
Output is correct |
41 |
Correct |
44 ms |
65652 KB |
Output is correct |
42 |
Correct |
67 ms |
67836 KB |
Output is correct |
43 |
Correct |
70 ms |
67748 KB |
Output is correct |
44 |
Correct |
71 ms |
70248 KB |
Output is correct |
45 |
Correct |
73 ms |
70420 KB |
Output is correct |
46 |
Correct |
42 ms |
77508 KB |
Output is correct |
47 |
Correct |
354 ms |
74072 KB |
Output is correct |
48 |
Correct |
231 ms |
73120 KB |
Output is correct |
49 |
Correct |
70 ms |
73016 KB |
Output is correct |
50 |
Correct |
151 ms |
73040 KB |
Output is correct |
51 |
Correct |
265 ms |
78840 KB |
Output is correct |
52 |
Correct |
200 ms |
75296 KB |
Output is correct |
53 |
Correct |
237 ms |
73740 KB |
Output is correct |
54 |
Correct |
28 ms |
63236 KB |
Output is correct |
55 |
Correct |
28 ms |
63068 KB |
Output is correct |
56 |
Correct |
32 ms |
63060 KB |
Output is correct |
57 |
Correct |
28 ms |
63184 KB |
Output is correct |
58 |
Correct |
35 ms |
63052 KB |
Output is correct |
59 |
Correct |
27 ms |
63068 KB |
Output is correct |
60 |
Correct |
28 ms |
63088 KB |
Output is correct |
61 |
Correct |
36 ms |
63076 KB |
Output is correct |
62 |
Correct |
34 ms |
63056 KB |
Output is correct |
63 |
Correct |
32 ms |
63128 KB |
Output is correct |
64 |
Correct |
36 ms |
63252 KB |
Output is correct |
65 |
Correct |
35 ms |
63060 KB |
Output is correct |
66 |
Correct |
35 ms |
63244 KB |
Output is correct |
67 |
Correct |
35 ms |
63132 KB |
Output is correct |
68 |
Correct |
36 ms |
63004 KB |
Output is correct |
69 |
Correct |
35 ms |
63232 KB |
Output is correct |
70 |
Correct |
28 ms |
63056 KB |
Output is correct |
71 |
Correct |
28 ms |
63068 KB |
Output is correct |
72 |
Correct |
28 ms |
63068 KB |
Output is correct |
73 |
Correct |
29 ms |
63268 KB |
Output is correct |
74 |
Correct |
31 ms |
63240 KB |
Output is correct |
75 |
Correct |
37 ms |
63068 KB |
Output is correct |
76 |
Correct |
32 ms |
63076 KB |
Output is correct |
77 |
Correct |
34 ms |
63056 KB |
Output is correct |
78 |
Correct |
30 ms |
63272 KB |
Output is correct |
79 |
Correct |
32 ms |
63044 KB |
Output is correct |
80 |
Correct |
30 ms |
63060 KB |
Output is correct |
81 |
Correct |
31 ms |
63068 KB |
Output is correct |
82 |
Correct |
29 ms |
63176 KB |
Output is correct |
83 |
Correct |
31 ms |
63060 KB |
Output is correct |
84 |
Correct |
29 ms |
63252 KB |
Output is correct |
85 |
Correct |
45 ms |
63060 KB |
Output is correct |
86 |
Correct |
29 ms |
63052 KB |
Output is correct |
87 |
Correct |
35 ms |
63136 KB |
Output is correct |
88 |
Correct |
39 ms |
63196 KB |
Output is correct |
89 |
Correct |
48 ms |
63056 KB |
Output is correct |
90 |
Correct |
48 ms |
63148 KB |
Output is correct |
91 |
Correct |
34 ms |
63092 KB |
Output is correct |
92 |
Correct |
28 ms |
63068 KB |
Output is correct |
93 |
Correct |
27 ms |
63068 KB |
Output is correct |
94 |
Correct |
47 ms |
63048 KB |
Output is correct |
95 |
Correct |
27 ms |
63208 KB |
Output is correct |
96 |
Correct |
31 ms |
63116 KB |
Output is correct |
97 |
Correct |
34 ms |
63408 KB |
Output is correct |
98 |
Correct |
28 ms |
63056 KB |
Output is correct |
99 |
Correct |
27 ms |
63068 KB |
Output is correct |
100 |
Correct |
45 ms |
63036 KB |
Output is correct |
101 |
Correct |
37 ms |
63068 KB |
Output is correct |
102 |
Correct |
37 ms |
63240 KB |
Output is correct |
103 |
Correct |
45 ms |
63144 KB |
Output is correct |
104 |
Correct |
29 ms |
63000 KB |
Output is correct |
105 |
Correct |
30 ms |
63064 KB |
Output is correct |
106 |
Correct |
30 ms |
63068 KB |
Output is correct |
107 |
Correct |
28 ms |
63068 KB |
Output is correct |
108 |
Correct |
28 ms |
63088 KB |
Output is correct |
109 |
Correct |
27 ms |
63064 KB |
Output is correct |
110 |
Correct |
28 ms |
63280 KB |
Output is correct |
111 |
Correct |
36 ms |
63704 KB |
Output is correct |
112 |
Correct |
29 ms |
63960 KB |
Output is correct |
113 |
Correct |
30 ms |
63976 KB |
Output is correct |
114 |
Correct |
28 ms |
63988 KB |
Output is correct |
115 |
Correct |
37 ms |
63956 KB |
Output is correct |
116 |
Correct |
35 ms |
64500 KB |
Output is correct |
117 |
Correct |
30 ms |
63312 KB |
Output is correct |
118 |
Correct |
29 ms |
63316 KB |
Output is correct |
119 |
Correct |
36 ms |
66704 KB |
Output is correct |
120 |
Correct |
31 ms |
67800 KB |
Output is correct |
121 |
Correct |
31 ms |
66572 KB |
Output is correct |
122 |
Correct |
32 ms |
67608 KB |
Output is correct |
123 |
Correct |
43 ms |
67480 KB |
Output is correct |
124 |
Correct |
40 ms |
70104 KB |
Output is correct |
125 |
Correct |
68 ms |
82280 KB |
Output is correct |
126 |
Correct |
56 ms |
78216 KB |
Output is correct |
127 |
Correct |
85 ms |
91396 KB |
Output is correct |
128 |
Correct |
92 ms |
89956 KB |
Output is correct |
129 |
Correct |
70 ms |
89468 KB |
Output is correct |
130 |
Correct |
81 ms |
81856 KB |
Output is correct |
131 |
Correct |
81 ms |
81684 KB |
Output is correct |
132 |
Correct |
34 ms |
63312 KB |
Output is correct |
133 |
Correct |
31 ms |
63076 KB |
Output is correct |
134 |
Correct |
31 ms |
63068 KB |
Output is correct |
135 |
Correct |
30 ms |
63248 KB |
Output is correct |
136 |
Correct |
42 ms |
63240 KB |
Output is correct |
137 |
Correct |
29 ms |
63708 KB |
Output is correct |
138 |
Correct |
29 ms |
63792 KB |
Output is correct |
139 |
Correct |
36 ms |
63580 KB |
Output is correct |
140 |
Correct |
37 ms |
63252 KB |
Output is correct |
141 |
Correct |
29 ms |
63956 KB |
Output is correct |
142 |
Correct |
29 ms |
63996 KB |
Output is correct |
143 |
Correct |
37 ms |
63764 KB |
Output is correct |
144 |
Correct |
34 ms |
63412 KB |
Output is correct |
145 |
Correct |
35 ms |
63320 KB |
Output is correct |
146 |
Correct |
33 ms |
63404 KB |
Output is correct |
147 |
Correct |
35 ms |
63316 KB |
Output is correct |
148 |
Correct |
33 ms |
63664 KB |
Output is correct |
149 |
Correct |
47 ms |
64036 KB |
Output is correct |
150 |
Correct |
35 ms |
64656 KB |
Output is correct |
151 |
Correct |
34 ms |
63324 KB |
Output is correct |
152 |
Correct |
33 ms |
63252 KB |
Output is correct |
153 |
Correct |
31 ms |
63448 KB |
Output is correct |
154 |
Correct |
49 ms |
65616 KB |
Output is correct |
155 |
Correct |
34 ms |
63336 KB |
Output is correct |
156 |
Correct |
33 ms |
66568 KB |
Output is correct |
157 |
Correct |
46 ms |
65472 KB |
Output is correct |
158 |
Correct |
32 ms |
67788 KB |
Output is correct |
159 |
Correct |
60 ms |
65944 KB |
Output is correct |
160 |
Correct |
42 ms |
65672 KB |
Output is correct |
161 |
Correct |
33 ms |
66516 KB |
Output is correct |
162 |
Correct |
37 ms |
67492 KB |
Output is correct |
163 |
Correct |
32 ms |
67696 KB |
Output is correct |
164 |
Correct |
43 ms |
65612 KB |
Output is correct |
165 |
Correct |
69 ms |
65612 KB |
Output is correct |
166 |
Correct |
59 ms |
65916 KB |
Output is correct |
167 |
Correct |
50 ms |
65784 KB |
Output is correct |
168 |
Correct |
64 ms |
66252 KB |
Output is correct |
169 |
Correct |
49 ms |
66264 KB |
Output is correct |
170 |
Correct |
53 ms |
68648 KB |
Output is correct |
171 |
Correct |
44 ms |
66604 KB |
Output is correct |
172 |
Correct |
59 ms |
66348 KB |
Output is correct |
173 |
Correct |
32 ms |
65720 KB |
Output is correct |
174 |
Correct |
39 ms |
67476 KB |
Output is correct |
175 |
Correct |
94 ms |
68684 KB |
Output is correct |
176 |
Correct |
93 ms |
70308 KB |
Output is correct |
177 |
Correct |
158 ms |
70608 KB |
Output is correct |
178 |
Correct |
44 ms |
72884 KB |
Output is correct |
179 |
Correct |
197 ms |
74140 KB |
Output is correct |
180 |
Correct |
349 ms |
76656 KB |
Output is correct |
181 |
Correct |
352 ms |
87156 KB |
Output is correct |
182 |
Correct |
329 ms |
104304 KB |
Output is correct |
183 |
Correct |
264 ms |
83664 KB |
Output is correct |
184 |
Correct |
599 ms |
85244 KB |
Output is correct |
185 |
Correct |
112 ms |
75588 KB |
Output is correct |
186 |
Correct |
72 ms |
87436 KB |
Output is correct |
187 |
Correct |
57 ms |
83764 KB |
Output is correct |
188 |
Correct |
159 ms |
118532 KB |
Output is correct |
189 |
Correct |
580 ms |
86328 KB |
Output is correct |
190 |
Correct |
226 ms |
84864 KB |
Output is correct |
191 |
Correct |
187 ms |
119280 KB |
Output is correct |
192 |
Correct |
168 ms |
115792 KB |
Output is correct |
193 |
Correct |
101 ms |
116844 KB |
Output is correct |
194 |
Correct |
163 ms |
84772 KB |
Output is correct |
195 |
Correct |
329 ms |
82428 KB |
Output is correct |
196 |
Correct |
486 ms |
86788 KB |
Output is correct |
197 |
Correct |
247 ms |
90792 KB |
Output is correct |
198 |
Correct |
387 ms |
103560 KB |
Output is correct |
199 |
Correct |
420 ms |
97616 KB |
Output is correct |
200 |
Correct |
269 ms |
91116 KB |
Output is correct |
201 |
Correct |
459 ms |
88068 KB |
Output is correct |
202 |
Correct |
572 ms |
85780 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
35 ms |
63136 KB |
Output is correct |
2 |
Correct |
35 ms |
63056 KB |
Output is correct |
3 |
Correct |
27 ms |
63040 KB |
Output is correct |
4 |
Correct |
36 ms |
63068 KB |
Output is correct |
5 |
Correct |
27 ms |
63056 KB |
Output is correct |
6 |
Correct |
28 ms |
63236 KB |
Output is correct |
7 |
Correct |
33 ms |
63112 KB |
Output is correct |
8 |
Correct |
27 ms |
63168 KB |
Output is correct |
9 |
Correct |
27 ms |
63036 KB |
Output is correct |
10 |
Correct |
34 ms |
63056 KB |
Output is correct |
11 |
Correct |
27 ms |
63060 KB |
Output is correct |
12 |
Correct |
27 ms |
63232 KB |
Output is correct |
13 |
Correct |
27 ms |
63248 KB |
Output is correct |
14 |
Correct |
28 ms |
63056 KB |
Output is correct |
15 |
Correct |
27 ms |
63008 KB |
Output is correct |
16 |
Correct |
28 ms |
63228 KB |
Output is correct |
17 |
Correct |
33 ms |
63056 KB |
Output is correct |
18 |
Correct |
33 ms |
63076 KB |
Output is correct |
19 |
Correct |
34 ms |
63316 KB |
Output is correct |
20 |
Correct |
34 ms |
63312 KB |
Output is correct |
21 |
Correct |
30 ms |
63960 KB |
Output is correct |
22 |
Correct |
36 ms |
63448 KB |
Output is correct |
23 |
Correct |
43 ms |
63316 KB |
Output is correct |
24 |
Correct |
32 ms |
63324 KB |
Output is correct |
25 |
Correct |
35 ms |
63424 KB |
Output is correct |
26 |
Correct |
30 ms |
63184 KB |
Output is correct |
27 |
Correct |
28 ms |
63256 KB |
Output is correct |
28 |
Correct |
30 ms |
63324 KB |
Output is correct |
29 |
Correct |
46 ms |
65684 KB |
Output is correct |
30 |
Correct |
35 ms |
63264 KB |
Output is correct |
31 |
Correct |
37 ms |
67788 KB |
Output is correct |
32 |
Correct |
58 ms |
65880 KB |
Output is correct |
33 |
Correct |
42 ms |
65620 KB |
Output is correct |
34 |
Correct |
37 ms |
65612 KB |
Output is correct |
35 |
Correct |
50 ms |
65516 KB |
Output is correct |
36 |
Correct |
41 ms |
66588 KB |
Output is correct |
37 |
Correct |
54 ms |
66180 KB |
Output is correct |
38 |
Correct |
29 ms |
65600 KB |
Output is correct |
39 |
Correct |
304 ms |
73412 KB |
Output is correct |
40 |
Correct |
36 ms |
65364 KB |
Output is correct |
41 |
Correct |
44 ms |
65652 KB |
Output is correct |
42 |
Correct |
67 ms |
67836 KB |
Output is correct |
43 |
Correct |
70 ms |
67748 KB |
Output is correct |
44 |
Correct |
71 ms |
70248 KB |
Output is correct |
45 |
Correct |
73 ms |
70420 KB |
Output is correct |
46 |
Correct |
42 ms |
77508 KB |
Output is correct |
47 |
Correct |
354 ms |
74072 KB |
Output is correct |
48 |
Correct |
231 ms |
73120 KB |
Output is correct |
49 |
Correct |
70 ms |
73016 KB |
Output is correct |
50 |
Correct |
151 ms |
73040 KB |
Output is correct |
51 |
Correct |
265 ms |
78840 KB |
Output is correct |
52 |
Correct |
200 ms |
75296 KB |
Output is correct |
53 |
Correct |
237 ms |
73740 KB |
Output is correct |
54 |
Correct |
28 ms |
63236 KB |
Output is correct |
55 |
Correct |
28 ms |
63068 KB |
Output is correct |
56 |
Correct |
32 ms |
63060 KB |
Output is correct |
57 |
Correct |
28 ms |
63184 KB |
Output is correct |
58 |
Correct |
35 ms |
63052 KB |
Output is correct |
59 |
Correct |
27 ms |
63068 KB |
Output is correct |
60 |
Correct |
28 ms |
63088 KB |
Output is correct |
61 |
Correct |
36 ms |
63076 KB |
Output is correct |
62 |
Correct |
34 ms |
63056 KB |
Output is correct |
63 |
Correct |
32 ms |
63128 KB |
Output is correct |
64 |
Correct |
36 ms |
63252 KB |
Output is correct |
65 |
Correct |
35 ms |
63060 KB |
Output is correct |
66 |
Correct |
35 ms |
63244 KB |
Output is correct |
67 |
Correct |
35 ms |
63132 KB |
Output is correct |
68 |
Correct |
36 ms |
63004 KB |
Output is correct |
69 |
Correct |
35 ms |
63232 KB |
Output is correct |
70 |
Correct |
28 ms |
63056 KB |
Output is correct |
71 |
Correct |
28 ms |
63068 KB |
Output is correct |
72 |
Correct |
28 ms |
63068 KB |
Output is correct |
73 |
Correct |
29 ms |
63268 KB |
Output is correct |
74 |
Correct |
31 ms |
63240 KB |
Output is correct |
75 |
Correct |
37 ms |
63068 KB |
Output is correct |
76 |
Correct |
32 ms |
63076 KB |
Output is correct |
77 |
Correct |
34 ms |
63056 KB |
Output is correct |
78 |
Correct |
30 ms |
63272 KB |
Output is correct |
79 |
Correct |
32 ms |
63044 KB |
Output is correct |
80 |
Correct |
30 ms |
63060 KB |
Output is correct |
81 |
Correct |
31 ms |
63068 KB |
Output is correct |
82 |
Correct |
29 ms |
63176 KB |
Output is correct |
83 |
Correct |
31 ms |
63060 KB |
Output is correct |
84 |
Correct |
29 ms |
63252 KB |
Output is correct |
85 |
Correct |
45 ms |
63060 KB |
Output is correct |
86 |
Correct |
29 ms |
63052 KB |
Output is correct |
87 |
Correct |
35 ms |
63136 KB |
Output is correct |
88 |
Correct |
39 ms |
63196 KB |
Output is correct |
89 |
Correct |
48 ms |
63056 KB |
Output is correct |
90 |
Correct |
48 ms |
63148 KB |
Output is correct |
91 |
Correct |
34 ms |
63092 KB |
Output is correct |
92 |
Correct |
28 ms |
63068 KB |
Output is correct |
93 |
Correct |
27 ms |
63068 KB |
Output is correct |
94 |
Correct |
47 ms |
63048 KB |
Output is correct |
95 |
Correct |
27 ms |
63208 KB |
Output is correct |
96 |
Correct |
31 ms |
63116 KB |
Output is correct |
97 |
Correct |
34 ms |
63408 KB |
Output is correct |
98 |
Correct |
28 ms |
63056 KB |
Output is correct |
99 |
Correct |
27 ms |
63068 KB |
Output is correct |
100 |
Correct |
45 ms |
63036 KB |
Output is correct |
101 |
Correct |
37 ms |
63068 KB |
Output is correct |
102 |
Correct |
37 ms |
63240 KB |
Output is correct |
103 |
Correct |
45 ms |
63144 KB |
Output is correct |
104 |
Correct |
29 ms |
63000 KB |
Output is correct |
105 |
Correct |
30 ms |
63064 KB |
Output is correct |
106 |
Correct |
30 ms |
63068 KB |
Output is correct |
107 |
Correct |
28 ms |
63068 KB |
Output is correct |
108 |
Correct |
28 ms |
63088 KB |
Output is correct |
109 |
Correct |
27 ms |
63064 KB |
Output is correct |
110 |
Correct |
28 ms |
63280 KB |
Output is correct |
111 |
Correct |
36 ms |
63704 KB |
Output is correct |
112 |
Correct |
29 ms |
63960 KB |
Output is correct |
113 |
Correct |
30 ms |
63976 KB |
Output is correct |
114 |
Correct |
28 ms |
63988 KB |
Output is correct |
115 |
Correct |
37 ms |
63956 KB |
Output is correct |
116 |
Correct |
35 ms |
64500 KB |
Output is correct |
117 |
Correct |
30 ms |
63312 KB |
Output is correct |
118 |
Correct |
29 ms |
63316 KB |
Output is correct |
119 |
Correct |
36 ms |
66704 KB |
Output is correct |
120 |
Correct |
31 ms |
67800 KB |
Output is correct |
121 |
Correct |
31 ms |
66572 KB |
Output is correct |
122 |
Correct |
32 ms |
67608 KB |
Output is correct |
123 |
Correct |
43 ms |
67480 KB |
Output is correct |
124 |
Correct |
40 ms |
70104 KB |
Output is correct |
125 |
Correct |
68 ms |
82280 KB |
Output is correct |
126 |
Correct |
56 ms |
78216 KB |
Output is correct |
127 |
Correct |
85 ms |
91396 KB |
Output is correct |
128 |
Correct |
92 ms |
89956 KB |
Output is correct |
129 |
Correct |
70 ms |
89468 KB |
Output is correct |
130 |
Correct |
81 ms |
81856 KB |
Output is correct |
131 |
Correct |
81 ms |
81684 KB |
Output is correct |
132 |
Correct |
34 ms |
63312 KB |
Output is correct |
133 |
Correct |
31 ms |
63076 KB |
Output is correct |
134 |
Correct |
31 ms |
63068 KB |
Output is correct |
135 |
Correct |
30 ms |
63248 KB |
Output is correct |
136 |
Correct |
42 ms |
63240 KB |
Output is correct |
137 |
Correct |
29 ms |
63708 KB |
Output is correct |
138 |
Correct |
29 ms |
63792 KB |
Output is correct |
139 |
Correct |
36 ms |
63580 KB |
Output is correct |
140 |
Correct |
37 ms |
63252 KB |
Output is correct |
141 |
Correct |
29 ms |
63956 KB |
Output is correct |
142 |
Correct |
29 ms |
63996 KB |
Output is correct |
143 |
Correct |
37 ms |
63764 KB |
Output is correct |
144 |
Correct |
34 ms |
63412 KB |
Output is correct |
145 |
Correct |
35 ms |
63320 KB |
Output is correct |
146 |
Correct |
33 ms |
63404 KB |
Output is correct |
147 |
Correct |
35 ms |
63316 KB |
Output is correct |
148 |
Correct |
33 ms |
63664 KB |
Output is correct |
149 |
Correct |
47 ms |
64036 KB |
Output is correct |
150 |
Correct |
35 ms |
64656 KB |
Output is correct |
151 |
Correct |
34 ms |
63324 KB |
Output is correct |
152 |
Correct |
33 ms |
63252 KB |
Output is correct |
153 |
Correct |
31 ms |
63448 KB |
Output is correct |
154 |
Correct |
49 ms |
65616 KB |
Output is correct |
155 |
Correct |
34 ms |
63336 KB |
Output is correct |
156 |
Correct |
33 ms |
66568 KB |
Output is correct |
157 |
Correct |
46 ms |
65472 KB |
Output is correct |
158 |
Correct |
32 ms |
67788 KB |
Output is correct |
159 |
Correct |
60 ms |
65944 KB |
Output is correct |
160 |
Correct |
42 ms |
65672 KB |
Output is correct |
161 |
Correct |
33 ms |
66516 KB |
Output is correct |
162 |
Correct |
37 ms |
67492 KB |
Output is correct |
163 |
Correct |
32 ms |
67696 KB |
Output is correct |
164 |
Correct |
43 ms |
65612 KB |
Output is correct |
165 |
Correct |
69 ms |
65612 KB |
Output is correct |
166 |
Correct |
59 ms |
65916 KB |
Output is correct |
167 |
Correct |
50 ms |
65784 KB |
Output is correct |
168 |
Correct |
64 ms |
66252 KB |
Output is correct |
169 |
Correct |
49 ms |
66264 KB |
Output is correct |
170 |
Correct |
53 ms |
68648 KB |
Output is correct |
171 |
Correct |
44 ms |
66604 KB |
Output is correct |
172 |
Correct |
59 ms |
66348 KB |
Output is correct |
173 |
Correct |
32 ms |
65720 KB |
Output is correct |
174 |
Correct |
39 ms |
67476 KB |
Output is correct |
175 |
Correct |
94 ms |
68684 KB |
Output is correct |
176 |
Correct |
93 ms |
70308 KB |
Output is correct |
177 |
Correct |
158 ms |
70608 KB |
Output is correct |
178 |
Correct |
44 ms |
72884 KB |
Output is correct |
179 |
Correct |
197 ms |
74140 KB |
Output is correct |
180 |
Correct |
349 ms |
76656 KB |
Output is correct |
181 |
Correct |
352 ms |
87156 KB |
Output is correct |
182 |
Correct |
329 ms |
104304 KB |
Output is correct |
183 |
Correct |
264 ms |
83664 KB |
Output is correct |
184 |
Correct |
599 ms |
85244 KB |
Output is correct |
185 |
Correct |
112 ms |
75588 KB |
Output is correct |
186 |
Correct |
72 ms |
87436 KB |
Output is correct |
187 |
Correct |
57 ms |
83764 KB |
Output is correct |
188 |
Correct |
159 ms |
118532 KB |
Output is correct |
189 |
Correct |
580 ms |
86328 KB |
Output is correct |
190 |
Correct |
226 ms |
84864 KB |
Output is correct |
191 |
Correct |
187 ms |
119280 KB |
Output is correct |
192 |
Correct |
168 ms |
115792 KB |
Output is correct |
193 |
Correct |
101 ms |
116844 KB |
Output is correct |
194 |
Correct |
163 ms |
84772 KB |
Output is correct |
195 |
Correct |
329 ms |
82428 KB |
Output is correct |
196 |
Correct |
486 ms |
86788 KB |
Output is correct |
197 |
Correct |
247 ms |
90792 KB |
Output is correct |
198 |
Correct |
387 ms |
103560 KB |
Output is correct |
199 |
Correct |
420 ms |
97616 KB |
Output is correct |
200 |
Correct |
269 ms |
91116 KB |
Output is correct |
201 |
Correct |
459 ms |
88068 KB |
Output is correct |
202 |
Correct |
572 ms |
85780 KB |
Output is correct |
203 |
Correct |
1149 ms |
100816 KB |
Output is correct |
204 |
Correct |
481 ms |
192428 KB |
Output is correct |
205 |
Correct |
681 ms |
90804 KB |
Output is correct |
206 |
Correct |
252 ms |
100560 KB |
Output is correct |
207 |
Correct |
221 ms |
167140 KB |
Output is correct |
208 |
Correct |
1330 ms |
103144 KB |
Output is correct |
209 |
Correct |
944 ms |
100508 KB |
Output is correct |
210 |
Correct |
211 ms |
134888 KB |
Output is correct |
211 |
Correct |
265 ms |
163508 KB |
Output is correct |
212 |
Correct |
245 ms |
165448 KB |
Output is correct |
213 |
Correct |
237 ms |
100232 KB |
Output is correct |
214 |
Correct |
591 ms |
100156 KB |
Output is correct |
215 |
Correct |
1126 ms |
104136 KB |
Output is correct |
216 |
Correct |
1307 ms |
115412 KB |
Output is correct |
217 |
Correct |
1684 ms |
146192 KB |
Output is correct |
218 |
Correct |
1080 ms |
206680 KB |
Output is correct |
219 |
Correct |
716 ms |
187160 KB |
Output is correct |
220 |
Correct |
105 ms |
118056 KB |
Output is correct |
221 |
Correct |
207 ms |
133016 KB |
Output is correct |
222 |
Correct |
1092 ms |
307672 KB |
Output is correct |
223 |
Correct |
1367 ms |
112080 KB |
Output is correct |
224 |
Correct |
1193 ms |
106324 KB |
Output is correct |
225 |
Correct |
566 ms |
101736 KB |
Output is correct |