# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
932887 |
2024-02-24T10:50:24 Z |
Pring |
Maze (JOI23_ho_t3) |
C++17 |
|
1020 ms |
399404 KB |
#include <bits/stdc++.h>
using namespace std;
#ifdef MIKU
#define debug(x...) cout << "[" << #x << "] : ", dout(x)
void dout() { cout << endl; }
template <typename T, typename ...U>
void dout(T t, U ...u) { cout << t << (sizeof...(u) ? ", " : ""); dout(u...); }
#else
#define debug(...) 39
#endif
// #define int long long
#define fs first
#define sc second
#define mp make_pair
#define FOR(i, j, k) for (int i = j, Z = k; i < Z; i++)
typedef pair<int, int> pii;
const int MXN = 6000005, LAYER = 8;
const pii D[4] = {mp(1, 0), mp(-1, 0), mp(0, 1), mp(0, -1)};
int R, C, N;
pii sr, to;
vector<string> s;
int K;
int dis[MXN * LAYER];
vector<int> v0, v1;
int cnt;
inline int cvt(pii p) {
return p.fs * C + p.sc;
}
inline pii cvt(int x) {
return mp(x / C, x % C);
}
inline pii operator+(pii a, pii b) {
return mp(a.fs + b.fs, a.sc + b.sc);
}
inline bool OUT(pii p) {
if (!(0 <= p.fs && p.fs < R)) return true;
if (!(0 <= p.sc && p.sc < C)) return true;
return false;
}
namespace EDGE {
inline int cvt3(int l, int x, int y) {
return l * R * C + x * C + y;
}
inline void PUSH_EDGE(int sr, int to, int val) {
(val ? v1 : v0).push_back(to);
}
void E0(pii p) {
FOR(d, 0, 4) {
pii nxt = p + D[d];
if (OUT(nxt)) continue;
if (s[p.fs][p.sc] == '.' && s[nxt.fs][nxt.sc] == '.') PUSH_EDGE(cvt3(0, p.fs, p.sc), cvt3(0, nxt.fs, nxt.sc), 0);
PUSH_EDGE(cvt3(0, p.fs, p.sc), cvt3(1, nxt.fs, nxt.sc), 1);
}
}
void E1(pii p) {
int l = max(0, p.fs - (N - 1)), r = min(R, p.fs + N);
int y = p.sc, sr = cvt3(1, p.fs, p.sc);
if (r - l == K) {
PUSH_EDGE(sr, cvt3(2, l, y), 0);
PUSH_EDGE(sr, cvt3(3, r - 1, y), 0);
return;
}
if (r == R) {
PUSH_EDGE(sr, cvt3(2, l, y), 0);
int m = (l ? (l - 1) / K * K + K : 0);
if (m < R) PUSH_EDGE(sr, cvt3(2, m, y), 0);
return;
}
PUSH_EDGE(sr, cvt3(3, r - 1, y), 0);
}
void E2(pii p) {
PUSH_EDGE(cvt3(2, p.fs, p.sc), cvt3(4, p.fs, p.sc), 0);
if (p.fs == R - 1 || (p.fs + 1) % K == 0) return;
PUSH_EDGE(cvt3(2, p.fs, p.sc), cvt3(2, p.fs + 1, p.sc), 0);
}
void E3(pii p) {
PUSH_EDGE(cvt3(3, p.fs, p.sc), cvt3(4, p.fs, p.sc), 0);
if (p.fs % K == 0) return;
PUSH_EDGE(cvt3(3, p.fs, p.sc), cvt3(3, p.fs - 1, p.sc), 0);
}
void E4(pii p) {
int l = max(0, p.sc - (N - 1)), r = min(C, p.sc + N);
int x = p.fs, sr = cvt3(4, p.fs, p.sc);
if (r - l == K) {
PUSH_EDGE(sr, cvt3(5, x, l), 0);
PUSH_EDGE(sr, cvt3(6, x, r - 1), 0);
return;
}
if (r == C) {
PUSH_EDGE(sr, cvt3(5, x, l), 0);
int m = (l ? (l - 1) / K * K + K : 0);
if (m < C) PUSH_EDGE(sr, cvt3(5, x, m), 0);
return;
}
PUSH_EDGE(sr, cvt3(6, x, r - 1), 0);
}
void E5(pii p) {
PUSH_EDGE(cvt3(5, p.fs, p.sc), cvt3(7, p.fs, p.sc), 0);
if (p.sc + 1 == C || (p.sc + 1) % K == 0) return;
PUSH_EDGE(cvt3(5, p.fs, p.sc), cvt3(5, p.fs, p.sc + 1), 0);
}
void E6(pii p) {
PUSH_EDGE(cvt3(6, p.fs, p.sc), cvt3(7, p.fs, p.sc), 0);
if (p.sc % K == 0) return;
PUSH_EDGE(cvt3(6, p.fs, p.sc), cvt3(6, p.fs, p.sc - 1), 0);
}
void E7(pii p) {
PUSH_EDGE(cvt3(7, p.fs, p.sc), cvt3(0, p.fs, p.sc), 0);
FOR(d, 0, 4) {
pii nxt = p + D[d];
if (OUT(nxt) || s[nxt.fs][nxt.sc] == '#') continue;
PUSH_EDGE(cvt3(7, p.fs, p.sc), cvt3(0, nxt.fs, nxt.sc), 0);
}
}
void BUILD(int id) {
int l = id / (C * R);
pii p = cvt(id % (C * R));
// debug(l, p.fs, p.sc);
if (l == 0) E0(p);
else if (l == 1) E1(p);
else if (l == 2) E2(p);
else if (l == 3) E3(p);
else if (l == 4) E4(p);
else if (l == 5) E5(p);
else if (l == 6) E6(p);
else E7(p);
}
}
namespace BFS {
void GO(int sr, int to) {
fill(dis, dis + R * C * LAYER, -1);
v0.push_back(sr);
while (v0.size()) {
for (int i = 0; i < v0.size(); i++) {
int id = v0[i];
if (dis[id] != -1) continue;
dis[id] = cnt;
if (id == to) return;
EDGE::BUILD(id);
}
swap(v0, v1);
v1.clear();
cnt++;
}
}
}
void miku() {
cin >> R >> C >> N >> sr.fs >> sr.sc >> to.fs >> to.sc;
sr.fs--, sr.sc--, to.fs--, to.sc--;
K = N * 2 - 1;
s.resize(R);
FOR(i, 0, R) cin >> s[i];
// EDGE::BUILD();
BFS::GO(cvt(sr), cvt(to));
cout << dis[cvt(to)] << '\n';
}
int32_t main() {
cin.tie(0) -> sync_with_stdio(false);
cin.exceptions(iostream::failbit);
miku();
return 0;
}
Compilation message
Main.cpp: In function 'void BFS::GO(int, int)':
Main.cpp:153:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
153 | for (int i = 0; i < v0.size(); i++) {
| ~~^~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
500 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
8 ms |
2652 KB |
Output is correct |
20 |
Correct |
4 ms |
2652 KB |
Output is correct |
21 |
Correct |
4 ms |
4216 KB |
Output is correct |
22 |
Correct |
9 ms |
3160 KB |
Output is correct |
23 |
Correct |
8 ms |
2652 KB |
Output is correct |
24 |
Correct |
6 ms |
2908 KB |
Output is correct |
25 |
Correct |
5 ms |
2648 KB |
Output is correct |
26 |
Correct |
1 ms |
3160 KB |
Output is correct |
27 |
Correct |
1 ms |
2648 KB |
Output is correct |
28 |
Correct |
4 ms |
3020 KB |
Output is correct |
29 |
Correct |
21 ms |
7056 KB |
Output is correct |
30 |
Correct |
7 ms |
2648 KB |
Output is correct |
31 |
Correct |
9 ms |
14964 KB |
Output is correct |
32 |
Correct |
26 ms |
7452 KB |
Output is correct |
33 |
Correct |
18 ms |
7004 KB |
Output is correct |
34 |
Correct |
18 ms |
7144 KB |
Output is correct |
35 |
Correct |
15 ms |
6888 KB |
Output is correct |
36 |
Correct |
16 ms |
9188 KB |
Output is correct |
37 |
Correct |
21 ms |
7956 KB |
Output is correct |
38 |
Correct |
3 ms |
7260 KB |
Output is correct |
39 |
Correct |
261 ms |
49636 KB |
Output is correct |
40 |
Correct |
8 ms |
7004 KB |
Output is correct |
41 |
Correct |
10 ms |
6888 KB |
Output is correct |
42 |
Correct |
33 ms |
9052 KB |
Output is correct |
43 |
Correct |
25 ms |
9304 KB |
Output is correct |
44 |
Correct |
45 ms |
26204 KB |
Output is correct |
45 |
Correct |
50 ms |
28152 KB |
Output is correct |
46 |
Correct |
25 ms |
61880 KB |
Output is correct |
47 |
Correct |
264 ms |
50500 KB |
Output is correct |
48 |
Correct |
185 ms |
50264 KB |
Output is correct |
49 |
Correct |
109 ms |
49404 KB |
Output is correct |
50 |
Correct |
96 ms |
49404 KB |
Output is correct |
51 |
Correct |
215 ms |
58752 KB |
Output is correct |
52 |
Correct |
153 ms |
53440 KB |
Output is correct |
53 |
Correct |
183 ms |
50708 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
464 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
464 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
460 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
460 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
356 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
2780 KB |
Output is correct |
26 |
Correct |
3 ms |
3656 KB |
Output is correct |
27 |
Correct |
3 ms |
4476 KB |
Output is correct |
28 |
Correct |
3 ms |
4480 KB |
Output is correct |
29 |
Correct |
1 ms |
2908 KB |
Output is correct |
30 |
Correct |
4 ms |
4628 KB |
Output is correct |
31 |
Correct |
4 ms |
3668 KB |
Output is correct |
32 |
Correct |
1 ms |
2900 KB |
Output is correct |
33 |
Correct |
1 ms |
2908 KB |
Output is correct |
34 |
Correct |
6 ms |
8000 KB |
Output is correct |
35 |
Correct |
9 ms |
15548 KB |
Output is correct |
36 |
Correct |
7 ms |
10944 KB |
Output is correct |
37 |
Correct |
14 ms |
13744 KB |
Output is correct |
38 |
Correct |
10 ms |
10868 KB |
Output is correct |
39 |
Correct |
21 ms |
24164 KB |
Output is correct |
40 |
Correct |
58 ms |
74668 KB |
Output is correct |
41 |
Correct |
27 ms |
66728 KB |
Output is correct |
42 |
Correct |
69 ms |
104064 KB |
Output is correct |
43 |
Correct |
61 ms |
75332 KB |
Output is correct |
44 |
Correct |
100 ms |
97876 KB |
Output is correct |
45 |
Correct |
58 ms |
76208 KB |
Output is correct |
46 |
Correct |
53 ms |
73880 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
464 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
464 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
460 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
460 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
33 |
Correct |
7 ms |
2652 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
604 KB |
Output is correct |
36 |
Correct |
2 ms |
3160 KB |
Output is correct |
37 |
Correct |
5 ms |
2648 KB |
Output is correct |
38 |
Correct |
3 ms |
3716 KB |
Output is correct |
39 |
Correct |
3 ms |
4420 KB |
Output is correct |
40 |
Correct |
9 ms |
3164 KB |
Output is correct |
41 |
Correct |
8 ms |
2832 KB |
Output is correct |
42 |
Correct |
3 ms |
4480 KB |
Output is correct |
43 |
Correct |
1 ms |
3108 KB |
Output is correct |
44 |
Correct |
4 ms |
4632 KB |
Output is correct |
45 |
Correct |
6 ms |
2908 KB |
Output is correct |
46 |
Correct |
6 ms |
2652 KB |
Output is correct |
47 |
Correct |
7 ms |
2652 KB |
Output is correct |
48 |
Correct |
8 ms |
2908 KB |
Output is correct |
49 |
Correct |
6 ms |
3164 KB |
Output is correct |
50 |
Correct |
9 ms |
3416 KB |
Output is correct |
51 |
Correct |
4 ms |
3672 KB |
Output is correct |
52 |
Correct |
1 ms |
2908 KB |
Output is correct |
53 |
Correct |
1 ms |
2908 KB |
Output is correct |
54 |
Correct |
4 ms |
2908 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
464 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
464 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
460 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
460 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
348 KB |
Output is correct |
33 |
Correct |
7 ms |
2652 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
604 KB |
Output is correct |
36 |
Correct |
2 ms |
3160 KB |
Output is correct |
37 |
Correct |
5 ms |
2648 KB |
Output is correct |
38 |
Correct |
3 ms |
3716 KB |
Output is correct |
39 |
Correct |
3 ms |
4420 KB |
Output is correct |
40 |
Correct |
9 ms |
3164 KB |
Output is correct |
41 |
Correct |
8 ms |
2832 KB |
Output is correct |
42 |
Correct |
3 ms |
4480 KB |
Output is correct |
43 |
Correct |
1 ms |
3108 KB |
Output is correct |
44 |
Correct |
4 ms |
4632 KB |
Output is correct |
45 |
Correct |
6 ms |
2908 KB |
Output is correct |
46 |
Correct |
6 ms |
2652 KB |
Output is correct |
47 |
Correct |
7 ms |
2652 KB |
Output is correct |
48 |
Correct |
8 ms |
2908 KB |
Output is correct |
49 |
Correct |
6 ms |
3164 KB |
Output is correct |
50 |
Correct |
9 ms |
3416 KB |
Output is correct |
51 |
Correct |
4 ms |
3672 KB |
Output is correct |
52 |
Correct |
1 ms |
2908 KB |
Output is correct |
53 |
Correct |
1 ms |
2908 KB |
Output is correct |
54 |
Correct |
4 ms |
2908 KB |
Output is correct |
55 |
Correct |
25 ms |
7244 KB |
Output is correct |
56 |
Correct |
7 ms |
2648 KB |
Output is correct |
57 |
Correct |
6 ms |
7880 KB |
Output is correct |
58 |
Correct |
24 ms |
7004 KB |
Output is correct |
59 |
Correct |
9 ms |
16824 KB |
Output is correct |
60 |
Correct |
26 ms |
7580 KB |
Output is correct |
61 |
Correct |
18 ms |
7004 KB |
Output is correct |
62 |
Correct |
7 ms |
11200 KB |
Output is correct |
63 |
Correct |
15 ms |
14360 KB |
Output is correct |
64 |
Correct |
10 ms |
10692 KB |
Output is correct |
65 |
Correct |
18 ms |
7300 KB |
Output is correct |
66 |
Correct |
16 ms |
7144 KB |
Output is correct |
67 |
Correct |
23 ms |
7004 KB |
Output is correct |
68 |
Correct |
22 ms |
7448 KB |
Output is correct |
69 |
Correct |
24 ms |
7680 KB |
Output is correct |
70 |
Correct |
22 ms |
8132 KB |
Output is correct |
71 |
Correct |
20 ms |
10432 KB |
Output is correct |
72 |
Correct |
16 ms |
9188 KB |
Output is correct |
73 |
Correct |
21 ms |
7956 KB |
Output is correct |
74 |
Correct |
3 ms |
7516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
500 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
8 ms |
2652 KB |
Output is correct |
20 |
Correct |
4 ms |
2652 KB |
Output is correct |
21 |
Correct |
4 ms |
4216 KB |
Output is correct |
22 |
Correct |
9 ms |
3160 KB |
Output is correct |
23 |
Correct |
8 ms |
2652 KB |
Output is correct |
24 |
Correct |
6 ms |
2908 KB |
Output is correct |
25 |
Correct |
5 ms |
2648 KB |
Output is correct |
26 |
Correct |
1 ms |
3160 KB |
Output is correct |
27 |
Correct |
1 ms |
2648 KB |
Output is correct |
28 |
Correct |
4 ms |
3020 KB |
Output is correct |
29 |
Correct |
21 ms |
7056 KB |
Output is correct |
30 |
Correct |
7 ms |
2648 KB |
Output is correct |
31 |
Correct |
9 ms |
14964 KB |
Output is correct |
32 |
Correct |
26 ms |
7452 KB |
Output is correct |
33 |
Correct |
18 ms |
7004 KB |
Output is correct |
34 |
Correct |
18 ms |
7144 KB |
Output is correct |
35 |
Correct |
15 ms |
6888 KB |
Output is correct |
36 |
Correct |
16 ms |
9188 KB |
Output is correct |
37 |
Correct |
21 ms |
7956 KB |
Output is correct |
38 |
Correct |
3 ms |
7260 KB |
Output is correct |
39 |
Correct |
261 ms |
49636 KB |
Output is correct |
40 |
Correct |
8 ms |
7004 KB |
Output is correct |
41 |
Correct |
10 ms |
6888 KB |
Output is correct |
42 |
Correct |
33 ms |
9052 KB |
Output is correct |
43 |
Correct |
25 ms |
9304 KB |
Output is correct |
44 |
Correct |
45 ms |
26204 KB |
Output is correct |
45 |
Correct |
50 ms |
28152 KB |
Output is correct |
46 |
Correct |
25 ms |
61880 KB |
Output is correct |
47 |
Correct |
264 ms |
50500 KB |
Output is correct |
48 |
Correct |
185 ms |
50264 KB |
Output is correct |
49 |
Correct |
109 ms |
49404 KB |
Output is correct |
50 |
Correct |
96 ms |
49404 KB |
Output is correct |
51 |
Correct |
215 ms |
58752 KB |
Output is correct |
52 |
Correct |
153 ms |
53440 KB |
Output is correct |
53 |
Correct |
183 ms |
50708 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
464 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
464 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
460 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
460 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
356 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
344 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
2780 KB |
Output is correct |
111 |
Correct |
3 ms |
3656 KB |
Output is correct |
112 |
Correct |
3 ms |
4476 KB |
Output is correct |
113 |
Correct |
3 ms |
4480 KB |
Output is correct |
114 |
Correct |
1 ms |
2908 KB |
Output is correct |
115 |
Correct |
4 ms |
4628 KB |
Output is correct |
116 |
Correct |
4 ms |
3668 KB |
Output is correct |
117 |
Correct |
1 ms |
2900 KB |
Output is correct |
118 |
Correct |
1 ms |
2908 KB |
Output is correct |
119 |
Correct |
6 ms |
8000 KB |
Output is correct |
120 |
Correct |
9 ms |
15548 KB |
Output is correct |
121 |
Correct |
7 ms |
10944 KB |
Output is correct |
122 |
Correct |
14 ms |
13744 KB |
Output is correct |
123 |
Correct |
10 ms |
10868 KB |
Output is correct |
124 |
Correct |
21 ms |
24164 KB |
Output is correct |
125 |
Correct |
58 ms |
74668 KB |
Output is correct |
126 |
Correct |
27 ms |
66728 KB |
Output is correct |
127 |
Correct |
69 ms |
104064 KB |
Output is correct |
128 |
Correct |
61 ms |
75332 KB |
Output is correct |
129 |
Correct |
100 ms |
97876 KB |
Output is correct |
130 |
Correct |
58 ms |
76208 KB |
Output is correct |
131 |
Correct |
53 ms |
73880 KB |
Output is correct |
132 |
Correct |
7 ms |
2652 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
604 KB |
Output is correct |
135 |
Correct |
2 ms |
3160 KB |
Output is correct |
136 |
Correct |
5 ms |
2648 KB |
Output is correct |
137 |
Correct |
3 ms |
3716 KB |
Output is correct |
138 |
Correct |
3 ms |
4420 KB |
Output is correct |
139 |
Correct |
9 ms |
3164 KB |
Output is correct |
140 |
Correct |
8 ms |
2832 KB |
Output is correct |
141 |
Correct |
3 ms |
4480 KB |
Output is correct |
142 |
Correct |
1 ms |
3108 KB |
Output is correct |
143 |
Correct |
4 ms |
4632 KB |
Output is correct |
144 |
Correct |
6 ms |
2908 KB |
Output is correct |
145 |
Correct |
6 ms |
2652 KB |
Output is correct |
146 |
Correct |
7 ms |
2652 KB |
Output is correct |
147 |
Correct |
8 ms |
2908 KB |
Output is correct |
148 |
Correct |
6 ms |
3164 KB |
Output is correct |
149 |
Correct |
9 ms |
3416 KB |
Output is correct |
150 |
Correct |
4 ms |
3672 KB |
Output is correct |
151 |
Correct |
1 ms |
2908 KB |
Output is correct |
152 |
Correct |
1 ms |
2908 KB |
Output is correct |
153 |
Correct |
4 ms |
2908 KB |
Output is correct |
154 |
Correct |
25 ms |
7244 KB |
Output is correct |
155 |
Correct |
7 ms |
2648 KB |
Output is correct |
156 |
Correct |
6 ms |
7880 KB |
Output is correct |
157 |
Correct |
24 ms |
7004 KB |
Output is correct |
158 |
Correct |
9 ms |
16824 KB |
Output is correct |
159 |
Correct |
26 ms |
7580 KB |
Output is correct |
160 |
Correct |
18 ms |
7004 KB |
Output is correct |
161 |
Correct |
7 ms |
11200 KB |
Output is correct |
162 |
Correct |
15 ms |
14360 KB |
Output is correct |
163 |
Correct |
10 ms |
10692 KB |
Output is correct |
164 |
Correct |
18 ms |
7300 KB |
Output is correct |
165 |
Correct |
16 ms |
7144 KB |
Output is correct |
166 |
Correct |
23 ms |
7004 KB |
Output is correct |
167 |
Correct |
22 ms |
7448 KB |
Output is correct |
168 |
Correct |
24 ms |
7680 KB |
Output is correct |
169 |
Correct |
22 ms |
8132 KB |
Output is correct |
170 |
Correct |
20 ms |
10432 KB |
Output is correct |
171 |
Correct |
16 ms |
9188 KB |
Output is correct |
172 |
Correct |
21 ms |
7956 KB |
Output is correct |
173 |
Correct |
3 ms |
7516 KB |
Output is correct |
174 |
Correct |
11 ms |
7256 KB |
Output is correct |
175 |
Correct |
60 ms |
14152 KB |
Output is correct |
176 |
Correct |
54 ms |
26880 KB |
Output is correct |
177 |
Correct |
141 ms |
35672 KB |
Output is correct |
178 |
Correct |
21 ms |
44808 KB |
Output is correct |
179 |
Correct |
112 ms |
52048 KB |
Output is correct |
180 |
Correct |
203 ms |
53300 KB |
Output is correct |
181 |
Correct |
212 ms |
61352 KB |
Output is correct |
182 |
Correct |
248 ms |
67156 KB |
Output is correct |
183 |
Correct |
234 ms |
88672 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
500 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
8 ms |
2652 KB |
Output is correct |
20 |
Correct |
4 ms |
2652 KB |
Output is correct |
21 |
Correct |
4 ms |
4216 KB |
Output is correct |
22 |
Correct |
9 ms |
3160 KB |
Output is correct |
23 |
Correct |
8 ms |
2652 KB |
Output is correct |
24 |
Correct |
6 ms |
2908 KB |
Output is correct |
25 |
Correct |
5 ms |
2648 KB |
Output is correct |
26 |
Correct |
1 ms |
3160 KB |
Output is correct |
27 |
Correct |
1 ms |
2648 KB |
Output is correct |
28 |
Correct |
4 ms |
3020 KB |
Output is correct |
29 |
Correct |
21 ms |
7056 KB |
Output is correct |
30 |
Correct |
7 ms |
2648 KB |
Output is correct |
31 |
Correct |
9 ms |
14964 KB |
Output is correct |
32 |
Correct |
26 ms |
7452 KB |
Output is correct |
33 |
Correct |
18 ms |
7004 KB |
Output is correct |
34 |
Correct |
18 ms |
7144 KB |
Output is correct |
35 |
Correct |
15 ms |
6888 KB |
Output is correct |
36 |
Correct |
16 ms |
9188 KB |
Output is correct |
37 |
Correct |
21 ms |
7956 KB |
Output is correct |
38 |
Correct |
3 ms |
7260 KB |
Output is correct |
39 |
Correct |
261 ms |
49636 KB |
Output is correct |
40 |
Correct |
8 ms |
7004 KB |
Output is correct |
41 |
Correct |
10 ms |
6888 KB |
Output is correct |
42 |
Correct |
33 ms |
9052 KB |
Output is correct |
43 |
Correct |
25 ms |
9304 KB |
Output is correct |
44 |
Correct |
45 ms |
26204 KB |
Output is correct |
45 |
Correct |
50 ms |
28152 KB |
Output is correct |
46 |
Correct |
25 ms |
61880 KB |
Output is correct |
47 |
Correct |
264 ms |
50500 KB |
Output is correct |
48 |
Correct |
185 ms |
50264 KB |
Output is correct |
49 |
Correct |
109 ms |
49404 KB |
Output is correct |
50 |
Correct |
96 ms |
49404 KB |
Output is correct |
51 |
Correct |
215 ms |
58752 KB |
Output is correct |
52 |
Correct |
153 ms |
53440 KB |
Output is correct |
53 |
Correct |
183 ms |
50708 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
464 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
464 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
460 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
460 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
356 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
344 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
2780 KB |
Output is correct |
111 |
Correct |
3 ms |
3656 KB |
Output is correct |
112 |
Correct |
3 ms |
4476 KB |
Output is correct |
113 |
Correct |
3 ms |
4480 KB |
Output is correct |
114 |
Correct |
1 ms |
2908 KB |
Output is correct |
115 |
Correct |
4 ms |
4628 KB |
Output is correct |
116 |
Correct |
4 ms |
3668 KB |
Output is correct |
117 |
Correct |
1 ms |
2900 KB |
Output is correct |
118 |
Correct |
1 ms |
2908 KB |
Output is correct |
119 |
Correct |
6 ms |
8000 KB |
Output is correct |
120 |
Correct |
9 ms |
15548 KB |
Output is correct |
121 |
Correct |
7 ms |
10944 KB |
Output is correct |
122 |
Correct |
14 ms |
13744 KB |
Output is correct |
123 |
Correct |
10 ms |
10868 KB |
Output is correct |
124 |
Correct |
21 ms |
24164 KB |
Output is correct |
125 |
Correct |
58 ms |
74668 KB |
Output is correct |
126 |
Correct |
27 ms |
66728 KB |
Output is correct |
127 |
Correct |
69 ms |
104064 KB |
Output is correct |
128 |
Correct |
61 ms |
75332 KB |
Output is correct |
129 |
Correct |
100 ms |
97876 KB |
Output is correct |
130 |
Correct |
58 ms |
76208 KB |
Output is correct |
131 |
Correct |
53 ms |
73880 KB |
Output is correct |
132 |
Correct |
7 ms |
2652 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
604 KB |
Output is correct |
135 |
Correct |
2 ms |
3160 KB |
Output is correct |
136 |
Correct |
5 ms |
2648 KB |
Output is correct |
137 |
Correct |
3 ms |
3716 KB |
Output is correct |
138 |
Correct |
3 ms |
4420 KB |
Output is correct |
139 |
Correct |
9 ms |
3164 KB |
Output is correct |
140 |
Correct |
8 ms |
2832 KB |
Output is correct |
141 |
Correct |
3 ms |
4480 KB |
Output is correct |
142 |
Correct |
1 ms |
3108 KB |
Output is correct |
143 |
Correct |
4 ms |
4632 KB |
Output is correct |
144 |
Correct |
6 ms |
2908 KB |
Output is correct |
145 |
Correct |
6 ms |
2652 KB |
Output is correct |
146 |
Correct |
7 ms |
2652 KB |
Output is correct |
147 |
Correct |
8 ms |
2908 KB |
Output is correct |
148 |
Correct |
6 ms |
3164 KB |
Output is correct |
149 |
Correct |
9 ms |
3416 KB |
Output is correct |
150 |
Correct |
4 ms |
3672 KB |
Output is correct |
151 |
Correct |
1 ms |
2908 KB |
Output is correct |
152 |
Correct |
1 ms |
2908 KB |
Output is correct |
153 |
Correct |
4 ms |
2908 KB |
Output is correct |
154 |
Correct |
25 ms |
7244 KB |
Output is correct |
155 |
Correct |
7 ms |
2648 KB |
Output is correct |
156 |
Correct |
6 ms |
7880 KB |
Output is correct |
157 |
Correct |
24 ms |
7004 KB |
Output is correct |
158 |
Correct |
9 ms |
16824 KB |
Output is correct |
159 |
Correct |
26 ms |
7580 KB |
Output is correct |
160 |
Correct |
18 ms |
7004 KB |
Output is correct |
161 |
Correct |
7 ms |
11200 KB |
Output is correct |
162 |
Correct |
15 ms |
14360 KB |
Output is correct |
163 |
Correct |
10 ms |
10692 KB |
Output is correct |
164 |
Correct |
18 ms |
7300 KB |
Output is correct |
165 |
Correct |
16 ms |
7144 KB |
Output is correct |
166 |
Correct |
23 ms |
7004 KB |
Output is correct |
167 |
Correct |
22 ms |
7448 KB |
Output is correct |
168 |
Correct |
24 ms |
7680 KB |
Output is correct |
169 |
Correct |
22 ms |
8132 KB |
Output is correct |
170 |
Correct |
20 ms |
10432 KB |
Output is correct |
171 |
Correct |
16 ms |
9188 KB |
Output is correct |
172 |
Correct |
21 ms |
7956 KB |
Output is correct |
173 |
Correct |
3 ms |
7516 KB |
Output is correct |
174 |
Correct |
11 ms |
7256 KB |
Output is correct |
175 |
Correct |
60 ms |
14152 KB |
Output is correct |
176 |
Correct |
54 ms |
26880 KB |
Output is correct |
177 |
Correct |
141 ms |
35672 KB |
Output is correct |
178 |
Correct |
21 ms |
44808 KB |
Output is correct |
179 |
Correct |
112 ms |
52048 KB |
Output is correct |
180 |
Correct |
203 ms |
53300 KB |
Output is correct |
181 |
Correct |
212 ms |
61352 KB |
Output is correct |
182 |
Correct |
248 ms |
67156 KB |
Output is correct |
183 |
Correct |
234 ms |
88672 KB |
Output is correct |
184 |
Correct |
494 ms |
101596 KB |
Output is correct |
185 |
Correct |
84 ms |
57892 KB |
Output is correct |
186 |
Correct |
68 ms |
87696 KB |
Output is correct |
187 |
Correct |
59 ms |
86016 KB |
Output is correct |
188 |
Correct |
169 ms |
202380 KB |
Output is correct |
189 |
Correct |
424 ms |
103136 KB |
Output is correct |
190 |
Correct |
163 ms |
101548 KB |
Output is correct |
191 |
Correct |
184 ms |
202056 KB |
Output is correct |
192 |
Correct |
171 ms |
157056 KB |
Output is correct |
193 |
Correct |
113 ms |
148212 KB |
Output is correct |
194 |
Correct |
338 ms |
101624 KB |
Output is correct |
195 |
Correct |
207 ms |
101004 KB |
Output is correct |
196 |
Correct |
418 ms |
102724 KB |
Output is correct |
197 |
Correct |
206 ms |
104984 KB |
Output is correct |
198 |
Correct |
221 ms |
110844 KB |
Output is correct |
199 |
Correct |
446 ms |
119292 KB |
Output is correct |
200 |
Correct |
231 ms |
116992 KB |
Output is correct |
201 |
Correct |
409 ms |
106096 KB |
Output is correct |
202 |
Correct |
433 ms |
102344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
1 ms |
500 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
344 KB |
Output is correct |
9 |
Correct |
0 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
8 ms |
2652 KB |
Output is correct |
20 |
Correct |
4 ms |
2652 KB |
Output is correct |
21 |
Correct |
4 ms |
4216 KB |
Output is correct |
22 |
Correct |
9 ms |
3160 KB |
Output is correct |
23 |
Correct |
8 ms |
2652 KB |
Output is correct |
24 |
Correct |
6 ms |
2908 KB |
Output is correct |
25 |
Correct |
5 ms |
2648 KB |
Output is correct |
26 |
Correct |
1 ms |
3160 KB |
Output is correct |
27 |
Correct |
1 ms |
2648 KB |
Output is correct |
28 |
Correct |
4 ms |
3020 KB |
Output is correct |
29 |
Correct |
21 ms |
7056 KB |
Output is correct |
30 |
Correct |
7 ms |
2648 KB |
Output is correct |
31 |
Correct |
9 ms |
14964 KB |
Output is correct |
32 |
Correct |
26 ms |
7452 KB |
Output is correct |
33 |
Correct |
18 ms |
7004 KB |
Output is correct |
34 |
Correct |
18 ms |
7144 KB |
Output is correct |
35 |
Correct |
15 ms |
6888 KB |
Output is correct |
36 |
Correct |
16 ms |
9188 KB |
Output is correct |
37 |
Correct |
21 ms |
7956 KB |
Output is correct |
38 |
Correct |
3 ms |
7260 KB |
Output is correct |
39 |
Correct |
261 ms |
49636 KB |
Output is correct |
40 |
Correct |
8 ms |
7004 KB |
Output is correct |
41 |
Correct |
10 ms |
6888 KB |
Output is correct |
42 |
Correct |
33 ms |
9052 KB |
Output is correct |
43 |
Correct |
25 ms |
9304 KB |
Output is correct |
44 |
Correct |
45 ms |
26204 KB |
Output is correct |
45 |
Correct |
50 ms |
28152 KB |
Output is correct |
46 |
Correct |
25 ms |
61880 KB |
Output is correct |
47 |
Correct |
264 ms |
50500 KB |
Output is correct |
48 |
Correct |
185 ms |
50264 KB |
Output is correct |
49 |
Correct |
109 ms |
49404 KB |
Output is correct |
50 |
Correct |
96 ms |
49404 KB |
Output is correct |
51 |
Correct |
215 ms |
58752 KB |
Output is correct |
52 |
Correct |
153 ms |
53440 KB |
Output is correct |
53 |
Correct |
183 ms |
50708 KB |
Output is correct |
54 |
Correct |
0 ms |
344 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
464 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
464 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
460 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
460 KB |
Output is correct |
84 |
Correct |
1 ms |
344 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
356 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
344 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
0 ms |
348 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
1 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
2780 KB |
Output is correct |
111 |
Correct |
3 ms |
3656 KB |
Output is correct |
112 |
Correct |
3 ms |
4476 KB |
Output is correct |
113 |
Correct |
3 ms |
4480 KB |
Output is correct |
114 |
Correct |
1 ms |
2908 KB |
Output is correct |
115 |
Correct |
4 ms |
4628 KB |
Output is correct |
116 |
Correct |
4 ms |
3668 KB |
Output is correct |
117 |
Correct |
1 ms |
2900 KB |
Output is correct |
118 |
Correct |
1 ms |
2908 KB |
Output is correct |
119 |
Correct |
6 ms |
8000 KB |
Output is correct |
120 |
Correct |
9 ms |
15548 KB |
Output is correct |
121 |
Correct |
7 ms |
10944 KB |
Output is correct |
122 |
Correct |
14 ms |
13744 KB |
Output is correct |
123 |
Correct |
10 ms |
10868 KB |
Output is correct |
124 |
Correct |
21 ms |
24164 KB |
Output is correct |
125 |
Correct |
58 ms |
74668 KB |
Output is correct |
126 |
Correct |
27 ms |
66728 KB |
Output is correct |
127 |
Correct |
69 ms |
104064 KB |
Output is correct |
128 |
Correct |
61 ms |
75332 KB |
Output is correct |
129 |
Correct |
100 ms |
97876 KB |
Output is correct |
130 |
Correct |
58 ms |
76208 KB |
Output is correct |
131 |
Correct |
53 ms |
73880 KB |
Output is correct |
132 |
Correct |
7 ms |
2652 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
604 KB |
Output is correct |
135 |
Correct |
2 ms |
3160 KB |
Output is correct |
136 |
Correct |
5 ms |
2648 KB |
Output is correct |
137 |
Correct |
3 ms |
3716 KB |
Output is correct |
138 |
Correct |
3 ms |
4420 KB |
Output is correct |
139 |
Correct |
9 ms |
3164 KB |
Output is correct |
140 |
Correct |
8 ms |
2832 KB |
Output is correct |
141 |
Correct |
3 ms |
4480 KB |
Output is correct |
142 |
Correct |
1 ms |
3108 KB |
Output is correct |
143 |
Correct |
4 ms |
4632 KB |
Output is correct |
144 |
Correct |
6 ms |
2908 KB |
Output is correct |
145 |
Correct |
6 ms |
2652 KB |
Output is correct |
146 |
Correct |
7 ms |
2652 KB |
Output is correct |
147 |
Correct |
8 ms |
2908 KB |
Output is correct |
148 |
Correct |
6 ms |
3164 KB |
Output is correct |
149 |
Correct |
9 ms |
3416 KB |
Output is correct |
150 |
Correct |
4 ms |
3672 KB |
Output is correct |
151 |
Correct |
1 ms |
2908 KB |
Output is correct |
152 |
Correct |
1 ms |
2908 KB |
Output is correct |
153 |
Correct |
4 ms |
2908 KB |
Output is correct |
154 |
Correct |
25 ms |
7244 KB |
Output is correct |
155 |
Correct |
7 ms |
2648 KB |
Output is correct |
156 |
Correct |
6 ms |
7880 KB |
Output is correct |
157 |
Correct |
24 ms |
7004 KB |
Output is correct |
158 |
Correct |
9 ms |
16824 KB |
Output is correct |
159 |
Correct |
26 ms |
7580 KB |
Output is correct |
160 |
Correct |
18 ms |
7004 KB |
Output is correct |
161 |
Correct |
7 ms |
11200 KB |
Output is correct |
162 |
Correct |
15 ms |
14360 KB |
Output is correct |
163 |
Correct |
10 ms |
10692 KB |
Output is correct |
164 |
Correct |
18 ms |
7300 KB |
Output is correct |
165 |
Correct |
16 ms |
7144 KB |
Output is correct |
166 |
Correct |
23 ms |
7004 KB |
Output is correct |
167 |
Correct |
22 ms |
7448 KB |
Output is correct |
168 |
Correct |
24 ms |
7680 KB |
Output is correct |
169 |
Correct |
22 ms |
8132 KB |
Output is correct |
170 |
Correct |
20 ms |
10432 KB |
Output is correct |
171 |
Correct |
16 ms |
9188 KB |
Output is correct |
172 |
Correct |
21 ms |
7956 KB |
Output is correct |
173 |
Correct |
3 ms |
7516 KB |
Output is correct |
174 |
Correct |
11 ms |
7256 KB |
Output is correct |
175 |
Correct |
60 ms |
14152 KB |
Output is correct |
176 |
Correct |
54 ms |
26880 KB |
Output is correct |
177 |
Correct |
141 ms |
35672 KB |
Output is correct |
178 |
Correct |
21 ms |
44808 KB |
Output is correct |
179 |
Correct |
112 ms |
52048 KB |
Output is correct |
180 |
Correct |
203 ms |
53300 KB |
Output is correct |
181 |
Correct |
212 ms |
61352 KB |
Output is correct |
182 |
Correct |
248 ms |
67156 KB |
Output is correct |
183 |
Correct |
234 ms |
88672 KB |
Output is correct |
184 |
Correct |
494 ms |
101596 KB |
Output is correct |
185 |
Correct |
84 ms |
57892 KB |
Output is correct |
186 |
Correct |
68 ms |
87696 KB |
Output is correct |
187 |
Correct |
59 ms |
86016 KB |
Output is correct |
188 |
Correct |
169 ms |
202380 KB |
Output is correct |
189 |
Correct |
424 ms |
103136 KB |
Output is correct |
190 |
Correct |
163 ms |
101548 KB |
Output is correct |
191 |
Correct |
184 ms |
202056 KB |
Output is correct |
192 |
Correct |
171 ms |
157056 KB |
Output is correct |
193 |
Correct |
113 ms |
148212 KB |
Output is correct |
194 |
Correct |
338 ms |
101624 KB |
Output is correct |
195 |
Correct |
207 ms |
101004 KB |
Output is correct |
196 |
Correct |
418 ms |
102724 KB |
Output is correct |
197 |
Correct |
206 ms |
104984 KB |
Output is correct |
198 |
Correct |
221 ms |
110844 KB |
Output is correct |
199 |
Correct |
446 ms |
119292 KB |
Output is correct |
200 |
Correct |
231 ms |
116992 KB |
Output is correct |
201 |
Correct |
409 ms |
106096 KB |
Output is correct |
202 |
Correct |
433 ms |
102344 KB |
Output is correct |
203 |
Correct |
1020 ms |
201196 KB |
Output is correct |
204 |
Correct |
453 ms |
170164 KB |
Output is correct |
205 |
Correct |
769 ms |
133004 KB |
Output is correct |
206 |
Correct |
211 ms |
199308 KB |
Output is correct |
207 |
Correct |
361 ms |
399404 KB |
Output is correct |
208 |
Correct |
919 ms |
203708 KB |
Output is correct |
209 |
Correct |
935 ms |
201068 KB |
Output is correct |
210 |
Correct |
180 ms |
302988 KB |
Output is correct |
211 |
Correct |
145 ms |
247220 KB |
Output is correct |
212 |
Correct |
283 ms |
310900 KB |
Output is correct |
213 |
Correct |
443 ms |
202200 KB |
Output is correct |
214 |
Correct |
533 ms |
200700 KB |
Output is correct |
215 |
Correct |
758 ms |
202756 KB |
Output is correct |
216 |
Correct |
687 ms |
208432 KB |
Output is correct |
217 |
Correct |
803 ms |
217268 KB |
Output is correct |
218 |
Correct |
694 ms |
236356 KB |
Output is correct |
219 |
Correct |
714 ms |
395164 KB |
Output is correct |
220 |
Correct |
125 ms |
246948 KB |
Output is correct |
221 |
Correct |
264 ms |
318116 KB |
Output is correct |
222 |
Correct |
474 ms |
373160 KB |
Output is correct |
223 |
Correct |
909 ms |
221948 KB |
Output is correct |
224 |
Correct |
908 ms |
208396 KB |
Output is correct |
225 |
Correct |
441 ms |
202360 KB |
Output is correct |