#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);
}
pair<ll, vector<ll>> leave(ll p) {
N -= p;
return solve(p);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
504 KB |
Correct |
2 |
Correct |
276 ms |
612 KB |
Correct |
3 |
Correct |
296 ms |
344 KB |
Correct |
4 |
Correct |
302 ms |
344 KB |
Correct |
5 |
Correct |
324 ms |
344 KB |
Correct |
6 |
Correct |
333 ms |
344 KB |
Correct |
7 |
Correct |
295 ms |
344 KB |
Correct |
8 |
Correct |
293 ms |
344 KB |
Correct |
9 |
Correct |
311 ms |
424 KB |
Correct |
10 |
Correct |
303 ms |
344 KB |
Correct |
11 |
Correct |
339 ms |
340 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Correct |
2 |
Correct |
211 ms |
344 KB |
Correct |
3 |
Correct |
27 ms |
340 KB |
Correct |
4 |
Correct |
244 ms |
344 KB |
Correct |
5 |
Correct |
226 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
234 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
344 KB |
Correct |
9 |
Correct |
232 ms |
344 KB |
Correct |
10 |
Correct |
290 ms |
344 KB |
Correct |
11 |
Correct |
85 ms |
344 KB |
Correct |
12 |
Correct |
231 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Correct |
2 |
Correct |
211 ms |
344 KB |
Correct |
3 |
Correct |
27 ms |
340 KB |
Correct |
4 |
Correct |
244 ms |
344 KB |
Correct |
5 |
Correct |
226 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
234 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
344 KB |
Correct |
9 |
Correct |
232 ms |
344 KB |
Correct |
10 |
Correct |
290 ms |
344 KB |
Correct |
11 |
Correct |
85 ms |
344 KB |
Correct |
12 |
Correct |
231 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
220 ms |
344 KB |
Correct |
15 |
Correct |
35 ms |
344 KB |
Correct |
16 |
Correct |
227 ms |
340 KB |
Correct |
17 |
Correct |
221 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
298 ms |
344 KB |
Correct |
20 |
Correct |
18 ms |
344 KB |
Correct |
21 |
Correct |
222 ms |
344 KB |
Correct |
22 |
Correct |
221 ms |
344 KB |
Correct |
23 |
Correct |
64 ms |
344 KB |
Correct |
24 |
Correct |
230 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
3 ms |
344 KB |
Correct |
28 |
Correct |
243 ms |
348 KB |
Correct |
29 |
Correct |
13 ms |
340 KB |
Correct |
30 |
Correct |
216 ms |
432 KB |
Correct |
31 |
Correct |
231 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
234 ms |
432 KB |
Correct |
34 |
Correct |
247 ms |
344 KB |
Correct |
35 |
Correct |
223 ms |
408 KB |
Correct |
36 |
Correct |
212 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Correct |
2 |
Correct |
211 ms |
344 KB |
Correct |
3 |
Correct |
27 ms |
340 KB |
Correct |
4 |
Correct |
244 ms |
344 KB |
Correct |
5 |
Correct |
226 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
234 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
344 KB |
Correct |
9 |
Correct |
232 ms |
344 KB |
Correct |
10 |
Correct |
290 ms |
344 KB |
Correct |
11 |
Correct |
85 ms |
344 KB |
Correct |
12 |
Correct |
231 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
220 ms |
344 KB |
Correct |
15 |
Correct |
35 ms |
344 KB |
Correct |
16 |
Correct |
227 ms |
340 KB |
Correct |
17 |
Correct |
221 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
298 ms |
344 KB |
Correct |
20 |
Correct |
18 ms |
344 KB |
Correct |
21 |
Correct |
222 ms |
344 KB |
Correct |
22 |
Correct |
221 ms |
344 KB |
Correct |
23 |
Correct |
64 ms |
344 KB |
Correct |
24 |
Correct |
230 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
3 ms |
344 KB |
Correct |
28 |
Correct |
243 ms |
348 KB |
Correct |
29 |
Correct |
13 ms |
340 KB |
Correct |
30 |
Correct |
216 ms |
432 KB |
Correct |
31 |
Correct |
231 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
234 ms |
432 KB |
Correct |
34 |
Correct |
247 ms |
344 KB |
Correct |
35 |
Correct |
223 ms |
408 KB |
Correct |
36 |
Correct |
212 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
227 ms |
344 KB |
Correct |
39 |
Correct |
49 ms |
344 KB |
Correct |
40 |
Correct |
200 ms |
344 KB |
Correct |
41 |
Correct |
226 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
237 ms |
344 KB |
Correct |
44 |
Correct |
26 ms |
344 KB |
Correct |
45 |
Correct |
249 ms |
344 KB |
Correct |
46 |
Correct |
247 ms |
344 KB |
Correct |
47 |
Correct |
56 ms |
344 KB |
Correct |
48 |
Correct |
229 ms |
344 KB |
Correct |
49 |
Correct |
5 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
344 KB |
Correct |
52 |
Correct |
229 ms |
344 KB |
Correct |
53 |
Correct |
13 ms |
344 KB |
Correct |
54 |
Correct |
250 ms |
344 KB |
Correct |
55 |
Correct |
272 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
234 ms |
600 KB |
Correct |
58 |
Correct |
255 ms |
344 KB |
Correct |
59 |
Correct |
237 ms |
412 KB |
Correct |
60 |
Correct |
207 ms |
344 KB |
Correct |
61 |
Correct |
18 ms |
344 KB |
Correct |
62 |
Correct |
35 ms |
432 KB |
Correct |
63 |
Correct |
18 ms |
344 KB |
Correct |
64 |
Correct |
244 ms |
344 KB |
Correct |
65 |
Correct |
233 ms |
344 KB |
Correct |
66 |
Correct |
248 ms |
340 KB |
Correct |
67 |
Correct |
244 ms |
344 KB |
Correct |
68 |
Correct |
244 ms |
344 KB |
Correct |
69 |
Correct |
275 ms |
512 KB |
Correct |
70 |
Correct |
220 ms |
344 KB |
Correct |
71 |
Correct |
226 ms |
436 KB |
Correct |
72 |
Correct |
209 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Correct |
2 |
Correct |
211 ms |
344 KB |
Correct |
3 |
Correct |
27 ms |
340 KB |
Correct |
4 |
Correct |
244 ms |
344 KB |
Correct |
5 |
Correct |
226 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
234 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
344 KB |
Correct |
9 |
Correct |
232 ms |
344 KB |
Correct |
10 |
Correct |
290 ms |
344 KB |
Correct |
11 |
Correct |
85 ms |
344 KB |
Correct |
12 |
Correct |
231 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
220 ms |
344 KB |
Correct |
15 |
Correct |
35 ms |
344 KB |
Correct |
16 |
Correct |
227 ms |
340 KB |
Correct |
17 |
Correct |
221 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
298 ms |
344 KB |
Correct |
20 |
Correct |
18 ms |
344 KB |
Correct |
21 |
Correct |
222 ms |
344 KB |
Correct |
22 |
Correct |
221 ms |
344 KB |
Correct |
23 |
Correct |
64 ms |
344 KB |
Correct |
24 |
Correct |
230 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
3 ms |
344 KB |
Correct |
28 |
Correct |
243 ms |
348 KB |
Correct |
29 |
Correct |
13 ms |
340 KB |
Correct |
30 |
Correct |
216 ms |
432 KB |
Correct |
31 |
Correct |
231 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
234 ms |
432 KB |
Correct |
34 |
Correct |
247 ms |
344 KB |
Correct |
35 |
Correct |
223 ms |
408 KB |
Correct |
36 |
Correct |
212 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
227 ms |
344 KB |
Correct |
39 |
Correct |
49 ms |
344 KB |
Correct |
40 |
Correct |
200 ms |
344 KB |
Correct |
41 |
Correct |
226 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
237 ms |
344 KB |
Correct |
44 |
Correct |
26 ms |
344 KB |
Correct |
45 |
Correct |
249 ms |
344 KB |
Correct |
46 |
Correct |
247 ms |
344 KB |
Correct |
47 |
Correct |
56 ms |
344 KB |
Correct |
48 |
Correct |
229 ms |
344 KB |
Correct |
49 |
Correct |
5 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
344 KB |
Correct |
52 |
Correct |
229 ms |
344 KB |
Correct |
53 |
Correct |
13 ms |
344 KB |
Correct |
54 |
Correct |
250 ms |
344 KB |
Correct |
55 |
Correct |
272 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
234 ms |
600 KB |
Correct |
58 |
Correct |
255 ms |
344 KB |
Correct |
59 |
Correct |
237 ms |
412 KB |
Correct |
60 |
Correct |
207 ms |
344 KB |
Correct |
61 |
Correct |
18 ms |
344 KB |
Correct |
62 |
Correct |
35 ms |
432 KB |
Correct |
63 |
Correct |
18 ms |
344 KB |
Correct |
64 |
Correct |
244 ms |
344 KB |
Correct |
65 |
Correct |
233 ms |
344 KB |
Correct |
66 |
Correct |
248 ms |
340 KB |
Correct |
67 |
Correct |
244 ms |
344 KB |
Correct |
68 |
Correct |
244 ms |
344 KB |
Correct |
69 |
Correct |
275 ms |
512 KB |
Correct |
70 |
Correct |
220 ms |
344 KB |
Correct |
71 |
Correct |
226 ms |
436 KB |
Correct |
72 |
Correct |
209 ms |
344 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
226 ms |
344 KB |
Correct |
75 |
Correct |
34 ms |
344 KB |
Correct |
76 |
Correct |
241 ms |
344 KB |
Correct |
77 |
Correct |
263 ms |
344 KB |
Correct |
78 |
Correct |
4 ms |
344 KB |
Correct |
79 |
Correct |
242 ms |
344 KB |
Correct |
80 |
Correct |
17 ms |
344 KB |
Correct |
81 |
Correct |
250 ms |
344 KB |
Correct |
82 |
Correct |
265 ms |
344 KB |
Correct |
83 |
Correct |
61 ms |
344 KB |
Correct |
84 |
Correct |
251 ms |
344 KB |
Correct |
85 |
Correct |
4 ms |
344 KB |
Correct |
86 |
Correct |
4 ms |
344 KB |
Correct |
87 |
Correct |
3 ms |
344 KB |
Correct |
88 |
Correct |
206 ms |
340 KB |
Correct |
89 |
Correct |
14 ms |
344 KB |
Correct |
90 |
Correct |
203 ms |
344 KB |
Correct |
91 |
Correct |
264 ms |
344 KB |
Correct |
92 |
Correct |
6 ms |
344 KB |
Correct |
93 |
Correct |
234 ms |
600 KB |
Correct |
94 |
Correct |
233 ms |
344 KB |
Correct |
95 |
Correct |
248 ms |
408 KB |
Correct |
96 |
Correct |
214 ms |
344 KB |
Correct |
97 |
Correct |
20 ms |
344 KB |
Correct |
98 |
Correct |
38 ms |
344 KB |
Correct |
99 |
Correct |
18 ms |
344 KB |
Correct |
100 |
Correct |
218 ms |
600 KB |
Correct |
101 |
Correct |
243 ms |
344 KB |
Correct |
102 |
Correct |
259 ms |
344 KB |
Correct |
103 |
Correct |
237 ms |
344 KB |
Correct |
104 |
Correct |
249 ms |
344 KB |
Correct |
105 |
Correct |
222 ms |
344 KB |
Correct |
106 |
Correct |
260 ms |
344 KB |
Correct |
107 |
Correct |
256 ms |
344 KB |
Correct |
108 |
Correct |
236 ms |
344 KB |
Correct |
109 |
Correct |
272 ms |
344 KB |
Correct |
110 |
Correct |
240 ms |
344 KB |
Correct |
111 |
Correct |
262 ms |
344 KB |
Correct |
112 |
Correct |
276 ms |
344 KB |
Correct |
113 |
Correct |
210 ms |
344 KB |
Correct |
114 |
Correct |
242 ms |
852 KB |
Correct |
115 |
Correct |
246 ms |
344 KB |
Correct |
116 |
Correct |
200 ms |
344 KB |
Correct |
117 |
Correct |
250 ms |
344 KB |
Correct |
118 |
Correct |
254 ms |
344 KB |
Correct |
119 |
Correct |
238 ms |
600 KB |
Correct |
120 |
Correct |
236 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Correct |
2 |
Correct |
211 ms |
344 KB |
Correct |
3 |
Correct |
27 ms |
340 KB |
Correct |
4 |
Correct |
244 ms |
344 KB |
Correct |
5 |
Correct |
226 ms |
344 KB |
Correct |
6 |
Correct |
4 ms |
344 KB |
Correct |
7 |
Correct |
234 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
344 KB |
Correct |
9 |
Correct |
232 ms |
344 KB |
Correct |
10 |
Correct |
290 ms |
344 KB |
Correct |
11 |
Correct |
85 ms |
344 KB |
Correct |
12 |
Correct |
231 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
220 ms |
344 KB |
Correct |
15 |
Correct |
35 ms |
344 KB |
Correct |
16 |
Correct |
227 ms |
340 KB |
Correct |
17 |
Correct |
221 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
298 ms |
344 KB |
Correct |
20 |
Correct |
18 ms |
344 KB |
Correct |
21 |
Correct |
222 ms |
344 KB |
Correct |
22 |
Correct |
221 ms |
344 KB |
Correct |
23 |
Correct |
64 ms |
344 KB |
Correct |
24 |
Correct |
230 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
3 ms |
344 KB |
Correct |
28 |
Correct |
243 ms |
348 KB |
Correct |
29 |
Correct |
13 ms |
340 KB |
Correct |
30 |
Correct |
216 ms |
432 KB |
Correct |
31 |
Correct |
231 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
234 ms |
432 KB |
Correct |
34 |
Correct |
247 ms |
344 KB |
Correct |
35 |
Correct |
223 ms |
408 KB |
Correct |
36 |
Correct |
212 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
227 ms |
344 KB |
Correct |
39 |
Correct |
49 ms |
344 KB |
Correct |
40 |
Correct |
200 ms |
344 KB |
Correct |
41 |
Correct |
226 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
237 ms |
344 KB |
Correct |
44 |
Correct |
26 ms |
344 KB |
Correct |
45 |
Correct |
249 ms |
344 KB |
Correct |
46 |
Correct |
247 ms |
344 KB |
Correct |
47 |
Correct |
56 ms |
344 KB |
Correct |
48 |
Correct |
229 ms |
344 KB |
Correct |
49 |
Correct |
5 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
344 KB |
Correct |
52 |
Correct |
229 ms |
344 KB |
Correct |
53 |
Correct |
13 ms |
344 KB |
Correct |
54 |
Correct |
250 ms |
344 KB |
Correct |
55 |
Correct |
272 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
234 ms |
600 KB |
Correct |
58 |
Correct |
255 ms |
344 KB |
Correct |
59 |
Correct |
237 ms |
412 KB |
Correct |
60 |
Correct |
207 ms |
344 KB |
Correct |
61 |
Correct |
18 ms |
344 KB |
Correct |
62 |
Correct |
35 ms |
432 KB |
Correct |
63 |
Correct |
18 ms |
344 KB |
Correct |
64 |
Correct |
244 ms |
344 KB |
Correct |
65 |
Correct |
233 ms |
344 KB |
Correct |
66 |
Correct |
248 ms |
340 KB |
Correct |
67 |
Correct |
244 ms |
344 KB |
Correct |
68 |
Correct |
244 ms |
344 KB |
Correct |
69 |
Correct |
275 ms |
512 KB |
Correct |
70 |
Correct |
220 ms |
344 KB |
Correct |
71 |
Correct |
226 ms |
436 KB |
Correct |
72 |
Correct |
209 ms |
344 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
226 ms |
344 KB |
Correct |
75 |
Correct |
34 ms |
344 KB |
Correct |
76 |
Correct |
241 ms |
344 KB |
Correct |
77 |
Correct |
263 ms |
344 KB |
Correct |
78 |
Correct |
4 ms |
344 KB |
Correct |
79 |
Correct |
242 ms |
344 KB |
Correct |
80 |
Correct |
17 ms |
344 KB |
Correct |
81 |
Correct |
250 ms |
344 KB |
Correct |
82 |
Correct |
265 ms |
344 KB |
Correct |
83 |
Correct |
61 ms |
344 KB |
Correct |
84 |
Correct |
251 ms |
344 KB |
Correct |
85 |
Correct |
4 ms |
344 KB |
Correct |
86 |
Correct |
4 ms |
344 KB |
Correct |
87 |
Correct |
3 ms |
344 KB |
Correct |
88 |
Correct |
206 ms |
340 KB |
Correct |
89 |
Correct |
14 ms |
344 KB |
Correct |
90 |
Correct |
203 ms |
344 KB |
Correct |
91 |
Correct |
264 ms |
344 KB |
Correct |
92 |
Correct |
6 ms |
344 KB |
Correct |
93 |
Correct |
234 ms |
600 KB |
Correct |
94 |
Correct |
233 ms |
344 KB |
Correct |
95 |
Correct |
248 ms |
408 KB |
Correct |
96 |
Correct |
214 ms |
344 KB |
Correct |
97 |
Correct |
20 ms |
344 KB |
Correct |
98 |
Correct |
38 ms |
344 KB |
Correct |
99 |
Correct |
18 ms |
344 KB |
Correct |
100 |
Correct |
218 ms |
600 KB |
Correct |
101 |
Correct |
243 ms |
344 KB |
Correct |
102 |
Correct |
259 ms |
344 KB |
Correct |
103 |
Correct |
237 ms |
344 KB |
Correct |
104 |
Correct |
249 ms |
344 KB |
Correct |
105 |
Correct |
222 ms |
344 KB |
Correct |
106 |
Correct |
260 ms |
344 KB |
Correct |
107 |
Correct |
256 ms |
344 KB |
Correct |
108 |
Correct |
236 ms |
344 KB |
Correct |
109 |
Correct |
272 ms |
344 KB |
Correct |
110 |
Correct |
240 ms |
344 KB |
Correct |
111 |
Correct |
262 ms |
344 KB |
Correct |
112 |
Correct |
276 ms |
344 KB |
Correct |
113 |
Correct |
210 ms |
344 KB |
Correct |
114 |
Correct |
242 ms |
852 KB |
Correct |
115 |
Correct |
246 ms |
344 KB |
Correct |
116 |
Correct |
200 ms |
344 KB |
Correct |
117 |
Correct |
250 ms |
344 KB |
Correct |
118 |
Correct |
254 ms |
344 KB |
Correct |
119 |
Correct |
238 ms |
600 KB |
Correct |
120 |
Correct |
236 ms |
344 KB |
Correct |
121 |
Correct |
0 ms |
344 KB |
Correct |
122 |
Correct |
207 ms |
344 KB |
Correct |
123 |
Correct |
29 ms |
340 KB |
Correct |
124 |
Correct |
249 ms |
344 KB |
Correct |
125 |
Correct |
222 ms |
344 KB |
Correct |
126 |
Correct |
3 ms |
340 KB |
Correct |
127 |
Correct |
259 ms |
344 KB |
Correct |
128 |
Correct |
13 ms |
596 KB |
Correct |
129 |
Correct |
234 ms |
344 KB |
Correct |
130 |
Correct |
233 ms |
344 KB |
Correct |
131 |
Correct |
59 ms |
340 KB |
Correct |
132 |
Correct |
222 ms |
344 KB |
Correct |
133 |
Correct |
5 ms |
344 KB |
Correct |
134 |
Correct |
3 ms |
344 KB |
Correct |
135 |
Correct |
4 ms |
344 KB |
Correct |
136 |
Correct |
243 ms |
344 KB |
Correct |
137 |
Correct |
14 ms |
344 KB |
Correct |
138 |
Correct |
241 ms |
344 KB |
Correct |
139 |
Correct |
241 ms |
344 KB |
Correct |
140 |
Correct |
6 ms |
344 KB |
Correct |
141 |
Correct |
216 ms |
344 KB |
Correct |
142 |
Correct |
268 ms |
344 KB |
Correct |
143 |
Correct |
243 ms |
412 KB |
Correct |
144 |
Correct |
233 ms |
596 KB |
Correct |
145 |
Correct |
14 ms |
600 KB |
Correct |
146 |
Correct |
44 ms |
592 KB |
Correct |
147 |
Correct |
16 ms |
344 KB |
Correct |
148 |
Correct |
293 ms |
344 KB |
Correct |
149 |
Correct |
303 ms |
344 KB |
Correct |
150 |
Correct |
246 ms |
344 KB |
Correct |
151 |
Correct |
257 ms |
596 KB |
Correct |
152 |
Correct |
196 ms |
344 KB |
Correct |
153 |
Correct |
228 ms |
344 KB |
Correct |
154 |
Correct |
254 ms |
344 KB |
Correct |
155 |
Correct |
232 ms |
436 KB |
Correct |
156 |
Correct |
228 ms |
344 KB |
Correct |
157 |
Correct |
223 ms |
344 KB |
Correct |
158 |
Correct |
226 ms |
408 KB |
Correct |
159 |
Correct |
232 ms |
344 KB |
Correct |
160 |
Correct |
247 ms |
344 KB |
Correct |
161 |
Correct |
183 ms |
344 KB |
Correct |
162 |
Correct |
228 ms |
600 KB |
Correct |
163 |
Correct |
239 ms |
344 KB |
Correct |
164 |
Correct |
216 ms |
344 KB |
Correct |
165 |
Correct |
266 ms |
344 KB |
Correct |
166 |
Correct |
279 ms |
344 KB |
Correct |
167 |
Correct |
251 ms |
440 KB |
Correct |
168 |
Correct |
267 ms |
344 KB |
Correct |
169 |
Correct |
273 ms |
344 KB |
Correct |
170 |
Correct |
282 ms |
344 KB |
Correct |
171 |
Correct |
285 ms |
344 KB |
Correct |
172 |
Correct |
268 ms |
344 KB |
Correct |
173 |
Correct |
255 ms |
344 KB |
Correct |
174 |
Correct |
287 ms |
344 KB |
Correct |
175 |
Correct |
271 ms |
344 KB |
Correct |
176 |
Correct |
267 ms |
344 KB |
Correct |
177 |
Correct |
282 ms |
344 KB |
Correct |
178 |
Correct |
247 ms |
344 KB |
Correct |
179 |
Correct |
261 ms |
344 KB |
Correct |
180 |
Correct |
283 ms |
504 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
266 ms |
424 KB |
Correct |
3 |
Correct |
269 ms |
344 KB |
Correct |
4 |
Correct |
297 ms |
344 KB |
Correct |
5 |
Correct |
281 ms |
344 KB |
Correct |
6 |
Correct |
276 ms |
344 KB |
Correct |
7 |
Correct |
321 ms |
432 KB |
Correct |
8 |
Correct |
267 ms |
600 KB |
Correct |
9 |
Correct |
264 ms |
344 KB |
Correct |
10 |
Correct |
301 ms |
344 KB |
Correct |
11 |
Correct |
285 ms |
344 KB |
Correct |
12 |
Correct |
259 ms |
344 KB |
Correct |
13 |
Correct |
33 ms |
344 KB |
Correct |
14 |
Correct |
224 ms |
344 KB |
Correct |
15 |
Correct |
211 ms |
344 KB |
Correct |
16 |
Correct |
3 ms |
344 KB |
Correct |
17 |
Correct |
224 ms |
344 KB |
Correct |
18 |
Correct |
24 ms |
344 KB |
Correct |
19 |
Correct |
244 ms |
344 KB |
Correct |
20 |
Correct |
233 ms |
344 KB |
Correct |
21 |
Correct |
56 ms |
344 KB |
Correct |
22 |
Correct |
213 ms |
344 KB |
Correct |
23 |
Correct |
5 ms |
344 KB |
Correct |
24 |
Correct |
3 ms |
344 KB |
Correct |
25 |
Correct |
3 ms |
344 KB |
Correct |
26 |
Correct |
227 ms |
344 KB |
Correct |
27 |
Correct |
17 ms |
344 KB |
Correct |
28 |
Correct |
173 ms |
344 KB |
Correct |
29 |
Correct |
230 ms |
344 KB |
Correct |
30 |
Correct |
9 ms |
344 KB |
Correct |
31 |
Correct |
231 ms |
436 KB |
Correct |
32 |
Correct |
252 ms |
344 KB |
Correct |
33 |
Correct |
233 ms |
412 KB |
Correct |
34 |
Correct |
228 ms |
340 KB |
Correct |
35 |
Correct |
15 ms |
432 KB |
Correct |
36 |
Correct |
47 ms |
432 KB |
Correct |
37 |
Correct |
15 ms |
436 KB |
Correct |
38 |
Correct |
270 ms |
344 KB |
Correct |
39 |
Correct |
245 ms |
344 KB |
Correct |
40 |
Correct |
283 ms |
344 KB |
Correct |
41 |
Correct |
233 ms |
344 KB |
Correct |
42 |
Correct |
267 ms |
344 KB |
Correct |
43 |
Correct |
272 ms |
344 KB |
Correct |
44 |
Correct |
254 ms |
344 KB |
Correct |
45 |
Correct |
253 ms |
344 KB |
Correct |
46 |
Correct |
262 ms |
344 KB |
Correct |
47 |
Correct |
276 ms |
344 KB |
Correct |
48 |
Correct |
276 ms |
412 KB |
Correct |
49 |
Correct |
253 ms |
412 KB |
Correct |
50 |
Correct |
290 ms |
344 KB |
Correct |
51 |
Correct |
229 ms |
344 KB |
Correct |
52 |
Correct |
252 ms |
344 KB |
Correct |
53 |
Correct |
281 ms |
344 KB |
Correct |
54 |
Correct |
264 ms |
344 KB |
Correct |
55 |
Correct |
295 ms |
344 KB |
Correct |
56 |
Correct |
258 ms |
344 KB |
Correct |
57 |
Correct |
274 ms |
344 KB |
Correct |
58 |
Correct |
267 ms |
344 KB |
Correct |
59 |
Correct |
257 ms |
344 KB |
Correct |
60 |
Correct |
260 ms |
344 KB |
Correct |
61 |
Correct |
324 ms |
344 KB |
Correct |
62 |
Correct |
289 ms |
344 KB |
Correct |
63 |
Correct |
261 ms |
344 KB |
Correct |
64 |
Correct |
267 ms |
344 KB |
Correct |
65 |
Correct |
259 ms |
344 KB |
Correct |
66 |
Correct |
232 ms |
344 KB |
Correct |
67 |
Correct |
285 ms |
344 KB |
Correct |
68 |
Correct |
264 ms |
344 KB |
Correct |
69 |
Correct |
265 ms |
344 KB |
Correct |
70 |
Correct |
286 ms |
344 KB |
Correct |
71 |
Correct |
275 ms |
600 KB |
Correct |
72 |
Correct |
311 ms |
428 KB |
Correct |
73 |
Correct |
375 ms |
436 KB |
Correct |
74 |
Correct |
336 ms |
344 KB |
Correct |
75 |
Correct |
320 ms |
596 KB |
Correct |
76 |
Correct |
317 ms |
416 KB |
Correct |
77 |
Correct |
307 ms |
344 KB |
Correct |
78 |
Correct |
293 ms |
428 KB |
Correct |
79 |
Correct |
285 ms |
596 KB |
Correct |
80 |
Correct |
333 ms |
448 KB |
Correct |
81 |
Correct |
346 ms |
688 KB |
Correct |
82 |
Correct |
376 ms |
424 KB |
Correct |
83 |
Correct |
390 ms |
448 KB |
Correct |
84 |
Correct |
322 ms |
344 KB |
Correct |
85 |
Correct |
285 ms |
344 KB |
Correct |
86 |
Correct |
301 ms |
344 KB |
Correct |
87 |
Correct |
346 ms |
676 KB |
Correct |
88 |
Correct |
330 ms |
432 KB |
Correct |
89 |
Correct |
370 ms |
344 KB |
Correct |
90 |
Correct |
330 ms |
600 KB |
Correct |
91 |
Correct |
316 ms |
596 KB |
Correct |
92 |
Correct |
313 ms |
344 KB |
Correct |
93 |
Correct |
289 ms |
688 KB |
Correct |
94 |
Correct |
269 ms |
424 KB |
Correct |
95 |
Correct |
343 ms |
344 KB |
Correct |
96 |
Correct |
351 ms |
344 KB |
Correct |
97 |
Correct |
386 ms |
600 KB |
Correct |
98 |
Correct |
373 ms |
600 KB |
Correct |
99 |
Correct |
276 ms |
344 KB |
Correct |
100 |
Correct |
302 ms |
344 KB |
Correct |
101 |
Correct |
306 ms |
344 KB |
Correct |
102 |
Correct |
346 ms |
440 KB |
Correct |
103 |
Correct |
364 ms |
424 KB |
Correct |
104 |
Correct |
351 ms |
420 KB |
Correct |
105 |
Correct |
356 ms |
600 KB |
Correct |
106 |
Correct |
311 ms |
416 KB |
Correct |
107 |
Correct |
280 ms |
344 KB |
Correct |
108 |
Correct |
182 ms |
436 KB |
Correct |
109 |
Correct |
312 ms |
420 KB |
Correct |
110 |
Correct |
341 ms |
344 KB |
Correct |
111 |
Correct |
363 ms |
344 KB |
Correct |
112 |
Correct |
378 ms |
592 KB |
Correct |
113 |
Correct |
384 ms |
592 KB |
Correct |
114 |
Correct |
245 ms |
344 KB |
Correct |
115 |
Correct |
282 ms |
344 KB |
Correct |
116 |
Correct |
309 ms |
600 KB |
Correct |
117 |
Correct |
369 ms |
436 KB |
Correct |
118 |
Correct |
307 ms |
432 KB |
Correct |
119 |
Correct |
329 ms |
344 KB |
Correct |
120 |
Correct |
348 ms |
424 KB |
Correct |
121 |
Correct |
355 ms |
424 KB |
Correct |
122 |
Correct |
299 ms |
344 KB |
Correct |
123 |
Correct |
276 ms |
696 KB |
Correct |
124 |
Correct |
281 ms |
432 KB |
Correct |
125 |
Correct |
317 ms |
344 KB |
Correct |
126 |
Correct |
350 ms |
344 KB |
Correct |
127 |
Correct |
361 ms |
448 KB |
Correct |
128 |
Correct |
346 ms |
592 KB |
Correct |
129 |
Correct |
260 ms |
344 KB |
Correct |
130 |
Correct |
285 ms |
344 KB |
Correct |