#include <bits/stdc++.h>
#define ll long long
using namespace std;
vector<ll> f;
ll n;
void prepare(){
n =1;
f ={1};
}
pair<long long, vector<long long>> join(long long p){
n+=p;
vector<ll> sol = {n};
ll temp = n;
while(temp>1){
temp -= min(temp-1, n-temp+2);
ll i = upper_bound(f.begin(), f.end(), temp)-f.begin()-1;
if(temp-f[i]>p){
temp = f[i+1];
}
sol.insert(sol.begin(), temp);
}
swap(sol, f);
return {p, f};
}
pair<long long, vector<long long>> leave(long long p){
n-=p;
vector<ll> sol = {n};
ll temp = n;
while(temp>1){
temp -= min(temp-1, n-temp+2);
ll i = upper_bound(f.begin(), f.end(), temp)-f.begin()-1;
if(temp-f[i]>p){
temp = f[i+1];
}
sol.insert(sol.begin(), temp);
}
swap(sol, f);
return {p, f};
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
350 ms |
344 KB |
Correct |
3 |
Correct |
342 ms |
344 KB |
Correct |
4 |
Correct |
321 ms |
344 KB |
Correct |
5 |
Correct |
341 ms |
340 KB |
Correct |
6 |
Correct |
334 ms |
344 KB |
Correct |
7 |
Correct |
339 ms |
344 KB |
Correct |
8 |
Correct |
343 ms |
344 KB |
Correct |
9 |
Correct |
330 ms |
344 KB |
Correct |
10 |
Correct |
347 ms |
344 KB |
Correct |
11 |
Correct |
320 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
287 ms |
344 KB |
Correct |
3 |
Correct |
41 ms |
344 KB |
Correct |
4 |
Correct |
275 ms |
344 KB |
Correct |
5 |
Correct |
277 ms |
344 KB |
Correct |
6 |
Correct |
7 ms |
344 KB |
Correct |
7 |
Correct |
278 ms |
344 KB |
Correct |
8 |
Correct |
16 ms |
344 KB |
Correct |
9 |
Correct |
291 ms |
344 KB |
Correct |
10 |
Correct |
260 ms |
344 KB |
Correct |
11 |
Correct |
75 ms |
344 KB |
Correct |
12 |
Correct |
279 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
287 ms |
344 KB |
Correct |
3 |
Correct |
41 ms |
344 KB |
Correct |
4 |
Correct |
275 ms |
344 KB |
Correct |
5 |
Correct |
277 ms |
344 KB |
Correct |
6 |
Correct |
7 ms |
344 KB |
Correct |
7 |
Correct |
278 ms |
344 KB |
Correct |
8 |
Correct |
16 ms |
344 KB |
Correct |
9 |
Correct |
291 ms |
344 KB |
Correct |
10 |
Correct |
260 ms |
344 KB |
Correct |
11 |
Correct |
75 ms |
344 KB |
Correct |
12 |
Correct |
279 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
296 ms |
344 KB |
Correct |
15 |
Correct |
39 ms |
344 KB |
Correct |
16 |
Correct |
238 ms |
344 KB |
Correct |
17 |
Correct |
283 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
279 ms |
344 KB |
Correct |
20 |
Correct |
23 ms |
344 KB |
Correct |
21 |
Correct |
315 ms |
344 KB |
Correct |
22 |
Correct |
266 ms |
344 KB |
Correct |
23 |
Correct |
79 ms |
344 KB |
Correct |
24 |
Correct |
258 ms |
344 KB |
Correct |
25 |
Correct |
4 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
258 ms |
344 KB |
Correct |
29 |
Correct |
12 ms |
596 KB |
Correct |
30 |
Correct |
295 ms |
344 KB |
Correct |
31 |
Correct |
273 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
308 ms |
344 KB |
Correct |
34 |
Correct |
294 ms |
344 KB |
Correct |
35 |
Correct |
291 ms |
416 KB |
Correct |
36 |
Correct |
303 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
287 ms |
344 KB |
Correct |
3 |
Correct |
41 ms |
344 KB |
Correct |
4 |
Correct |
275 ms |
344 KB |
Correct |
5 |
Correct |
277 ms |
344 KB |
Correct |
6 |
Correct |
7 ms |
344 KB |
Correct |
7 |
Correct |
278 ms |
344 KB |
Correct |
8 |
Correct |
16 ms |
344 KB |
Correct |
9 |
Correct |
291 ms |
344 KB |
Correct |
10 |
Correct |
260 ms |
344 KB |
Correct |
11 |
Correct |
75 ms |
344 KB |
Correct |
12 |
Correct |
279 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
296 ms |
344 KB |
Correct |
15 |
Correct |
39 ms |
344 KB |
Correct |
16 |
Correct |
238 ms |
344 KB |
Correct |
17 |
Correct |
283 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
279 ms |
344 KB |
Correct |
20 |
Correct |
23 ms |
344 KB |
Correct |
21 |
Correct |
315 ms |
344 KB |
Correct |
22 |
Correct |
266 ms |
344 KB |
Correct |
23 |
Correct |
79 ms |
344 KB |
Correct |
24 |
Correct |
258 ms |
344 KB |
Correct |
25 |
Correct |
4 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
258 ms |
344 KB |
Correct |
29 |
Correct |
12 ms |
596 KB |
Correct |
30 |
Correct |
295 ms |
344 KB |
Correct |
31 |
Correct |
273 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
308 ms |
344 KB |
Correct |
34 |
Correct |
294 ms |
344 KB |
Correct |
35 |
Correct |
291 ms |
416 KB |
Correct |
36 |
Correct |
303 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
310 ms |
344 KB |
Correct |
39 |
Correct |
52 ms |
344 KB |
Correct |
40 |
Correct |
265 ms |
344 KB |
Correct |
41 |
Correct |
280 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
226 ms |
344 KB |
Correct |
44 |
Correct |
14 ms |
344 KB |
Correct |
45 |
Correct |
313 ms |
344 KB |
Correct |
46 |
Correct |
277 ms |
344 KB |
Correct |
47 |
Correct |
76 ms |
344 KB |
Correct |
48 |
Correct |
306 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
344 KB |
Correct |
52 |
Correct |
310 ms |
408 KB |
Correct |
53 |
Correct |
14 ms |
344 KB |
Correct |
54 |
Correct |
277 ms |
344 KB |
Correct |
55 |
Correct |
315 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
305 ms |
600 KB |
Correct |
58 |
Correct |
283 ms |
344 KB |
Correct |
59 |
Correct |
287 ms |
412 KB |
Correct |
60 |
Correct |
253 ms |
344 KB |
Correct |
61 |
Correct |
16 ms |
344 KB |
Correct |
62 |
Correct |
36 ms |
344 KB |
Correct |
63 |
Correct |
24 ms |
592 KB |
Correct |
64 |
Correct |
281 ms |
348 KB |
Correct |
65 |
Correct |
310 ms |
344 KB |
Correct |
66 |
Correct |
321 ms |
344 KB |
Correct |
67 |
Correct |
319 ms |
344 KB |
Correct |
68 |
Correct |
266 ms |
344 KB |
Correct |
69 |
Correct |
285 ms |
344 KB |
Correct |
70 |
Correct |
306 ms |
344 KB |
Correct |
71 |
Correct |
290 ms |
344 KB |
Correct |
72 |
Correct |
264 ms |
356 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
287 ms |
344 KB |
Correct |
3 |
Correct |
41 ms |
344 KB |
Correct |
4 |
Correct |
275 ms |
344 KB |
Correct |
5 |
Correct |
277 ms |
344 KB |
Correct |
6 |
Correct |
7 ms |
344 KB |
Correct |
7 |
Correct |
278 ms |
344 KB |
Correct |
8 |
Correct |
16 ms |
344 KB |
Correct |
9 |
Correct |
291 ms |
344 KB |
Correct |
10 |
Correct |
260 ms |
344 KB |
Correct |
11 |
Correct |
75 ms |
344 KB |
Correct |
12 |
Correct |
279 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
296 ms |
344 KB |
Correct |
15 |
Correct |
39 ms |
344 KB |
Correct |
16 |
Correct |
238 ms |
344 KB |
Correct |
17 |
Correct |
283 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
279 ms |
344 KB |
Correct |
20 |
Correct |
23 ms |
344 KB |
Correct |
21 |
Correct |
315 ms |
344 KB |
Correct |
22 |
Correct |
266 ms |
344 KB |
Correct |
23 |
Correct |
79 ms |
344 KB |
Correct |
24 |
Correct |
258 ms |
344 KB |
Correct |
25 |
Correct |
4 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
258 ms |
344 KB |
Correct |
29 |
Correct |
12 ms |
596 KB |
Correct |
30 |
Correct |
295 ms |
344 KB |
Correct |
31 |
Correct |
273 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
308 ms |
344 KB |
Correct |
34 |
Correct |
294 ms |
344 KB |
Correct |
35 |
Correct |
291 ms |
416 KB |
Correct |
36 |
Correct |
303 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
310 ms |
344 KB |
Correct |
39 |
Correct |
52 ms |
344 KB |
Correct |
40 |
Correct |
265 ms |
344 KB |
Correct |
41 |
Correct |
280 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
226 ms |
344 KB |
Correct |
44 |
Correct |
14 ms |
344 KB |
Correct |
45 |
Correct |
313 ms |
344 KB |
Correct |
46 |
Correct |
277 ms |
344 KB |
Correct |
47 |
Correct |
76 ms |
344 KB |
Correct |
48 |
Correct |
306 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
344 KB |
Correct |
52 |
Correct |
310 ms |
408 KB |
Correct |
53 |
Correct |
14 ms |
344 KB |
Correct |
54 |
Correct |
277 ms |
344 KB |
Correct |
55 |
Correct |
315 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
305 ms |
600 KB |
Correct |
58 |
Correct |
283 ms |
344 KB |
Correct |
59 |
Correct |
287 ms |
412 KB |
Correct |
60 |
Correct |
253 ms |
344 KB |
Correct |
61 |
Correct |
16 ms |
344 KB |
Correct |
62 |
Correct |
36 ms |
344 KB |
Correct |
63 |
Correct |
24 ms |
592 KB |
Correct |
64 |
Correct |
281 ms |
348 KB |
Correct |
65 |
Correct |
310 ms |
344 KB |
Correct |
66 |
Correct |
321 ms |
344 KB |
Correct |
67 |
Correct |
319 ms |
344 KB |
Correct |
68 |
Correct |
266 ms |
344 KB |
Correct |
69 |
Correct |
285 ms |
344 KB |
Correct |
70 |
Correct |
306 ms |
344 KB |
Correct |
71 |
Correct |
290 ms |
344 KB |
Correct |
72 |
Correct |
264 ms |
356 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
303 ms |
344 KB |
Correct |
75 |
Correct |
43 ms |
344 KB |
Correct |
76 |
Correct |
298 ms |
344 KB |
Correct |
77 |
Correct |
265 ms |
344 KB |
Correct |
78 |
Correct |
4 ms |
344 KB |
Correct |
79 |
Correct |
304 ms |
344 KB |
Correct |
80 |
Correct |
13 ms |
344 KB |
Correct |
81 |
Correct |
307 ms |
344 KB |
Correct |
82 |
Correct |
273 ms |
344 KB |
Correct |
83 |
Correct |
77 ms |
344 KB |
Correct |
84 |
Correct |
280 ms |
344 KB |
Correct |
85 |
Correct |
4 ms |
344 KB |
Correct |
86 |
Correct |
3 ms |
344 KB |
Correct |
87 |
Correct |
3 ms |
344 KB |
Correct |
88 |
Correct |
305 ms |
344 KB |
Correct |
89 |
Correct |
11 ms |
344 KB |
Correct |
90 |
Correct |
286 ms |
340 KB |
Correct |
91 |
Correct |
326 ms |
344 KB |
Correct |
92 |
Correct |
5 ms |
344 KB |
Correct |
93 |
Correct |
268 ms |
344 KB |
Correct |
94 |
Correct |
279 ms |
344 KB |
Correct |
95 |
Correct |
262 ms |
408 KB |
Correct |
96 |
Correct |
295 ms |
344 KB |
Correct |
97 |
Correct |
23 ms |
436 KB |
Correct |
98 |
Correct |
48 ms |
344 KB |
Correct |
99 |
Correct |
16 ms |
344 KB |
Correct |
100 |
Correct |
293 ms |
344 KB |
Correct |
101 |
Correct |
251 ms |
344 KB |
Correct |
102 |
Correct |
290 ms |
344 KB |
Correct |
103 |
Correct |
300 ms |
344 KB |
Correct |
104 |
Correct |
304 ms |
344 KB |
Correct |
105 |
Correct |
312 ms |
344 KB |
Correct |
106 |
Correct |
297 ms |
344 KB |
Correct |
107 |
Correct |
285 ms |
344 KB |
Correct |
108 |
Correct |
257 ms |
344 KB |
Correct |
109 |
Correct |
316 ms |
344 KB |
Correct |
110 |
Correct |
301 ms |
592 KB |
Correct |
111 |
Correct |
319 ms |
592 KB |
Correct |
112 |
Correct |
311 ms |
344 KB |
Correct |
113 |
Correct |
279 ms |
344 KB |
Correct |
114 |
Correct |
282 ms |
344 KB |
Correct |
115 |
Correct |
316 ms |
344 KB |
Correct |
116 |
Correct |
310 ms |
344 KB |
Correct |
117 |
Correct |
308 ms |
344 KB |
Correct |
118 |
Correct |
345 ms |
344 KB |
Correct |
119 |
Correct |
291 ms |
600 KB |
Correct |
120 |
Correct |
297 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
287 ms |
344 KB |
Correct |
3 |
Correct |
41 ms |
344 KB |
Correct |
4 |
Correct |
275 ms |
344 KB |
Correct |
5 |
Correct |
277 ms |
344 KB |
Correct |
6 |
Correct |
7 ms |
344 KB |
Correct |
7 |
Correct |
278 ms |
344 KB |
Correct |
8 |
Correct |
16 ms |
344 KB |
Correct |
9 |
Correct |
291 ms |
344 KB |
Correct |
10 |
Correct |
260 ms |
344 KB |
Correct |
11 |
Correct |
75 ms |
344 KB |
Correct |
12 |
Correct |
279 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
296 ms |
344 KB |
Correct |
15 |
Correct |
39 ms |
344 KB |
Correct |
16 |
Correct |
238 ms |
344 KB |
Correct |
17 |
Correct |
283 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
279 ms |
344 KB |
Correct |
20 |
Correct |
23 ms |
344 KB |
Correct |
21 |
Correct |
315 ms |
344 KB |
Correct |
22 |
Correct |
266 ms |
344 KB |
Correct |
23 |
Correct |
79 ms |
344 KB |
Correct |
24 |
Correct |
258 ms |
344 KB |
Correct |
25 |
Correct |
4 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
258 ms |
344 KB |
Correct |
29 |
Correct |
12 ms |
596 KB |
Correct |
30 |
Correct |
295 ms |
344 KB |
Correct |
31 |
Correct |
273 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
308 ms |
344 KB |
Correct |
34 |
Correct |
294 ms |
344 KB |
Correct |
35 |
Correct |
291 ms |
416 KB |
Correct |
36 |
Correct |
303 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
310 ms |
344 KB |
Correct |
39 |
Correct |
52 ms |
344 KB |
Correct |
40 |
Correct |
265 ms |
344 KB |
Correct |
41 |
Correct |
280 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
226 ms |
344 KB |
Correct |
44 |
Correct |
14 ms |
344 KB |
Correct |
45 |
Correct |
313 ms |
344 KB |
Correct |
46 |
Correct |
277 ms |
344 KB |
Correct |
47 |
Correct |
76 ms |
344 KB |
Correct |
48 |
Correct |
306 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
344 KB |
Correct |
52 |
Correct |
310 ms |
408 KB |
Correct |
53 |
Correct |
14 ms |
344 KB |
Correct |
54 |
Correct |
277 ms |
344 KB |
Correct |
55 |
Correct |
315 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
305 ms |
600 KB |
Correct |
58 |
Correct |
283 ms |
344 KB |
Correct |
59 |
Correct |
287 ms |
412 KB |
Correct |
60 |
Correct |
253 ms |
344 KB |
Correct |
61 |
Correct |
16 ms |
344 KB |
Correct |
62 |
Correct |
36 ms |
344 KB |
Correct |
63 |
Correct |
24 ms |
592 KB |
Correct |
64 |
Correct |
281 ms |
348 KB |
Correct |
65 |
Correct |
310 ms |
344 KB |
Correct |
66 |
Correct |
321 ms |
344 KB |
Correct |
67 |
Correct |
319 ms |
344 KB |
Correct |
68 |
Correct |
266 ms |
344 KB |
Correct |
69 |
Correct |
285 ms |
344 KB |
Correct |
70 |
Correct |
306 ms |
344 KB |
Correct |
71 |
Correct |
290 ms |
344 KB |
Correct |
72 |
Correct |
264 ms |
356 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
303 ms |
344 KB |
Correct |
75 |
Correct |
43 ms |
344 KB |
Correct |
76 |
Correct |
298 ms |
344 KB |
Correct |
77 |
Correct |
265 ms |
344 KB |
Correct |
78 |
Correct |
4 ms |
344 KB |
Correct |
79 |
Correct |
304 ms |
344 KB |
Correct |
80 |
Correct |
13 ms |
344 KB |
Correct |
81 |
Correct |
307 ms |
344 KB |
Correct |
82 |
Correct |
273 ms |
344 KB |
Correct |
83 |
Correct |
77 ms |
344 KB |
Correct |
84 |
Correct |
280 ms |
344 KB |
Correct |
85 |
Correct |
4 ms |
344 KB |
Correct |
86 |
Correct |
3 ms |
344 KB |
Correct |
87 |
Correct |
3 ms |
344 KB |
Correct |
88 |
Correct |
305 ms |
344 KB |
Correct |
89 |
Correct |
11 ms |
344 KB |
Correct |
90 |
Correct |
286 ms |
340 KB |
Correct |
91 |
Correct |
326 ms |
344 KB |
Correct |
92 |
Correct |
5 ms |
344 KB |
Correct |
93 |
Correct |
268 ms |
344 KB |
Correct |
94 |
Correct |
279 ms |
344 KB |
Correct |
95 |
Correct |
262 ms |
408 KB |
Correct |
96 |
Correct |
295 ms |
344 KB |
Correct |
97 |
Correct |
23 ms |
436 KB |
Correct |
98 |
Correct |
48 ms |
344 KB |
Correct |
99 |
Correct |
16 ms |
344 KB |
Correct |
100 |
Correct |
293 ms |
344 KB |
Correct |
101 |
Correct |
251 ms |
344 KB |
Correct |
102 |
Correct |
290 ms |
344 KB |
Correct |
103 |
Correct |
300 ms |
344 KB |
Correct |
104 |
Correct |
304 ms |
344 KB |
Correct |
105 |
Correct |
312 ms |
344 KB |
Correct |
106 |
Correct |
297 ms |
344 KB |
Correct |
107 |
Correct |
285 ms |
344 KB |
Correct |
108 |
Correct |
257 ms |
344 KB |
Correct |
109 |
Correct |
316 ms |
344 KB |
Correct |
110 |
Correct |
301 ms |
592 KB |
Correct |
111 |
Correct |
319 ms |
592 KB |
Correct |
112 |
Correct |
311 ms |
344 KB |
Correct |
113 |
Correct |
279 ms |
344 KB |
Correct |
114 |
Correct |
282 ms |
344 KB |
Correct |
115 |
Correct |
316 ms |
344 KB |
Correct |
116 |
Correct |
310 ms |
344 KB |
Correct |
117 |
Correct |
308 ms |
344 KB |
Correct |
118 |
Correct |
345 ms |
344 KB |
Correct |
119 |
Correct |
291 ms |
600 KB |
Correct |
120 |
Correct |
297 ms |
344 KB |
Correct |
121 |
Correct |
0 ms |
344 KB |
Correct |
122 |
Correct |
292 ms |
344 KB |
Correct |
123 |
Correct |
45 ms |
344 KB |
Correct |
124 |
Correct |
253 ms |
344 KB |
Correct |
125 |
Correct |
294 ms |
344 KB |
Correct |
126 |
Correct |
4 ms |
344 KB |
Correct |
127 |
Correct |
260 ms |
344 KB |
Correct |
128 |
Correct |
18 ms |
344 KB |
Correct |
129 |
Correct |
325 ms |
344 KB |
Correct |
130 |
Correct |
305 ms |
344 KB |
Correct |
131 |
Correct |
67 ms |
344 KB |
Correct |
132 |
Correct |
319 ms |
340 KB |
Correct |
133 |
Correct |
4 ms |
344 KB |
Correct |
134 |
Correct |
4 ms |
344 KB |
Correct |
135 |
Correct |
4 ms |
344 KB |
Correct |
136 |
Correct |
317 ms |
344 KB |
Correct |
137 |
Correct |
12 ms |
344 KB |
Correct |
138 |
Correct |
287 ms |
344 KB |
Correct |
139 |
Correct |
283 ms |
344 KB |
Correct |
140 |
Correct |
6 ms |
344 KB |
Correct |
141 |
Correct |
293 ms |
344 KB |
Correct |
142 |
Correct |
318 ms |
344 KB |
Correct |
143 |
Correct |
301 ms |
412 KB |
Correct |
144 |
Correct |
284 ms |
344 KB |
Correct |
145 |
Correct |
16 ms |
440 KB |
Correct |
146 |
Correct |
35 ms |
344 KB |
Correct |
147 |
Correct |
18 ms |
344 KB |
Correct |
148 |
Correct |
325 ms |
344 KB |
Correct |
149 |
Correct |
320 ms |
344 KB |
Correct |
150 |
Correct |
306 ms |
344 KB |
Correct |
151 |
Correct |
284 ms |
344 KB |
Correct |
152 |
Correct |
311 ms |
344 KB |
Correct |
153 |
Correct |
301 ms |
344 KB |
Correct |
154 |
Correct |
278 ms |
344 KB |
Correct |
155 |
Correct |
306 ms |
344 KB |
Correct |
156 |
Correct |
280 ms |
344 KB |
Correct |
157 |
Correct |
326 ms |
344 KB |
Correct |
158 |
Correct |
296 ms |
592 KB |
Correct |
159 |
Correct |
343 ms |
416 KB |
Correct |
160 |
Correct |
287 ms |
344 KB |
Correct |
161 |
Correct |
317 ms |
344 KB |
Correct |
162 |
Correct |
309 ms |
344 KB |
Correct |
163 |
Correct |
299 ms |
344 KB |
Correct |
164 |
Correct |
306 ms |
344 KB |
Correct |
165 |
Correct |
355 ms |
344 KB |
Correct |
166 |
Correct |
288 ms |
344 KB |
Correct |
167 |
Correct |
311 ms |
596 KB |
Correct |
168 |
Correct |
281 ms |
344 KB |
Correct |
169 |
Correct |
299 ms |
344 KB |
Correct |
170 |
Correct |
284 ms |
344 KB |
Correct |
171 |
Correct |
314 ms |
344 KB |
Correct |
172 |
Correct |
317 ms |
344 KB |
Correct |
173 |
Correct |
294 ms |
344 KB |
Correct |
174 |
Correct |
328 ms |
344 KB |
Correct |
175 |
Correct |
320 ms |
344 KB |
Correct |
176 |
Correct |
284 ms |
344 KB |
Correct |
177 |
Correct |
329 ms |
340 KB |
Correct |
178 |
Correct |
344 ms |
344 KB |
Correct |
179 |
Correct |
316 ms |
344 KB |
Correct |
180 |
Correct |
276 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
327 ms |
424 KB |
Correct |
3 |
Correct |
351 ms |
344 KB |
Correct |
4 |
Correct |
355 ms |
344 KB |
Correct |
5 |
Correct |
355 ms |
344 KB |
Correct |
6 |
Correct |
328 ms |
344 KB |
Correct |
7 |
Correct |
337 ms |
344 KB |
Correct |
8 |
Correct |
339 ms |
344 KB |
Correct |
9 |
Correct |
350 ms |
344 KB |
Correct |
10 |
Correct |
347 ms |
344 KB |
Correct |
11 |
Correct |
345 ms |
344 KB |
Correct |
12 |
Correct |
302 ms |
344 KB |
Correct |
13 |
Correct |
28 ms |
344 KB |
Correct |
14 |
Correct |
280 ms |
344 KB |
Correct |
15 |
Correct |
302 ms |
344 KB |
Correct |
16 |
Correct |
6 ms |
344 KB |
Correct |
17 |
Correct |
267 ms |
344 KB |
Correct |
18 |
Correct |
17 ms |
340 KB |
Correct |
19 |
Correct |
285 ms |
344 KB |
Correct |
20 |
Correct |
290 ms |
344 KB |
Correct |
21 |
Correct |
63 ms |
344 KB |
Correct |
22 |
Correct |
262 ms |
344 KB |
Correct |
23 |
Correct |
3 ms |
344 KB |
Correct |
24 |
Correct |
3 ms |
344 KB |
Correct |
25 |
Correct |
4 ms |
344 KB |
Correct |
26 |
Correct |
324 ms |
344 KB |
Correct |
27 |
Correct |
17 ms |
344 KB |
Correct |
28 |
Correct |
283 ms |
344 KB |
Correct |
29 |
Correct |
327 ms |
344 KB |
Correct |
30 |
Correct |
4 ms |
344 KB |
Correct |
31 |
Correct |
300 ms |
344 KB |
Correct |
32 |
Correct |
281 ms |
344 KB |
Correct |
33 |
Correct |
286 ms |
596 KB |
Correct |
34 |
Correct |
284 ms |
344 KB |
Correct |
35 |
Correct |
16 ms |
344 KB |
Correct |
36 |
Correct |
36 ms |
344 KB |
Correct |
37 |
Correct |
17 ms |
440 KB |
Correct |
38 |
Correct |
258 ms |
344 KB |
Correct |
39 |
Correct |
317 ms |
344 KB |
Correct |
40 |
Correct |
287 ms |
344 KB |
Correct |
41 |
Correct |
281 ms |
344 KB |
Correct |
42 |
Correct |
316 ms |
344 KB |
Correct |
43 |
Correct |
279 ms |
344 KB |
Correct |
44 |
Correct |
285 ms |
344 KB |
Correct |
45 |
Correct |
288 ms |
344 KB |
Correct |
46 |
Correct |
313 ms |
344 KB |
Correct |
47 |
Correct |
310 ms |
344 KB |
Correct |
48 |
Correct |
296 ms |
344 KB |
Correct |
49 |
Correct |
293 ms |
416 KB |
Correct |
50 |
Correct |
318 ms |
344 KB |
Correct |
51 |
Correct |
323 ms |
344 KB |
Correct |
52 |
Correct |
321 ms |
344 KB |
Correct |
53 |
Correct |
316 ms |
344 KB |
Correct |
54 |
Correct |
288 ms |
344 KB |
Correct |
55 |
Correct |
329 ms |
344 KB |
Correct |
56 |
Correct |
330 ms |
600 KB |
Correct |
57 |
Correct |
332 ms |
344 KB |
Correct |
58 |
Correct |
314 ms |
344 KB |
Correct |
59 |
Correct |
314 ms |
344 KB |
Correct |
60 |
Correct |
339 ms |
344 KB |
Correct |
61 |
Correct |
326 ms |
596 KB |
Correct |
62 |
Correct |
291 ms |
344 KB |
Correct |
63 |
Correct |
310 ms |
344 KB |
Correct |
64 |
Correct |
284 ms |
344 KB |
Correct |
65 |
Correct |
281 ms |
344 KB |
Correct |
66 |
Correct |
306 ms |
344 KB |
Correct |
67 |
Correct |
312 ms |
344 KB |
Correct |
68 |
Correct |
317 ms |
344 KB |
Correct |
69 |
Correct |
304 ms |
344 KB |
Correct |
70 |
Correct |
297 ms |
344 KB |
Correct |
71 |
Correct |
332 ms |
344 KB |
Correct |
72 |
Correct |
411 ms |
428 KB |
Correct |
73 |
Correct |
379 ms |
432 KB |
Correct |
74 |
Correct |
409 ms |
344 KB |
Correct |
75 |
Correct |
384 ms |
600 KB |
Correct |
76 |
Correct |
351 ms |
416 KB |
Correct |
77 |
Correct |
346 ms |
344 KB |
Correct |
78 |
Correct |
330 ms |
424 KB |
Correct |
79 |
Correct |
311 ms |
440 KB |
Correct |
80 |
Correct |
371 ms |
344 KB |
Correct |
81 |
Correct |
419 ms |
344 KB |
Correct |
82 |
Correct |
478 ms |
592 KB |
Correct |
83 |
Correct |
393 ms |
440 KB |
Correct |
84 |
Correct |
314 ms |
344 KB |
Correct |
85 |
Correct |
284 ms |
344 KB |
Correct |
86 |
Correct |
341 ms |
344 KB |
Correct |
87 |
Correct |
383 ms |
448 KB |
Correct |
88 |
Correct |
394 ms |
428 KB |
Correct |
89 |
Correct |
382 ms |
344 KB |
Correct |
90 |
Correct |
386 ms |
424 KB |
Correct |
91 |
Correct |
355 ms |
416 KB |
Correct |
92 |
Correct |
341 ms |
344 KB |
Correct |
93 |
Correct |
312 ms |
344 KB |
Correct |
94 |
Correct |
322 ms |
428 KB |
Correct |
95 |
Correct |
390 ms |
344 KB |
Correct |
96 |
Correct |
392 ms |
344 KB |
Correct |
97 |
Correct |
421 ms |
344 KB |
Correct |
98 |
Correct |
416 ms |
344 KB |
Correct |
99 |
Correct |
329 ms |
344 KB |
Correct |
100 |
Correct |
312 ms |
344 KB |
Correct |
101 |
Correct |
355 ms |
444 KB |
Correct |
102 |
Correct |
379 ms |
452 KB |
Correct |
103 |
Correct |
369 ms |
344 KB |
Correct |
104 |
Correct |
388 ms |
428 KB |
Correct |
105 |
Correct |
395 ms |
588 KB |
Correct |
106 |
Correct |
348 ms |
424 KB |
Correct |
107 |
Correct |
331 ms |
344 KB |
Correct |
108 |
Correct |
203 ms |
436 KB |
Correct |
109 |
Correct |
322 ms |
424 KB |
Correct |
110 |
Correct |
383 ms |
344 KB |
Correct |
111 |
Correct |
372 ms |
344 KB |
Correct |
112 |
Correct |
422 ms |
416 KB |
Correct |
113 |
Correct |
442 ms |
592 KB |
Correct |
114 |
Correct |
325 ms |
344 KB |
Correct |
115 |
Correct |
304 ms |
344 KB |
Correct |
116 |
Correct |
339 ms |
820 KB |
Correct |
117 |
Correct |
383 ms |
424 KB |
Correct |
118 |
Correct |
371 ms |
432 KB |
Correct |
119 |
Correct |
406 ms |
344 KB |
Correct |
120 |
Correct |
410 ms |
424 KB |
Correct |
121 |
Correct |
350 ms |
416 KB |
Correct |
122 |
Correct |
341 ms |
344 KB |
Correct |
123 |
Correct |
326 ms |
592 KB |
Correct |
124 |
Correct |
330 ms |
436 KB |
Correct |
125 |
Correct |
400 ms |
600 KB |
Correct |
126 |
Correct |
376 ms |
344 KB |
Correct |
127 |
Correct |
419 ms |
436 KB |
Correct |
128 |
Correct |
421 ms |
436 KB |
Correct |
129 |
Correct |
283 ms |
344 KB |
Correct |
130 |
Correct |
311 ms |
344 KB |
Correct |