#include "light.h"
#include <algorithm>
#include <cstdint>
#include <cassert>
#include <vector>
using namespace std;
__int128_t ipow2(int x) {
return (__int128_t)1 << x;
}
void gen_at(__int128_t i, int level, __int128_t offset, vector<int64_t>& to_gen) {
if (i < 0 || i > ipow2(level + 1) - 2) return;
if (level == 0) {
if (i == 0) to_gen.push_back(offset);
return;
}
gen_at(i - ipow2(level - 1), level - 1, offset, to_gen);
if (i > 0 && i < ipow2(level - 1)) {
to_gen.push_back(ipow2(level) - 1 - i + offset);
}
if (i < ipow2(level)) {
to_gen.push_back(ipow2(level) - 1 + offset);
}
gen_at(i - ipow2(level), level - 1, offset + ipow2(level - 1), to_gen);
}
__int128_t cur_i, cur_j;
vector<long long> make() {
vector<int64_t> made;
for (int level = 0; ipow2(level) - 1 <= cur_j; ++level) {
gen_at(cur_i, level, ipow2(level) - 1, made);
}
while (made.back() > cur_j) made.pop_back();
if (made.back() != cur_j) made.push_back(cur_j);
reverse(made.begin(), made.end());
vector<long long> ret;
for (auto v : made) ret.push_back((cur_j - v) + 1);
assert(ret.size() <= 150);
return ret;
}
void prepare() {}
std::pair<long long, std::vector<long long>> join(long long p){
cur_j += p;
return {p, make()};
}
std::pair<long long, std::vector<long long>> leave(long long p){
cur_i += p;
return {p, make()};
}
#ifndef EVAL
#include "sample_grader.cpp"
#endif
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
276 ms |
400 KB |
Correct |
3 |
Correct |
274 ms |
412 KB |
Correct |
4 |
Correct |
297 ms |
396 KB |
Correct |
5 |
Correct |
281 ms |
396 KB |
Correct |
6 |
Correct |
306 ms |
404 KB |
Correct |
7 |
Correct |
308 ms |
400 KB |
Correct |
8 |
Correct |
314 ms |
404 KB |
Correct |
9 |
Correct |
311 ms |
400 KB |
Correct |
10 |
Correct |
277 ms |
396 KB |
Correct |
11 |
Correct |
305 ms |
400 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
264 ms |
344 KB |
Correct |
3 |
Correct |
47 ms |
344 KB |
Correct |
4 |
Correct |
273 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
289 ms |
344 KB |
Correct |
8 |
Correct |
19 ms |
344 KB |
Correct |
9 |
Correct |
252 ms |
344 KB |
Correct |
10 |
Correct |
261 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
274 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
264 ms |
344 KB |
Correct |
3 |
Correct |
47 ms |
344 KB |
Correct |
4 |
Correct |
273 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
289 ms |
344 KB |
Correct |
8 |
Correct |
19 ms |
344 KB |
Correct |
9 |
Correct |
252 ms |
344 KB |
Correct |
10 |
Correct |
261 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
274 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
262 ms |
344 KB |
Correct |
15 |
Correct |
59 ms |
344 KB |
Correct |
16 |
Correct |
302 ms |
344 KB |
Correct |
17 |
Correct |
275 ms |
344 KB |
Correct |
18 |
Correct |
3 ms |
344 KB |
Correct |
19 |
Correct |
250 ms |
344 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
241 ms |
344 KB |
Correct |
22 |
Correct |
304 ms |
344 KB |
Correct |
23 |
Correct |
58 ms |
344 KB |
Correct |
24 |
Correct |
272 ms |
344 KB |
Correct |
25 |
Correct |
3 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
276 ms |
344 KB |
Correct |
29 |
Correct |
13 ms |
344 KB |
Correct |
30 |
Correct |
259 ms |
344 KB |
Correct |
31 |
Correct |
259 ms |
344 KB |
Correct |
32 |
Correct |
5 ms |
344 KB |
Correct |
33 |
Correct |
292 ms |
344 KB |
Correct |
34 |
Correct |
282 ms |
344 KB |
Correct |
35 |
Correct |
280 ms |
344 KB |
Correct |
36 |
Correct |
251 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
264 ms |
344 KB |
Correct |
3 |
Correct |
47 ms |
344 KB |
Correct |
4 |
Correct |
273 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
289 ms |
344 KB |
Correct |
8 |
Correct |
19 ms |
344 KB |
Correct |
9 |
Correct |
252 ms |
344 KB |
Correct |
10 |
Correct |
261 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
274 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
262 ms |
344 KB |
Correct |
15 |
Correct |
59 ms |
344 KB |
Correct |
16 |
Correct |
302 ms |
344 KB |
Correct |
17 |
Correct |
275 ms |
344 KB |
Correct |
18 |
Correct |
3 ms |
344 KB |
Correct |
19 |
Correct |
250 ms |
344 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
241 ms |
344 KB |
Correct |
22 |
Correct |
304 ms |
344 KB |
Correct |
23 |
Correct |
58 ms |
344 KB |
Correct |
24 |
Correct |
272 ms |
344 KB |
Correct |
25 |
Correct |
3 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
276 ms |
344 KB |
Correct |
29 |
Correct |
13 ms |
344 KB |
Correct |
30 |
Correct |
259 ms |
344 KB |
Correct |
31 |
Correct |
259 ms |
344 KB |
Correct |
32 |
Correct |
5 ms |
344 KB |
Correct |
33 |
Correct |
292 ms |
344 KB |
Correct |
34 |
Correct |
282 ms |
344 KB |
Correct |
35 |
Correct |
280 ms |
344 KB |
Correct |
36 |
Correct |
251 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
282 ms |
344 KB |
Correct |
39 |
Correct |
40 ms |
344 KB |
Correct |
40 |
Correct |
256 ms |
344 KB |
Correct |
41 |
Correct |
254 ms |
344 KB |
Correct |
42 |
Correct |
4 ms |
344 KB |
Correct |
43 |
Correct |
250 ms |
344 KB |
Correct |
44 |
Correct |
16 ms |
344 KB |
Correct |
45 |
Correct |
249 ms |
344 KB |
Correct |
46 |
Correct |
280 ms |
344 KB |
Correct |
47 |
Correct |
60 ms |
344 KB |
Correct |
48 |
Correct |
243 ms |
344 KB |
Correct |
49 |
Correct |
5 ms |
344 KB |
Correct |
50 |
Correct |
3 ms |
344 KB |
Correct |
51 |
Correct |
3 ms |
344 KB |
Correct |
52 |
Correct |
226 ms |
344 KB |
Correct |
53 |
Correct |
14 ms |
344 KB |
Correct |
54 |
Correct |
271 ms |
340 KB |
Correct |
55 |
Correct |
262 ms |
344 KB |
Correct |
56 |
Correct |
7 ms |
344 KB |
Correct |
57 |
Correct |
281 ms |
344 KB |
Correct |
58 |
Correct |
261 ms |
344 KB |
Correct |
59 |
Correct |
276 ms |
344 KB |
Correct |
60 |
Correct |
292 ms |
344 KB |
Correct |
61 |
Correct |
15 ms |
344 KB |
Correct |
62 |
Correct |
40 ms |
344 KB |
Correct |
63 |
Correct |
18 ms |
344 KB |
Correct |
64 |
Correct |
296 ms |
344 KB |
Correct |
65 |
Correct |
258 ms |
344 KB |
Correct |
66 |
Correct |
300 ms |
344 KB |
Correct |
67 |
Correct |
286 ms |
344 KB |
Correct |
68 |
Correct |
248 ms |
344 KB |
Correct |
69 |
Correct |
282 ms |
344 KB |
Correct |
70 |
Correct |
248 ms |
344 KB |
Correct |
71 |
Correct |
277 ms |
344 KB |
Correct |
72 |
Correct |
259 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
264 ms |
344 KB |
Correct |
3 |
Correct |
47 ms |
344 KB |
Correct |
4 |
Correct |
273 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
289 ms |
344 KB |
Correct |
8 |
Correct |
19 ms |
344 KB |
Correct |
9 |
Correct |
252 ms |
344 KB |
Correct |
10 |
Correct |
261 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
274 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
262 ms |
344 KB |
Correct |
15 |
Correct |
59 ms |
344 KB |
Correct |
16 |
Correct |
302 ms |
344 KB |
Correct |
17 |
Correct |
275 ms |
344 KB |
Correct |
18 |
Correct |
3 ms |
344 KB |
Correct |
19 |
Correct |
250 ms |
344 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
241 ms |
344 KB |
Correct |
22 |
Correct |
304 ms |
344 KB |
Correct |
23 |
Correct |
58 ms |
344 KB |
Correct |
24 |
Correct |
272 ms |
344 KB |
Correct |
25 |
Correct |
3 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
276 ms |
344 KB |
Correct |
29 |
Correct |
13 ms |
344 KB |
Correct |
30 |
Correct |
259 ms |
344 KB |
Correct |
31 |
Correct |
259 ms |
344 KB |
Correct |
32 |
Correct |
5 ms |
344 KB |
Correct |
33 |
Correct |
292 ms |
344 KB |
Correct |
34 |
Correct |
282 ms |
344 KB |
Correct |
35 |
Correct |
280 ms |
344 KB |
Correct |
36 |
Correct |
251 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
282 ms |
344 KB |
Correct |
39 |
Correct |
40 ms |
344 KB |
Correct |
40 |
Correct |
256 ms |
344 KB |
Correct |
41 |
Correct |
254 ms |
344 KB |
Correct |
42 |
Correct |
4 ms |
344 KB |
Correct |
43 |
Correct |
250 ms |
344 KB |
Correct |
44 |
Correct |
16 ms |
344 KB |
Correct |
45 |
Correct |
249 ms |
344 KB |
Correct |
46 |
Correct |
280 ms |
344 KB |
Correct |
47 |
Correct |
60 ms |
344 KB |
Correct |
48 |
Correct |
243 ms |
344 KB |
Correct |
49 |
Correct |
5 ms |
344 KB |
Correct |
50 |
Correct |
3 ms |
344 KB |
Correct |
51 |
Correct |
3 ms |
344 KB |
Correct |
52 |
Correct |
226 ms |
344 KB |
Correct |
53 |
Correct |
14 ms |
344 KB |
Correct |
54 |
Correct |
271 ms |
340 KB |
Correct |
55 |
Correct |
262 ms |
344 KB |
Correct |
56 |
Correct |
7 ms |
344 KB |
Correct |
57 |
Correct |
281 ms |
344 KB |
Correct |
58 |
Correct |
261 ms |
344 KB |
Correct |
59 |
Correct |
276 ms |
344 KB |
Correct |
60 |
Correct |
292 ms |
344 KB |
Correct |
61 |
Correct |
15 ms |
344 KB |
Correct |
62 |
Correct |
40 ms |
344 KB |
Correct |
63 |
Correct |
18 ms |
344 KB |
Correct |
64 |
Correct |
296 ms |
344 KB |
Correct |
65 |
Correct |
258 ms |
344 KB |
Correct |
66 |
Correct |
300 ms |
344 KB |
Correct |
67 |
Correct |
286 ms |
344 KB |
Correct |
68 |
Correct |
248 ms |
344 KB |
Correct |
69 |
Correct |
282 ms |
344 KB |
Correct |
70 |
Correct |
248 ms |
344 KB |
Correct |
71 |
Correct |
277 ms |
344 KB |
Correct |
72 |
Correct |
259 ms |
344 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
286 ms |
344 KB |
Correct |
75 |
Correct |
30 ms |
344 KB |
Correct |
76 |
Correct |
270 ms |
344 KB |
Correct |
77 |
Correct |
297 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
300 ms |
344 KB |
Correct |
80 |
Correct |
13 ms |
344 KB |
Correct |
81 |
Correct |
238 ms |
344 KB |
Correct |
82 |
Correct |
253 ms |
344 KB |
Correct |
83 |
Correct |
55 ms |
344 KB |
Correct |
84 |
Correct |
262 ms |
344 KB |
Correct |
85 |
Correct |
3 ms |
344 KB |
Correct |
86 |
Correct |
3 ms |
344 KB |
Correct |
87 |
Correct |
3 ms |
344 KB |
Correct |
88 |
Correct |
288 ms |
344 KB |
Correct |
89 |
Correct |
19 ms |
340 KB |
Correct |
90 |
Correct |
264 ms |
344 KB |
Correct |
91 |
Correct |
277 ms |
344 KB |
Correct |
92 |
Correct |
9 ms |
344 KB |
Correct |
93 |
Correct |
251 ms |
344 KB |
Correct |
94 |
Correct |
278 ms |
344 KB |
Correct |
95 |
Correct |
278 ms |
340 KB |
Correct |
96 |
Correct |
268 ms |
596 KB |
Correct |
97 |
Correct |
14 ms |
344 KB |
Correct |
98 |
Correct |
33 ms |
344 KB |
Correct |
99 |
Correct |
16 ms |
344 KB |
Correct |
100 |
Correct |
278 ms |
344 KB |
Correct |
101 |
Correct |
264 ms |
344 KB |
Correct |
102 |
Correct |
293 ms |
344 KB |
Correct |
103 |
Correct |
270 ms |
344 KB |
Correct |
104 |
Correct |
259 ms |
344 KB |
Correct |
105 |
Correct |
280 ms |
344 KB |
Correct |
106 |
Correct |
294 ms |
344 KB |
Correct |
107 |
Correct |
266 ms |
344 KB |
Correct |
108 |
Correct |
249 ms |
344 KB |
Correct |
109 |
Correct |
288 ms |
344 KB |
Correct |
110 |
Correct |
260 ms |
344 KB |
Correct |
111 |
Correct |
253 ms |
344 KB |
Correct |
112 |
Correct |
279 ms |
344 KB |
Correct |
113 |
Correct |
270 ms |
344 KB |
Correct |
114 |
Correct |
256 ms |
344 KB |
Correct |
115 |
Correct |
277 ms |
344 KB |
Correct |
116 |
Correct |
268 ms |
340 KB |
Correct |
117 |
Correct |
293 ms |
344 KB |
Correct |
118 |
Correct |
261 ms |
344 KB |
Correct |
119 |
Correct |
275 ms |
344 KB |
Correct |
120 |
Correct |
281 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
264 ms |
344 KB |
Correct |
3 |
Correct |
47 ms |
344 KB |
Correct |
4 |
Correct |
273 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
289 ms |
344 KB |
Correct |
8 |
Correct |
19 ms |
344 KB |
Correct |
9 |
Correct |
252 ms |
344 KB |
Correct |
10 |
Correct |
261 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
274 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
262 ms |
344 KB |
Correct |
15 |
Correct |
59 ms |
344 KB |
Correct |
16 |
Correct |
302 ms |
344 KB |
Correct |
17 |
Correct |
275 ms |
344 KB |
Correct |
18 |
Correct |
3 ms |
344 KB |
Correct |
19 |
Correct |
250 ms |
344 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
241 ms |
344 KB |
Correct |
22 |
Correct |
304 ms |
344 KB |
Correct |
23 |
Correct |
58 ms |
344 KB |
Correct |
24 |
Correct |
272 ms |
344 KB |
Correct |
25 |
Correct |
3 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
276 ms |
344 KB |
Correct |
29 |
Correct |
13 ms |
344 KB |
Correct |
30 |
Correct |
259 ms |
344 KB |
Correct |
31 |
Correct |
259 ms |
344 KB |
Correct |
32 |
Correct |
5 ms |
344 KB |
Correct |
33 |
Correct |
292 ms |
344 KB |
Correct |
34 |
Correct |
282 ms |
344 KB |
Correct |
35 |
Correct |
280 ms |
344 KB |
Correct |
36 |
Correct |
251 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
282 ms |
344 KB |
Correct |
39 |
Correct |
40 ms |
344 KB |
Correct |
40 |
Correct |
256 ms |
344 KB |
Correct |
41 |
Correct |
254 ms |
344 KB |
Correct |
42 |
Correct |
4 ms |
344 KB |
Correct |
43 |
Correct |
250 ms |
344 KB |
Correct |
44 |
Correct |
16 ms |
344 KB |
Correct |
45 |
Correct |
249 ms |
344 KB |
Correct |
46 |
Correct |
280 ms |
344 KB |
Correct |
47 |
Correct |
60 ms |
344 KB |
Correct |
48 |
Correct |
243 ms |
344 KB |
Correct |
49 |
Correct |
5 ms |
344 KB |
Correct |
50 |
Correct |
3 ms |
344 KB |
Correct |
51 |
Correct |
3 ms |
344 KB |
Correct |
52 |
Correct |
226 ms |
344 KB |
Correct |
53 |
Correct |
14 ms |
344 KB |
Correct |
54 |
Correct |
271 ms |
340 KB |
Correct |
55 |
Correct |
262 ms |
344 KB |
Correct |
56 |
Correct |
7 ms |
344 KB |
Correct |
57 |
Correct |
281 ms |
344 KB |
Correct |
58 |
Correct |
261 ms |
344 KB |
Correct |
59 |
Correct |
276 ms |
344 KB |
Correct |
60 |
Correct |
292 ms |
344 KB |
Correct |
61 |
Correct |
15 ms |
344 KB |
Correct |
62 |
Correct |
40 ms |
344 KB |
Correct |
63 |
Correct |
18 ms |
344 KB |
Correct |
64 |
Correct |
296 ms |
344 KB |
Correct |
65 |
Correct |
258 ms |
344 KB |
Correct |
66 |
Correct |
300 ms |
344 KB |
Correct |
67 |
Correct |
286 ms |
344 KB |
Correct |
68 |
Correct |
248 ms |
344 KB |
Correct |
69 |
Correct |
282 ms |
344 KB |
Correct |
70 |
Correct |
248 ms |
344 KB |
Correct |
71 |
Correct |
277 ms |
344 KB |
Correct |
72 |
Correct |
259 ms |
344 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
286 ms |
344 KB |
Correct |
75 |
Correct |
30 ms |
344 KB |
Correct |
76 |
Correct |
270 ms |
344 KB |
Correct |
77 |
Correct |
297 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
300 ms |
344 KB |
Correct |
80 |
Correct |
13 ms |
344 KB |
Correct |
81 |
Correct |
238 ms |
344 KB |
Correct |
82 |
Correct |
253 ms |
344 KB |
Correct |
83 |
Correct |
55 ms |
344 KB |
Correct |
84 |
Correct |
262 ms |
344 KB |
Correct |
85 |
Correct |
3 ms |
344 KB |
Correct |
86 |
Correct |
3 ms |
344 KB |
Correct |
87 |
Correct |
3 ms |
344 KB |
Correct |
88 |
Correct |
288 ms |
344 KB |
Correct |
89 |
Correct |
19 ms |
340 KB |
Correct |
90 |
Correct |
264 ms |
344 KB |
Correct |
91 |
Correct |
277 ms |
344 KB |
Correct |
92 |
Correct |
9 ms |
344 KB |
Correct |
93 |
Correct |
251 ms |
344 KB |
Correct |
94 |
Correct |
278 ms |
344 KB |
Correct |
95 |
Correct |
278 ms |
340 KB |
Correct |
96 |
Correct |
268 ms |
596 KB |
Correct |
97 |
Correct |
14 ms |
344 KB |
Correct |
98 |
Correct |
33 ms |
344 KB |
Correct |
99 |
Correct |
16 ms |
344 KB |
Correct |
100 |
Correct |
278 ms |
344 KB |
Correct |
101 |
Correct |
264 ms |
344 KB |
Correct |
102 |
Correct |
293 ms |
344 KB |
Correct |
103 |
Correct |
270 ms |
344 KB |
Correct |
104 |
Correct |
259 ms |
344 KB |
Correct |
105 |
Correct |
280 ms |
344 KB |
Correct |
106 |
Correct |
294 ms |
344 KB |
Correct |
107 |
Correct |
266 ms |
344 KB |
Correct |
108 |
Correct |
249 ms |
344 KB |
Correct |
109 |
Correct |
288 ms |
344 KB |
Correct |
110 |
Correct |
260 ms |
344 KB |
Correct |
111 |
Correct |
253 ms |
344 KB |
Correct |
112 |
Correct |
279 ms |
344 KB |
Correct |
113 |
Correct |
270 ms |
344 KB |
Correct |
114 |
Correct |
256 ms |
344 KB |
Correct |
115 |
Correct |
277 ms |
344 KB |
Correct |
116 |
Correct |
268 ms |
340 KB |
Correct |
117 |
Correct |
293 ms |
344 KB |
Correct |
118 |
Correct |
261 ms |
344 KB |
Correct |
119 |
Correct |
275 ms |
344 KB |
Correct |
120 |
Correct |
281 ms |
344 KB |
Correct |
121 |
Correct |
0 ms |
344 KB |
Correct |
122 |
Correct |
282 ms |
344 KB |
Correct |
123 |
Correct |
37 ms |
344 KB |
Correct |
124 |
Correct |
264 ms |
344 KB |
Correct |
125 |
Correct |
276 ms |
344 KB |
Correct |
126 |
Correct |
9 ms |
344 KB |
Correct |
127 |
Correct |
265 ms |
344 KB |
Correct |
128 |
Correct |
15 ms |
344 KB |
Correct |
129 |
Correct |
229 ms |
344 KB |
Correct |
130 |
Correct |
254 ms |
344 KB |
Correct |
131 |
Correct |
60 ms |
344 KB |
Correct |
132 |
Correct |
241 ms |
344 KB |
Correct |
133 |
Correct |
3 ms |
344 KB |
Correct |
134 |
Correct |
3 ms |
344 KB |
Correct |
135 |
Correct |
3 ms |
344 KB |
Correct |
136 |
Correct |
254 ms |
344 KB |
Correct |
137 |
Correct |
15 ms |
344 KB |
Correct |
138 |
Correct |
254 ms |
344 KB |
Correct |
139 |
Correct |
259 ms |
344 KB |
Correct |
140 |
Correct |
10 ms |
344 KB |
Correct |
141 |
Correct |
296 ms |
344 KB |
Correct |
142 |
Correct |
257 ms |
344 KB |
Correct |
143 |
Correct |
227 ms |
344 KB |
Correct |
144 |
Correct |
242 ms |
344 KB |
Correct |
145 |
Correct |
22 ms |
344 KB |
Correct |
146 |
Correct |
34 ms |
344 KB |
Correct |
147 |
Correct |
14 ms |
344 KB |
Correct |
148 |
Correct |
249 ms |
344 KB |
Correct |
149 |
Correct |
208 ms |
344 KB |
Correct |
150 |
Correct |
264 ms |
344 KB |
Correct |
151 |
Correct |
248 ms |
344 KB |
Correct |
152 |
Correct |
270 ms |
344 KB |
Correct |
153 |
Correct |
253 ms |
344 KB |
Correct |
154 |
Correct |
231 ms |
344 KB |
Correct |
155 |
Correct |
281 ms |
344 KB |
Correct |
156 |
Correct |
263 ms |
344 KB |
Correct |
157 |
Correct |
297 ms |
344 KB |
Correct |
158 |
Correct |
275 ms |
344 KB |
Correct |
159 |
Correct |
299 ms |
344 KB |
Correct |
160 |
Correct |
277 ms |
344 KB |
Correct |
161 |
Correct |
285 ms |
344 KB |
Correct |
162 |
Correct |
263 ms |
344 KB |
Correct |
163 |
Correct |
289 ms |
344 KB |
Correct |
164 |
Correct |
266 ms |
344 KB |
Correct |
165 |
Correct |
278 ms |
344 KB |
Correct |
166 |
Correct |
256 ms |
344 KB |
Correct |
167 |
Correct |
284 ms |
344 KB |
Correct |
168 |
Correct |
266 ms |
344 KB |
Correct |
169 |
Correct |
272 ms |
344 KB |
Correct |
170 |
Correct |
274 ms |
344 KB |
Correct |
171 |
Correct |
261 ms |
344 KB |
Correct |
172 |
Correct |
266 ms |
596 KB |
Correct |
173 |
Correct |
286 ms |
344 KB |
Correct |
174 |
Correct |
255 ms |
344 KB |
Correct |
175 |
Correct |
276 ms |
344 KB |
Correct |
176 |
Correct |
308 ms |
344 KB |
Correct |
177 |
Correct |
267 ms |
344 KB |
Correct |
178 |
Correct |
279 ms |
344 KB |
Correct |
179 |
Correct |
280 ms |
344 KB |
Correct |
180 |
Correct |
301 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
296 ms |
400 KB |
Correct |
3 |
Correct |
332 ms |
404 KB |
Correct |
4 |
Correct |
300 ms |
400 KB |
Correct |
5 |
Correct |
287 ms |
416 KB |
Correct |
6 |
Correct |
287 ms |
344 KB |
Correct |
7 |
Correct |
283 ms |
400 KB |
Correct |
8 |
Correct |
303 ms |
404 KB |
Correct |
9 |
Correct |
287 ms |
404 KB |
Correct |
10 |
Correct |
296 ms |
396 KB |
Correct |
11 |
Correct |
326 ms |
592 KB |
Correct |
12 |
Correct |
252 ms |
344 KB |
Correct |
13 |
Correct |
42 ms |
344 KB |
Correct |
14 |
Correct |
229 ms |
344 KB |
Correct |
15 |
Correct |
220 ms |
344 KB |
Correct |
16 |
Correct |
5 ms |
340 KB |
Correct |
17 |
Correct |
231 ms |
344 KB |
Correct |
18 |
Correct |
17 ms |
344 KB |
Correct |
19 |
Correct |
203 ms |
344 KB |
Correct |
20 |
Correct |
262 ms |
344 KB |
Correct |
21 |
Correct |
69 ms |
344 KB |
Correct |
22 |
Correct |
272 ms |
340 KB |
Correct |
23 |
Correct |
3 ms |
344 KB |
Correct |
24 |
Correct |
5 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
275 ms |
344 KB |
Correct |
27 |
Correct |
23 ms |
596 KB |
Correct |
28 |
Correct |
271 ms |
344 KB |
Correct |
29 |
Correct |
270 ms |
344 KB |
Correct |
30 |
Correct |
4 ms |
344 KB |
Correct |
31 |
Correct |
283 ms |
344 KB |
Correct |
32 |
Correct |
265 ms |
344 KB |
Correct |
33 |
Correct |
265 ms |
344 KB |
Correct |
34 |
Correct |
240 ms |
344 KB |
Correct |
35 |
Correct |
20 ms |
344 KB |
Correct |
36 |
Correct |
43 ms |
344 KB |
Correct |
37 |
Correct |
18 ms |
344 KB |
Correct |
38 |
Correct |
245 ms |
344 KB |
Correct |
39 |
Correct |
245 ms |
344 KB |
Correct |
40 |
Correct |
255 ms |
344 KB |
Correct |
41 |
Correct |
294 ms |
344 KB |
Correct |
42 |
Correct |
259 ms |
344 KB |
Correct |
43 |
Correct |
288 ms |
344 KB |
Correct |
44 |
Correct |
241 ms |
344 KB |
Correct |
45 |
Correct |
333 ms |
344 KB |
Correct |
46 |
Correct |
275 ms |
344 KB |
Correct |
47 |
Correct |
258 ms |
344 KB |
Correct |
48 |
Correct |
246 ms |
344 KB |
Correct |
49 |
Correct |
275 ms |
344 KB |
Correct |
50 |
Correct |
302 ms |
344 KB |
Correct |
51 |
Correct |
244 ms |
344 KB |
Correct |
52 |
Correct |
264 ms |
344 KB |
Correct |
53 |
Correct |
271 ms |
344 KB |
Correct |
54 |
Correct |
244 ms |
344 KB |
Correct |
55 |
Correct |
283 ms |
340 KB |
Correct |
56 |
Correct |
251 ms |
344 KB |
Correct |
57 |
Correct |
256 ms |
344 KB |
Correct |
58 |
Correct |
268 ms |
512 KB |
Correct |
59 |
Correct |
269 ms |
344 KB |
Correct |
60 |
Correct |
317 ms |
344 KB |
Correct |
61 |
Correct |
299 ms |
344 KB |
Correct |
62 |
Correct |
288 ms |
344 KB |
Correct |
63 |
Correct |
279 ms |
344 KB |
Correct |
64 |
Correct |
317 ms |
344 KB |
Correct |
65 |
Correct |
285 ms |
344 KB |
Correct |
66 |
Correct |
258 ms |
344 KB |
Correct |
67 |
Correct |
302 ms |
344 KB |
Correct |
68 |
Correct |
288 ms |
344 KB |
Correct |
69 |
Correct |
293 ms |
344 KB |
Correct |
70 |
Correct |
286 ms |
344 KB |
Correct |
71 |
Incorrect |
3 ms |
344 KB |
Not correct |
72 |
Halted |
0 ms |
0 KB |
- |