#include<bits/stdc++.h>
#include"light.h"
typedef long long ll;
using namespace std;
ll N = 1;
vector<ll> act = {1};
void prepare() {
}
pair<ll, vector<ll>> solve(ll p) {
vector<ll> ret = {N};
ll x = N;
while (x > 1) {
x -= min(x - 1, N - x + 2);
int i = upper_bound(act.begin(), act.end(), x) - act.begin() - 1;
if (x - act[i] > p)
x = act[i + 1];
ret.insert(ret.begin(), x);
}
swap(ret, act);
return {p, act};
}
pair<ll, vector<ll>> join(ll p) {
N += p;
return solve(p+1);
}
pair<ll, vector<ll>> leave(ll p) {
N -= p;
return solve(p+1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
305 ms |
424 KB |
Output is correct |
3 |
Correct |
304 ms |
344 KB |
Output is correct |
4 |
Correct |
295 ms |
344 KB |
Output is correct |
5 |
Correct |
285 ms |
596 KB |
Output is correct |
6 |
Correct |
267 ms |
424 KB |
Output is correct |
7 |
Correct |
289 ms |
344 KB |
Output is correct |
8 |
Correct |
281 ms |
344 KB |
Output is correct |
9 |
Correct |
288 ms |
344 KB |
Output is correct |
10 |
Correct |
283 ms |
344 KB |
Output is correct |
11 |
Correct |
273 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
253 ms |
344 KB |
Output is correct |
3 |
Correct |
45 ms |
344 KB |
Output is correct |
4 |
Correct |
232 ms |
344 KB |
Output is correct |
5 |
Correct |
221 ms |
344 KB |
Output is correct |
6 |
Correct |
5 ms |
344 KB |
Output is correct |
7 |
Correct |
209 ms |
344 KB |
Output is correct |
8 |
Correct |
12 ms |
344 KB |
Output is correct |
9 |
Correct |
228 ms |
344 KB |
Output is correct |
10 |
Correct |
286 ms |
344 KB |
Output is correct |
11 |
Correct |
72 ms |
344 KB |
Output is correct |
12 |
Correct |
233 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
253 ms |
344 KB |
Output is correct |
3 |
Correct |
45 ms |
344 KB |
Output is correct |
4 |
Correct |
232 ms |
344 KB |
Output is correct |
5 |
Correct |
221 ms |
344 KB |
Output is correct |
6 |
Correct |
5 ms |
344 KB |
Output is correct |
7 |
Correct |
209 ms |
344 KB |
Output is correct |
8 |
Correct |
12 ms |
344 KB |
Output is correct |
9 |
Correct |
228 ms |
344 KB |
Output is correct |
10 |
Correct |
286 ms |
344 KB |
Output is correct |
11 |
Correct |
72 ms |
344 KB |
Output is correct |
12 |
Correct |
233 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
278 ms |
344 KB |
Output is correct |
15 |
Correct |
39 ms |
344 KB |
Output is correct |
16 |
Correct |
242 ms |
344 KB |
Output is correct |
17 |
Correct |
250 ms |
344 KB |
Output is correct |
18 |
Correct |
3 ms |
344 KB |
Output is correct |
19 |
Correct |
247 ms |
344 KB |
Output is correct |
20 |
Correct |
20 ms |
344 KB |
Output is correct |
21 |
Correct |
221 ms |
596 KB |
Output is correct |
22 |
Correct |
244 ms |
344 KB |
Output is correct |
23 |
Correct |
58 ms |
344 KB |
Output is correct |
24 |
Correct |
239 ms |
344 KB |
Output is correct |
25 |
Correct |
3 ms |
344 KB |
Output is correct |
26 |
Correct |
4 ms |
344 KB |
Output is correct |
27 |
Correct |
3 ms |
344 KB |
Output is correct |
28 |
Correct |
250 ms |
504 KB |
Output is correct |
29 |
Correct |
13 ms |
340 KB |
Output is correct |
30 |
Correct |
284 ms |
344 KB |
Output is correct |
31 |
Correct |
244 ms |
344 KB |
Output is correct |
32 |
Correct |
5 ms |
344 KB |
Output is correct |
33 |
Correct |
289 ms |
600 KB |
Output is correct |
34 |
Correct |
230 ms |
344 KB |
Output is correct |
35 |
Correct |
254 ms |
408 KB |
Output is correct |
36 |
Correct |
273 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
253 ms |
344 KB |
Output is correct |
3 |
Correct |
45 ms |
344 KB |
Output is correct |
4 |
Correct |
232 ms |
344 KB |
Output is correct |
5 |
Correct |
221 ms |
344 KB |
Output is correct |
6 |
Correct |
5 ms |
344 KB |
Output is correct |
7 |
Correct |
209 ms |
344 KB |
Output is correct |
8 |
Correct |
12 ms |
344 KB |
Output is correct |
9 |
Correct |
228 ms |
344 KB |
Output is correct |
10 |
Correct |
286 ms |
344 KB |
Output is correct |
11 |
Correct |
72 ms |
344 KB |
Output is correct |
12 |
Correct |
233 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
278 ms |
344 KB |
Output is correct |
15 |
Correct |
39 ms |
344 KB |
Output is correct |
16 |
Correct |
242 ms |
344 KB |
Output is correct |
17 |
Correct |
250 ms |
344 KB |
Output is correct |
18 |
Correct |
3 ms |
344 KB |
Output is correct |
19 |
Correct |
247 ms |
344 KB |
Output is correct |
20 |
Correct |
20 ms |
344 KB |
Output is correct |
21 |
Correct |
221 ms |
596 KB |
Output is correct |
22 |
Correct |
244 ms |
344 KB |
Output is correct |
23 |
Correct |
58 ms |
344 KB |
Output is correct |
24 |
Correct |
239 ms |
344 KB |
Output is correct |
25 |
Correct |
3 ms |
344 KB |
Output is correct |
26 |
Correct |
4 ms |
344 KB |
Output is correct |
27 |
Correct |
3 ms |
344 KB |
Output is correct |
28 |
Correct |
250 ms |
504 KB |
Output is correct |
29 |
Correct |
13 ms |
340 KB |
Output is correct |
30 |
Correct |
284 ms |
344 KB |
Output is correct |
31 |
Correct |
244 ms |
344 KB |
Output is correct |
32 |
Correct |
5 ms |
344 KB |
Output is correct |
33 |
Correct |
289 ms |
600 KB |
Output is correct |
34 |
Correct |
230 ms |
344 KB |
Output is correct |
35 |
Correct |
254 ms |
408 KB |
Output is correct |
36 |
Correct |
273 ms |
344 KB |
Output is correct |
37 |
Correct |
1 ms |
344 KB |
Output is correct |
38 |
Correct |
218 ms |
344 KB |
Output is correct |
39 |
Correct |
46 ms |
344 KB |
Output is correct |
40 |
Correct |
202 ms |
344 KB |
Output is correct |
41 |
Correct |
218 ms |
344 KB |
Output is correct |
42 |
Correct |
3 ms |
344 KB |
Output is correct |
43 |
Correct |
199 ms |
344 KB |
Output is correct |
44 |
Correct |
14 ms |
344 KB |
Output is correct |
45 |
Correct |
226 ms |
344 KB |
Output is correct |
46 |
Correct |
221 ms |
340 KB |
Output is correct |
47 |
Correct |
66 ms |
344 KB |
Output is correct |
48 |
Correct |
246 ms |
344 KB |
Output is correct |
49 |
Correct |
4 ms |
344 KB |
Output is correct |
50 |
Correct |
4 ms |
344 KB |
Output is correct |
51 |
Correct |
4 ms |
344 KB |
Output is correct |
52 |
Correct |
215 ms |
344 KB |
Output is correct |
53 |
Correct |
12 ms |
344 KB |
Output is correct |
54 |
Correct |
249 ms |
344 KB |
Output is correct |
55 |
Correct |
240 ms |
344 KB |
Output is correct |
56 |
Correct |
7 ms |
504 KB |
Output is correct |
57 |
Correct |
257 ms |
344 KB |
Output is correct |
58 |
Correct |
279 ms |
344 KB |
Output is correct |
59 |
Correct |
232 ms |
412 KB |
Output is correct |
60 |
Correct |
241 ms |
344 KB |
Output is correct |
61 |
Correct |
19 ms |
348 KB |
Output is correct |
62 |
Correct |
32 ms |
436 KB |
Output is correct |
63 |
Correct |
19 ms |
432 KB |
Output is correct |
64 |
Correct |
220 ms |
344 KB |
Output is correct |
65 |
Correct |
252 ms |
344 KB |
Output is correct |
66 |
Correct |
265 ms |
344 KB |
Output is correct |
67 |
Correct |
224 ms |
344 KB |
Output is correct |
68 |
Correct |
238 ms |
340 KB |
Output is correct |
69 |
Correct |
267 ms |
344 KB |
Output is correct |
70 |
Correct |
238 ms |
344 KB |
Output is correct |
71 |
Correct |
230 ms |
428 KB |
Output is correct |
72 |
Correct |
269 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
253 ms |
344 KB |
Output is correct |
3 |
Correct |
45 ms |
344 KB |
Output is correct |
4 |
Correct |
232 ms |
344 KB |
Output is correct |
5 |
Correct |
221 ms |
344 KB |
Output is correct |
6 |
Correct |
5 ms |
344 KB |
Output is correct |
7 |
Correct |
209 ms |
344 KB |
Output is correct |
8 |
Correct |
12 ms |
344 KB |
Output is correct |
9 |
Correct |
228 ms |
344 KB |
Output is correct |
10 |
Correct |
286 ms |
344 KB |
Output is correct |
11 |
Correct |
72 ms |
344 KB |
Output is correct |
12 |
Correct |
233 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
278 ms |
344 KB |
Output is correct |
15 |
Correct |
39 ms |
344 KB |
Output is correct |
16 |
Correct |
242 ms |
344 KB |
Output is correct |
17 |
Correct |
250 ms |
344 KB |
Output is correct |
18 |
Correct |
3 ms |
344 KB |
Output is correct |
19 |
Correct |
247 ms |
344 KB |
Output is correct |
20 |
Correct |
20 ms |
344 KB |
Output is correct |
21 |
Correct |
221 ms |
596 KB |
Output is correct |
22 |
Correct |
244 ms |
344 KB |
Output is correct |
23 |
Correct |
58 ms |
344 KB |
Output is correct |
24 |
Correct |
239 ms |
344 KB |
Output is correct |
25 |
Correct |
3 ms |
344 KB |
Output is correct |
26 |
Correct |
4 ms |
344 KB |
Output is correct |
27 |
Correct |
3 ms |
344 KB |
Output is correct |
28 |
Correct |
250 ms |
504 KB |
Output is correct |
29 |
Correct |
13 ms |
340 KB |
Output is correct |
30 |
Correct |
284 ms |
344 KB |
Output is correct |
31 |
Correct |
244 ms |
344 KB |
Output is correct |
32 |
Correct |
5 ms |
344 KB |
Output is correct |
33 |
Correct |
289 ms |
600 KB |
Output is correct |
34 |
Correct |
230 ms |
344 KB |
Output is correct |
35 |
Correct |
254 ms |
408 KB |
Output is correct |
36 |
Correct |
273 ms |
344 KB |
Output is correct |
37 |
Correct |
1 ms |
344 KB |
Output is correct |
38 |
Correct |
218 ms |
344 KB |
Output is correct |
39 |
Correct |
46 ms |
344 KB |
Output is correct |
40 |
Correct |
202 ms |
344 KB |
Output is correct |
41 |
Correct |
218 ms |
344 KB |
Output is correct |
42 |
Correct |
3 ms |
344 KB |
Output is correct |
43 |
Correct |
199 ms |
344 KB |
Output is correct |
44 |
Correct |
14 ms |
344 KB |
Output is correct |
45 |
Correct |
226 ms |
344 KB |
Output is correct |
46 |
Correct |
221 ms |
340 KB |
Output is correct |
47 |
Correct |
66 ms |
344 KB |
Output is correct |
48 |
Correct |
246 ms |
344 KB |
Output is correct |
49 |
Correct |
4 ms |
344 KB |
Output is correct |
50 |
Correct |
4 ms |
344 KB |
Output is correct |
51 |
Correct |
4 ms |
344 KB |
Output is correct |
52 |
Correct |
215 ms |
344 KB |
Output is correct |
53 |
Correct |
12 ms |
344 KB |
Output is correct |
54 |
Correct |
249 ms |
344 KB |
Output is correct |
55 |
Correct |
240 ms |
344 KB |
Output is correct |
56 |
Correct |
7 ms |
504 KB |
Output is correct |
57 |
Correct |
257 ms |
344 KB |
Output is correct |
58 |
Correct |
279 ms |
344 KB |
Output is correct |
59 |
Correct |
232 ms |
412 KB |
Output is correct |
60 |
Correct |
241 ms |
344 KB |
Output is correct |
61 |
Correct |
19 ms |
348 KB |
Output is correct |
62 |
Correct |
32 ms |
436 KB |
Output is correct |
63 |
Correct |
19 ms |
432 KB |
Output is correct |
64 |
Correct |
220 ms |
344 KB |
Output is correct |
65 |
Correct |
252 ms |
344 KB |
Output is correct |
66 |
Correct |
265 ms |
344 KB |
Output is correct |
67 |
Correct |
224 ms |
344 KB |
Output is correct |
68 |
Correct |
238 ms |
340 KB |
Output is correct |
69 |
Correct |
267 ms |
344 KB |
Output is correct |
70 |
Correct |
238 ms |
344 KB |
Output is correct |
71 |
Correct |
230 ms |
428 KB |
Output is correct |
72 |
Correct |
269 ms |
344 KB |
Output is correct |
73 |
Correct |
0 ms |
344 KB |
Output is correct |
74 |
Correct |
299 ms |
344 KB |
Output is correct |
75 |
Correct |
41 ms |
344 KB |
Output is correct |
76 |
Correct |
244 ms |
344 KB |
Output is correct |
77 |
Correct |
241 ms |
344 KB |
Output is correct |
78 |
Correct |
4 ms |
344 KB |
Output is correct |
79 |
Correct |
240 ms |
344 KB |
Output is correct |
80 |
Correct |
14 ms |
344 KB |
Output is correct |
81 |
Correct |
217 ms |
344 KB |
Output is correct |
82 |
Correct |
236 ms |
344 KB |
Output is correct |
83 |
Correct |
67 ms |
344 KB |
Output is correct |
84 |
Correct |
235 ms |
344 KB |
Output is correct |
85 |
Correct |
4 ms |
344 KB |
Output is correct |
86 |
Correct |
3 ms |
344 KB |
Output is correct |
87 |
Correct |
4 ms |
344 KB |
Output is correct |
88 |
Correct |
251 ms |
344 KB |
Output is correct |
89 |
Correct |
19 ms |
344 KB |
Output is correct |
90 |
Correct |
213 ms |
344 KB |
Output is correct |
91 |
Correct |
229 ms |
344 KB |
Output is correct |
92 |
Correct |
8 ms |
344 KB |
Output is correct |
93 |
Correct |
279 ms |
504 KB |
Output is correct |
94 |
Correct |
231 ms |
344 KB |
Output is correct |
95 |
Correct |
222 ms |
344 KB |
Output is correct |
96 |
Correct |
232 ms |
344 KB |
Output is correct |
97 |
Correct |
14 ms |
344 KB |
Output is correct |
98 |
Correct |
38 ms |
436 KB |
Output is correct |
99 |
Correct |
17 ms |
600 KB |
Output is correct |
100 |
Correct |
260 ms |
344 KB |
Output is correct |
101 |
Correct |
262 ms |
344 KB |
Output is correct |
102 |
Correct |
256 ms |
344 KB |
Output is correct |
103 |
Correct |
285 ms |
344 KB |
Output is correct |
104 |
Correct |
267 ms |
344 KB |
Output is correct |
105 |
Correct |
297 ms |
344 KB |
Output is correct |
106 |
Correct |
240 ms |
432 KB |
Output is correct |
107 |
Correct |
254 ms |
344 KB |
Output is correct |
108 |
Correct |
236 ms |
344 KB |
Output is correct |
109 |
Correct |
264 ms |
344 KB |
Output is correct |
110 |
Correct |
251 ms |
428 KB |
Output is correct |
111 |
Correct |
277 ms |
416 KB |
Output is correct |
112 |
Correct |
286 ms |
344 KB |
Output is correct |
113 |
Correct |
244 ms |
344 KB |
Output is correct |
114 |
Correct |
282 ms |
344 KB |
Output is correct |
115 |
Correct |
261 ms |
344 KB |
Output is correct |
116 |
Correct |
254 ms |
344 KB |
Output is correct |
117 |
Correct |
241 ms |
340 KB |
Output is correct |
118 |
Correct |
263 ms |
344 KB |
Output is correct |
119 |
Correct |
249 ms |
344 KB |
Output is correct |
120 |
Correct |
251 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
253 ms |
344 KB |
Output is correct |
3 |
Correct |
45 ms |
344 KB |
Output is correct |
4 |
Correct |
232 ms |
344 KB |
Output is correct |
5 |
Correct |
221 ms |
344 KB |
Output is correct |
6 |
Correct |
5 ms |
344 KB |
Output is correct |
7 |
Correct |
209 ms |
344 KB |
Output is correct |
8 |
Correct |
12 ms |
344 KB |
Output is correct |
9 |
Correct |
228 ms |
344 KB |
Output is correct |
10 |
Correct |
286 ms |
344 KB |
Output is correct |
11 |
Correct |
72 ms |
344 KB |
Output is correct |
12 |
Correct |
233 ms |
344 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
278 ms |
344 KB |
Output is correct |
15 |
Correct |
39 ms |
344 KB |
Output is correct |
16 |
Correct |
242 ms |
344 KB |
Output is correct |
17 |
Correct |
250 ms |
344 KB |
Output is correct |
18 |
Correct |
3 ms |
344 KB |
Output is correct |
19 |
Correct |
247 ms |
344 KB |
Output is correct |
20 |
Correct |
20 ms |
344 KB |
Output is correct |
21 |
Correct |
221 ms |
596 KB |
Output is correct |
22 |
Correct |
244 ms |
344 KB |
Output is correct |
23 |
Correct |
58 ms |
344 KB |
Output is correct |
24 |
Correct |
239 ms |
344 KB |
Output is correct |
25 |
Correct |
3 ms |
344 KB |
Output is correct |
26 |
Correct |
4 ms |
344 KB |
Output is correct |
27 |
Correct |
3 ms |
344 KB |
Output is correct |
28 |
Correct |
250 ms |
504 KB |
Output is correct |
29 |
Correct |
13 ms |
340 KB |
Output is correct |
30 |
Correct |
284 ms |
344 KB |
Output is correct |
31 |
Correct |
244 ms |
344 KB |
Output is correct |
32 |
Correct |
5 ms |
344 KB |
Output is correct |
33 |
Correct |
289 ms |
600 KB |
Output is correct |
34 |
Correct |
230 ms |
344 KB |
Output is correct |
35 |
Correct |
254 ms |
408 KB |
Output is correct |
36 |
Correct |
273 ms |
344 KB |
Output is correct |
37 |
Correct |
1 ms |
344 KB |
Output is correct |
38 |
Correct |
218 ms |
344 KB |
Output is correct |
39 |
Correct |
46 ms |
344 KB |
Output is correct |
40 |
Correct |
202 ms |
344 KB |
Output is correct |
41 |
Correct |
218 ms |
344 KB |
Output is correct |
42 |
Correct |
3 ms |
344 KB |
Output is correct |
43 |
Correct |
199 ms |
344 KB |
Output is correct |
44 |
Correct |
14 ms |
344 KB |
Output is correct |
45 |
Correct |
226 ms |
344 KB |
Output is correct |
46 |
Correct |
221 ms |
340 KB |
Output is correct |
47 |
Correct |
66 ms |
344 KB |
Output is correct |
48 |
Correct |
246 ms |
344 KB |
Output is correct |
49 |
Correct |
4 ms |
344 KB |
Output is correct |
50 |
Correct |
4 ms |
344 KB |
Output is correct |
51 |
Correct |
4 ms |
344 KB |
Output is correct |
52 |
Correct |
215 ms |
344 KB |
Output is correct |
53 |
Correct |
12 ms |
344 KB |
Output is correct |
54 |
Correct |
249 ms |
344 KB |
Output is correct |
55 |
Correct |
240 ms |
344 KB |
Output is correct |
56 |
Correct |
7 ms |
504 KB |
Output is correct |
57 |
Correct |
257 ms |
344 KB |
Output is correct |
58 |
Correct |
279 ms |
344 KB |
Output is correct |
59 |
Correct |
232 ms |
412 KB |
Output is correct |
60 |
Correct |
241 ms |
344 KB |
Output is correct |
61 |
Correct |
19 ms |
348 KB |
Output is correct |
62 |
Correct |
32 ms |
436 KB |
Output is correct |
63 |
Correct |
19 ms |
432 KB |
Output is correct |
64 |
Correct |
220 ms |
344 KB |
Output is correct |
65 |
Correct |
252 ms |
344 KB |
Output is correct |
66 |
Correct |
265 ms |
344 KB |
Output is correct |
67 |
Correct |
224 ms |
344 KB |
Output is correct |
68 |
Correct |
238 ms |
340 KB |
Output is correct |
69 |
Correct |
267 ms |
344 KB |
Output is correct |
70 |
Correct |
238 ms |
344 KB |
Output is correct |
71 |
Correct |
230 ms |
428 KB |
Output is correct |
72 |
Correct |
269 ms |
344 KB |
Output is correct |
73 |
Correct |
0 ms |
344 KB |
Output is correct |
74 |
Correct |
299 ms |
344 KB |
Output is correct |
75 |
Correct |
41 ms |
344 KB |
Output is correct |
76 |
Correct |
244 ms |
344 KB |
Output is correct |
77 |
Correct |
241 ms |
344 KB |
Output is correct |
78 |
Correct |
4 ms |
344 KB |
Output is correct |
79 |
Correct |
240 ms |
344 KB |
Output is correct |
80 |
Correct |
14 ms |
344 KB |
Output is correct |
81 |
Correct |
217 ms |
344 KB |
Output is correct |
82 |
Correct |
236 ms |
344 KB |
Output is correct |
83 |
Correct |
67 ms |
344 KB |
Output is correct |
84 |
Correct |
235 ms |
344 KB |
Output is correct |
85 |
Correct |
4 ms |
344 KB |
Output is correct |
86 |
Correct |
3 ms |
344 KB |
Output is correct |
87 |
Correct |
4 ms |
344 KB |
Output is correct |
88 |
Correct |
251 ms |
344 KB |
Output is correct |
89 |
Correct |
19 ms |
344 KB |
Output is correct |
90 |
Correct |
213 ms |
344 KB |
Output is correct |
91 |
Correct |
229 ms |
344 KB |
Output is correct |
92 |
Correct |
8 ms |
344 KB |
Output is correct |
93 |
Correct |
279 ms |
504 KB |
Output is correct |
94 |
Correct |
231 ms |
344 KB |
Output is correct |
95 |
Correct |
222 ms |
344 KB |
Output is correct |
96 |
Correct |
232 ms |
344 KB |
Output is correct |
97 |
Correct |
14 ms |
344 KB |
Output is correct |
98 |
Correct |
38 ms |
436 KB |
Output is correct |
99 |
Correct |
17 ms |
600 KB |
Output is correct |
100 |
Correct |
260 ms |
344 KB |
Output is correct |
101 |
Correct |
262 ms |
344 KB |
Output is correct |
102 |
Correct |
256 ms |
344 KB |
Output is correct |
103 |
Correct |
285 ms |
344 KB |
Output is correct |
104 |
Correct |
267 ms |
344 KB |
Output is correct |
105 |
Correct |
297 ms |
344 KB |
Output is correct |
106 |
Correct |
240 ms |
432 KB |
Output is correct |
107 |
Correct |
254 ms |
344 KB |
Output is correct |
108 |
Correct |
236 ms |
344 KB |
Output is correct |
109 |
Correct |
264 ms |
344 KB |
Output is correct |
110 |
Correct |
251 ms |
428 KB |
Output is correct |
111 |
Correct |
277 ms |
416 KB |
Output is correct |
112 |
Correct |
286 ms |
344 KB |
Output is correct |
113 |
Correct |
244 ms |
344 KB |
Output is correct |
114 |
Correct |
282 ms |
344 KB |
Output is correct |
115 |
Correct |
261 ms |
344 KB |
Output is correct |
116 |
Correct |
254 ms |
344 KB |
Output is correct |
117 |
Correct |
241 ms |
340 KB |
Output is correct |
118 |
Correct |
263 ms |
344 KB |
Output is correct |
119 |
Correct |
249 ms |
344 KB |
Output is correct |
120 |
Correct |
251 ms |
344 KB |
Output is correct |
121 |
Correct |
0 ms |
344 KB |
Output is correct |
122 |
Correct |
248 ms |
344 KB |
Output is correct |
123 |
Correct |
32 ms |
344 KB |
Output is correct |
124 |
Correct |
269 ms |
344 KB |
Output is correct |
125 |
Correct |
234 ms |
344 KB |
Output is correct |
126 |
Correct |
3 ms |
344 KB |
Output is correct |
127 |
Correct |
261 ms |
344 KB |
Output is correct |
128 |
Correct |
14 ms |
344 KB |
Output is correct |
129 |
Correct |
228 ms |
344 KB |
Output is correct |
130 |
Correct |
246 ms |
344 KB |
Output is correct |
131 |
Correct |
55 ms |
344 KB |
Output is correct |
132 |
Correct |
219 ms |
344 KB |
Output is correct |
133 |
Correct |
4 ms |
344 KB |
Output is correct |
134 |
Correct |
4 ms |
344 KB |
Output is correct |
135 |
Correct |
3 ms |
344 KB |
Output is correct |
136 |
Correct |
227 ms |
344 KB |
Output is correct |
137 |
Correct |
13 ms |
344 KB |
Output is correct |
138 |
Correct |
230 ms |
344 KB |
Output is correct |
139 |
Correct |
250 ms |
344 KB |
Output is correct |
140 |
Correct |
8 ms |
344 KB |
Output is correct |
141 |
Correct |
221 ms |
344 KB |
Output is correct |
142 |
Correct |
237 ms |
344 KB |
Output is correct |
143 |
Correct |
216 ms |
416 KB |
Output is correct |
144 |
Correct |
194 ms |
344 KB |
Output is correct |
145 |
Correct |
18 ms |
344 KB |
Output is correct |
146 |
Correct |
28 ms |
344 KB |
Output is correct |
147 |
Correct |
15 ms |
344 KB |
Output is correct |
148 |
Correct |
217 ms |
344 KB |
Output is correct |
149 |
Correct |
230 ms |
344 KB |
Output is correct |
150 |
Correct |
240 ms |
344 KB |
Output is correct |
151 |
Correct |
263 ms |
344 KB |
Output is correct |
152 |
Correct |
247 ms |
340 KB |
Output is correct |
153 |
Correct |
206 ms |
344 KB |
Output is correct |
154 |
Correct |
210 ms |
344 KB |
Output is correct |
155 |
Correct |
223 ms |
344 KB |
Output is correct |
156 |
Correct |
266 ms |
344 KB |
Output is correct |
157 |
Correct |
258 ms |
600 KB |
Output is correct |
158 |
Correct |
233 ms |
428 KB |
Output is correct |
159 |
Correct |
253 ms |
416 KB |
Output is correct |
160 |
Correct |
250 ms |
344 KB |
Output is correct |
161 |
Correct |
241 ms |
344 KB |
Output is correct |
162 |
Correct |
301 ms |
344 KB |
Output is correct |
163 |
Correct |
281 ms |
344 KB |
Output is correct |
164 |
Correct |
267 ms |
344 KB |
Output is correct |
165 |
Correct |
277 ms |
344 KB |
Output is correct |
166 |
Correct |
271 ms |
432 KB |
Output is correct |
167 |
Correct |
235 ms |
600 KB |
Output is correct |
168 |
Correct |
251 ms |
344 KB |
Output is correct |
169 |
Correct |
286 ms |
344 KB |
Output is correct |
170 |
Correct |
278 ms |
344 KB |
Output is correct |
171 |
Correct |
287 ms |
344 KB |
Output is correct |
172 |
Correct |
269 ms |
344 KB |
Output is correct |
173 |
Correct |
247 ms |
344 KB |
Output is correct |
174 |
Correct |
286 ms |
344 KB |
Output is correct |
175 |
Correct |
253 ms |
344 KB |
Output is correct |
176 |
Correct |
245 ms |
344 KB |
Output is correct |
177 |
Correct |
299 ms |
344 KB |
Output is correct |
178 |
Correct |
277 ms |
504 KB |
Output is correct |
179 |
Correct |
256 ms |
432 KB |
Output is correct |
180 |
Correct |
244 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
344 KB |
Partially correct |
2 |
Partially correct |
298 ms |
584 KB |
Partially correct |
3 |
Partially correct |
288 ms |
344 KB |
Partially correct |
4 |
Partially correct |
320 ms |
596 KB |
Partially correct |
5 |
Partially correct |
288 ms |
344 KB |
Partially correct |
6 |
Partially correct |
315 ms |
424 KB |
Partially correct |
7 |
Partially correct |
304 ms |
424 KB |
Partially correct |
8 |
Partially correct |
303 ms |
344 KB |
Partially correct |
9 |
Partially correct |
309 ms |
344 KB |
Partially correct |
10 |
Partially correct |
287 ms |
344 KB |
Partially correct |
11 |
Partially correct |
287 ms |
344 KB |
Partially correct |
12 |
Partially correct |
226 ms |
344 KB |
Partially correct |
13 |
Partially correct |
37 ms |
344 KB |
Partially correct |
14 |
Partially correct |
236 ms |
340 KB |
Partially correct |
15 |
Partially correct |
256 ms |
344 KB |
Partially correct |
16 |
Partially correct |
7 ms |
344 KB |
Partially correct |
17 |
Partially correct |
242 ms |
344 KB |
Partially correct |
18 |
Partially correct |
19 ms |
344 KB |
Partially correct |
19 |
Partially correct |
236 ms |
344 KB |
Partially correct |
20 |
Partially correct |
230 ms |
344 KB |
Partially correct |
21 |
Partially correct |
67 ms |
344 KB |
Partially correct |
22 |
Partially correct |
249 ms |
344 KB |
Partially correct |
23 |
Partially correct |
5 ms |
344 KB |
Partially correct |
24 |
Partially correct |
4 ms |
344 KB |
Partially correct |
25 |
Partially correct |
4 ms |
344 KB |
Partially correct |
26 |
Partially correct |
258 ms |
344 KB |
Partially correct |
27 |
Partially correct |
18 ms |
344 KB |
Partially correct |
28 |
Partially correct |
269 ms |
504 KB |
Partially correct |
29 |
Partially correct |
290 ms |
344 KB |
Partially correct |
30 |
Partially correct |
6 ms |
344 KB |
Partially correct |
31 |
Partially correct |
252 ms |
440 KB |
Partially correct |
32 |
Partially correct |
274 ms |
344 KB |
Partially correct |
33 |
Partially correct |
260 ms |
412 KB |
Partially correct |
34 |
Partially correct |
229 ms |
344 KB |
Partially correct |
35 |
Partially correct |
18 ms |
436 KB |
Partially correct |
36 |
Partially correct |
36 ms |
432 KB |
Partially correct |
37 |
Partially correct |
21 ms |
436 KB |
Partially correct |
38 |
Partially correct |
270 ms |
344 KB |
Partially correct |
39 |
Partially correct |
244 ms |
344 KB |
Partially correct |
40 |
Partially correct |
251 ms |
340 KB |
Partially correct |
41 |
Partially correct |
224 ms |
344 KB |
Partially correct |
42 |
Partially correct |
252 ms |
344 KB |
Partially correct |
43 |
Partially correct |
250 ms |
344 KB |
Partially correct |
44 |
Partially correct |
254 ms |
344 KB |
Partially correct |
45 |
Partially correct |
250 ms |
432 KB |
Partially correct |
46 |
Partially correct |
235 ms |
344 KB |
Partially correct |
47 |
Partially correct |
261 ms |
344 KB |
Partially correct |
48 |
Partially correct |
277 ms |
344 KB |
Partially correct |
49 |
Partially correct |
274 ms |
344 KB |
Partially correct |
50 |
Partially correct |
301 ms |
344 KB |
Partially correct |
51 |
Partially correct |
286 ms |
344 KB |
Partially correct |
52 |
Partially correct |
283 ms |
600 KB |
Partially correct |
53 |
Partially correct |
291 ms |
344 KB |
Partially correct |
54 |
Partially correct |
238 ms |
344 KB |
Partially correct |
55 |
Partially correct |
279 ms |
344 KB |
Partially correct |
56 |
Partially correct |
270 ms |
344 KB |
Partially correct |
57 |
Partially correct |
258 ms |
428 KB |
Partially correct |
58 |
Partially correct |
255 ms |
344 KB |
Partially correct |
59 |
Partially correct |
256 ms |
344 KB |
Partially correct |
60 |
Partially correct |
286 ms |
344 KB |
Partially correct |
61 |
Partially correct |
272 ms |
344 KB |
Partially correct |
62 |
Partially correct |
255 ms |
344 KB |
Partially correct |
63 |
Partially correct |
258 ms |
596 KB |
Partially correct |
64 |
Partially correct |
256 ms |
344 KB |
Partially correct |
65 |
Partially correct |
268 ms |
344 KB |
Partially correct |
66 |
Partially correct |
233 ms |
344 KB |
Partially correct |
67 |
Partially correct |
269 ms |
344 KB |
Partially correct |
68 |
Partially correct |
265 ms |
344 KB |
Partially correct |
69 |
Partially correct |
270 ms |
600 KB |
Partially correct |
70 |
Partially correct |
220 ms |
620 KB |
Partially correct |
71 |
Partially correct |
269 ms |
344 KB |
Partially correct |
72 |
Partially correct |
363 ms |
424 KB |
Partially correct |
73 |
Partially correct |
375 ms |
432 KB |
Partially correct |
74 |
Partially correct |
351 ms |
344 KB |
Partially correct |
75 |
Partially correct |
343 ms |
424 KB |
Partially correct |
76 |
Partially correct |
309 ms |
420 KB |
Partially correct |
77 |
Partially correct |
289 ms |
344 KB |
Partially correct |
78 |
Partially correct |
291 ms |
600 KB |
Partially correct |
79 |
Partially correct |
271 ms |
600 KB |
Partially correct |
80 |
Partially correct |
347 ms |
596 KB |
Partially correct |
81 |
Partially correct |
341 ms |
344 KB |
Partially correct |
82 |
Partially correct |
376 ms |
344 KB |
Partially correct |
83 |
Partially correct |
364 ms |
436 KB |
Partially correct |
84 |
Partially correct |
234 ms |
600 KB |
Partially correct |
85 |
Partially correct |
283 ms |
344 KB |
Partially correct |
86 |
Partially correct |
260 ms |
344 KB |
Partially correct |
87 |
Partially correct |
366 ms |
448 KB |
Partially correct |
88 |
Partially correct |
279 ms |
428 KB |
Partially correct |
89 |
Partially correct |
329 ms |
344 KB |
Partially correct |
90 |
Partially correct |
329 ms |
420 KB |
Partially correct |
91 |
Partially correct |
285 ms |
600 KB |
Partially correct |
92 |
Partially correct |
287 ms |
344 KB |
Partially correct |
93 |
Partially correct |
283 ms |
432 KB |
Partially correct |
94 |
Partially correct |
256 ms |
424 KB |
Partially correct |
95 |
Partially correct |
336 ms |
600 KB |
Partially correct |
96 |
Partially correct |
347 ms |
344 KB |
Partially correct |
97 |
Partially correct |
359 ms |
600 KB |
Partially correct |
98 |
Partially correct |
341 ms |
344 KB |
Partially correct |
99 |
Partially correct |
281 ms |
504 KB |
Partially correct |
100 |
Partially correct |
270 ms |
600 KB |
Partially correct |
101 |
Partially correct |
302 ms |
696 KB |
Partially correct |
102 |
Partially correct |
319 ms |
592 KB |
Partially correct |
103 |
Partially correct |
320 ms |
424 KB |
Partially correct |
104 |
Partially correct |
366 ms |
600 KB |
Partially correct |
105 |
Partially correct |
331 ms |
600 KB |
Partially correct |
106 |
Partially correct |
292 ms |
424 KB |
Partially correct |
107 |
Partially correct |
312 ms |
344 KB |
Partially correct |
108 |
Partially correct |
170 ms |
440 KB |
Partially correct |
109 |
Partially correct |
253 ms |
420 KB |
Partially correct |
110 |
Partially correct |
322 ms |
452 KB |
Partially correct |
111 |
Partially correct |
298 ms |
448 KB |
Partially correct |
112 |
Partially correct |
373 ms |
416 KB |
Partially correct |
113 |
Partially correct |
328 ms |
424 KB |
Partially correct |
114 |
Partially correct |
259 ms |
344 KB |
Partially correct |
115 |
Partially correct |
272 ms |
344 KB |
Partially correct |
116 |
Partially correct |
295 ms |
592 KB |
Partially correct |
117 |
Partially correct |
356 ms |
432 KB |
Partially correct |
118 |
Partially correct |
346 ms |
432 KB |
Partially correct |
119 |
Partially correct |
351 ms |
344 KB |
Partially correct |
120 |
Partially correct |
360 ms |
448 KB |
Partially correct |
121 |
Partially correct |
319 ms |
420 KB |
Partially correct |
122 |
Partially correct |
296 ms |
344 KB |
Partially correct |
123 |
Partially correct |
283 ms |
436 KB |
Partially correct |
124 |
Partially correct |
298 ms |
440 KB |
Partially correct |
125 |
Partially correct |
334 ms |
344 KB |
Partially correct |
126 |
Partially correct |
352 ms |
344 KB |
Partially correct |
127 |
Partially correct |
388 ms |
440 KB |
Partially correct |
128 |
Partially correct |
376 ms |
420 KB |
Partially correct |
129 |
Partially correct |
290 ms |
444 KB |
Partially correct |
130 |
Partially correct |
273 ms |
344 KB |
Partially correct |