#include "light.h"
#include <vector>
#include<bits/stdc++.h>
using namespace std;
long long cnt;
vector<long long>v;
void prepare(){
cnt = 1;
v.push_back(1);
}
std::pair<long long, std::vector<long long>> join(long long p){
cnt+=p;
vector<long long> vv;
vv.push_back(1);
for(auto &it:v)
it+=p;
for(long long i=1;1;) {
long long res=1;
for(auto it:v) {
if((2ll*i+p)>=it)
res=max(res,min(it,2ll*i));
}
if(res>=cnt) {
vv.push_back(cnt);
break;
}
else
vv.push_back(res);
i=res;
}
v=vv;
vector<long long>ans;
for(auto it:v)
ans.push_back(cnt-it+1);
sort(ans.begin(),ans.end());
return {p,ans};
}
std::pair<long long, std::vector<long long>> leave(long long p){
cnt-=p;
vector<long long> vv,vvv;
vvv=v;
v.clear();
for(auto it:vvv) {
if(it-p>0)
v.push_back(it-p);
}
vv.push_back(1);
for(long long i=1;1;) {
long long res=1;
for(auto it:v) {
if((2ll*i+p)>=it)
res=max(res,min(it,2ll*i));
}
if(res>=cnt) {
vv.push_back(cnt);
break;
}
vv.push_back(res);
i=res;
}
v=vv;
vector<long long>ans;
if(cnt==1)
v.clear(),v.push_back(1);
for(auto it:v)
ans.push_back(cnt-it+1ll);
sort(ans.begin(),ans.end());
return {p,ans};
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
438 ms |
436 KB |
Correct |
3 |
Correct |
453 ms |
344 KB |
Correct |
4 |
Correct |
484 ms |
424 KB |
Correct |
5 |
Correct |
495 ms |
344 KB |
Correct |
6 |
Correct |
474 ms |
424 KB |
Correct |
7 |
Correct |
508 ms |
440 KB |
Correct |
8 |
Correct |
461 ms |
344 KB |
Correct |
9 |
Correct |
443 ms |
428 KB |
Correct |
10 |
Correct |
484 ms |
504 KB |
Correct |
11 |
Correct |
481 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
319 ms |
344 KB |
Correct |
3 |
Correct |
40 ms |
344 KB |
Correct |
4 |
Correct |
261 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
432 KB |
Correct |
6 |
Correct |
5 ms |
344 KB |
Correct |
7 |
Correct |
287 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
600 KB |
Correct |
9 |
Correct |
302 ms |
344 KB |
Correct |
10 |
Correct |
317 ms |
344 KB |
Correct |
11 |
Correct |
77 ms |
344 KB |
Correct |
12 |
Correct |
313 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
319 ms |
344 KB |
Correct |
3 |
Correct |
40 ms |
344 KB |
Correct |
4 |
Correct |
261 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
432 KB |
Correct |
6 |
Correct |
5 ms |
344 KB |
Correct |
7 |
Correct |
287 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
600 KB |
Correct |
9 |
Correct |
302 ms |
344 KB |
Correct |
10 |
Correct |
317 ms |
344 KB |
Correct |
11 |
Correct |
77 ms |
344 KB |
Correct |
12 |
Correct |
313 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
298 ms |
344 KB |
Correct |
15 |
Correct |
44 ms |
600 KB |
Correct |
16 |
Correct |
281 ms |
344 KB |
Correct |
17 |
Correct |
314 ms |
596 KB |
Correct |
18 |
Correct |
5 ms |
344 KB |
Correct |
19 |
Correct |
313 ms |
344 KB |
Correct |
20 |
Correct |
22 ms |
344 KB |
Correct |
21 |
Correct |
296 ms |
344 KB |
Correct |
22 |
Correct |
273 ms |
344 KB |
Correct |
23 |
Correct |
76 ms |
344 KB |
Correct |
24 |
Correct |
298 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
285 ms |
344 KB |
Correct |
29 |
Correct |
17 ms |
344 KB |
Correct |
30 |
Correct |
316 ms |
344 KB |
Correct |
31 |
Correct |
331 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
305 ms |
344 KB |
Correct |
34 |
Correct |
349 ms |
344 KB |
Correct |
35 |
Correct |
342 ms |
344 KB |
Correct |
36 |
Correct |
314 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
319 ms |
344 KB |
Correct |
3 |
Correct |
40 ms |
344 KB |
Correct |
4 |
Correct |
261 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
432 KB |
Correct |
6 |
Correct |
5 ms |
344 KB |
Correct |
7 |
Correct |
287 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
600 KB |
Correct |
9 |
Correct |
302 ms |
344 KB |
Correct |
10 |
Correct |
317 ms |
344 KB |
Correct |
11 |
Correct |
77 ms |
344 KB |
Correct |
12 |
Correct |
313 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
298 ms |
344 KB |
Correct |
15 |
Correct |
44 ms |
600 KB |
Correct |
16 |
Correct |
281 ms |
344 KB |
Correct |
17 |
Correct |
314 ms |
596 KB |
Correct |
18 |
Correct |
5 ms |
344 KB |
Correct |
19 |
Correct |
313 ms |
344 KB |
Correct |
20 |
Correct |
22 ms |
344 KB |
Correct |
21 |
Correct |
296 ms |
344 KB |
Correct |
22 |
Correct |
273 ms |
344 KB |
Correct |
23 |
Correct |
76 ms |
344 KB |
Correct |
24 |
Correct |
298 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
285 ms |
344 KB |
Correct |
29 |
Correct |
17 ms |
344 KB |
Correct |
30 |
Correct |
316 ms |
344 KB |
Correct |
31 |
Correct |
331 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
305 ms |
344 KB |
Correct |
34 |
Correct |
349 ms |
344 KB |
Correct |
35 |
Correct |
342 ms |
344 KB |
Correct |
36 |
Correct |
314 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
285 ms |
436 KB |
Correct |
39 |
Correct |
34 ms |
344 KB |
Correct |
40 |
Correct |
322 ms |
344 KB |
Correct |
41 |
Correct |
295 ms |
344 KB |
Correct |
42 |
Correct |
8 ms |
344 KB |
Correct |
43 |
Correct |
303 ms |
344 KB |
Correct |
44 |
Correct |
16 ms |
344 KB |
Correct |
45 |
Correct |
332 ms |
432 KB |
Correct |
46 |
Correct |
348 ms |
344 KB |
Correct |
47 |
Correct |
48 ms |
344 KB |
Correct |
48 |
Correct |
309 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
340 KB |
Correct |
52 |
Correct |
356 ms |
344 KB |
Correct |
53 |
Correct |
21 ms |
344 KB |
Correct |
54 |
Correct |
332 ms |
344 KB |
Correct |
55 |
Correct |
310 ms |
344 KB |
Correct |
56 |
Correct |
6 ms |
344 KB |
Correct |
57 |
Correct |
335 ms |
344 KB |
Correct |
58 |
Correct |
345 ms |
344 KB |
Correct |
59 |
Correct |
296 ms |
344 KB |
Correct |
60 |
Correct |
316 ms |
344 KB |
Correct |
61 |
Correct |
20 ms |
344 KB |
Correct |
62 |
Correct |
54 ms |
344 KB |
Correct |
63 |
Correct |
19 ms |
344 KB |
Correct |
64 |
Correct |
368 ms |
344 KB |
Correct |
65 |
Correct |
321 ms |
344 KB |
Correct |
66 |
Correct |
305 ms |
344 KB |
Correct |
67 |
Correct |
319 ms |
344 KB |
Correct |
68 |
Correct |
352 ms |
344 KB |
Correct |
69 |
Correct |
324 ms |
344 KB |
Correct |
70 |
Correct |
361 ms |
340 KB |
Correct |
71 |
Correct |
285 ms |
340 KB |
Correct |
72 |
Correct |
317 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
319 ms |
344 KB |
Correct |
3 |
Correct |
40 ms |
344 KB |
Correct |
4 |
Correct |
261 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
432 KB |
Correct |
6 |
Correct |
5 ms |
344 KB |
Correct |
7 |
Correct |
287 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
600 KB |
Correct |
9 |
Correct |
302 ms |
344 KB |
Correct |
10 |
Correct |
317 ms |
344 KB |
Correct |
11 |
Correct |
77 ms |
344 KB |
Correct |
12 |
Correct |
313 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
298 ms |
344 KB |
Correct |
15 |
Correct |
44 ms |
600 KB |
Correct |
16 |
Correct |
281 ms |
344 KB |
Correct |
17 |
Correct |
314 ms |
596 KB |
Correct |
18 |
Correct |
5 ms |
344 KB |
Correct |
19 |
Correct |
313 ms |
344 KB |
Correct |
20 |
Correct |
22 ms |
344 KB |
Correct |
21 |
Correct |
296 ms |
344 KB |
Correct |
22 |
Correct |
273 ms |
344 KB |
Correct |
23 |
Correct |
76 ms |
344 KB |
Correct |
24 |
Correct |
298 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
285 ms |
344 KB |
Correct |
29 |
Correct |
17 ms |
344 KB |
Correct |
30 |
Correct |
316 ms |
344 KB |
Correct |
31 |
Correct |
331 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
305 ms |
344 KB |
Correct |
34 |
Correct |
349 ms |
344 KB |
Correct |
35 |
Correct |
342 ms |
344 KB |
Correct |
36 |
Correct |
314 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
285 ms |
436 KB |
Correct |
39 |
Correct |
34 ms |
344 KB |
Correct |
40 |
Correct |
322 ms |
344 KB |
Correct |
41 |
Correct |
295 ms |
344 KB |
Correct |
42 |
Correct |
8 ms |
344 KB |
Correct |
43 |
Correct |
303 ms |
344 KB |
Correct |
44 |
Correct |
16 ms |
344 KB |
Correct |
45 |
Correct |
332 ms |
432 KB |
Correct |
46 |
Correct |
348 ms |
344 KB |
Correct |
47 |
Correct |
48 ms |
344 KB |
Correct |
48 |
Correct |
309 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
340 KB |
Correct |
52 |
Correct |
356 ms |
344 KB |
Correct |
53 |
Correct |
21 ms |
344 KB |
Correct |
54 |
Correct |
332 ms |
344 KB |
Correct |
55 |
Correct |
310 ms |
344 KB |
Correct |
56 |
Correct |
6 ms |
344 KB |
Correct |
57 |
Correct |
335 ms |
344 KB |
Correct |
58 |
Correct |
345 ms |
344 KB |
Correct |
59 |
Correct |
296 ms |
344 KB |
Correct |
60 |
Correct |
316 ms |
344 KB |
Correct |
61 |
Correct |
20 ms |
344 KB |
Correct |
62 |
Correct |
54 ms |
344 KB |
Correct |
63 |
Correct |
19 ms |
344 KB |
Correct |
64 |
Correct |
368 ms |
344 KB |
Correct |
65 |
Correct |
321 ms |
344 KB |
Correct |
66 |
Correct |
305 ms |
344 KB |
Correct |
67 |
Correct |
319 ms |
344 KB |
Correct |
68 |
Correct |
352 ms |
344 KB |
Correct |
69 |
Correct |
324 ms |
344 KB |
Correct |
70 |
Correct |
361 ms |
340 KB |
Correct |
71 |
Correct |
285 ms |
340 KB |
Correct |
72 |
Correct |
317 ms |
344 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
291 ms |
344 KB |
Correct |
75 |
Correct |
45 ms |
344 KB |
Correct |
76 |
Correct |
309 ms |
344 KB |
Correct |
77 |
Correct |
307 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
305 ms |
344 KB |
Correct |
80 |
Correct |
15 ms |
344 KB |
Correct |
81 |
Correct |
320 ms |
436 KB |
Correct |
82 |
Correct |
323 ms |
344 KB |
Correct |
83 |
Correct |
86 ms |
344 KB |
Correct |
84 |
Correct |
313 ms |
344 KB |
Correct |
85 |
Correct |
4 ms |
344 KB |
Correct |
86 |
Correct |
4 ms |
344 KB |
Correct |
87 |
Correct |
4 ms |
344 KB |
Correct |
88 |
Correct |
329 ms |
344 KB |
Correct |
89 |
Correct |
20 ms |
344 KB |
Correct |
90 |
Correct |
314 ms |
344 KB |
Correct |
91 |
Correct |
338 ms |
344 KB |
Correct |
92 |
Correct |
5 ms |
344 KB |
Correct |
93 |
Correct |
336 ms |
344 KB |
Correct |
94 |
Correct |
310 ms |
344 KB |
Correct |
95 |
Correct |
334 ms |
344 KB |
Correct |
96 |
Correct |
290 ms |
344 KB |
Correct |
97 |
Correct |
18 ms |
344 KB |
Correct |
98 |
Correct |
41 ms |
344 KB |
Correct |
99 |
Correct |
19 ms |
344 KB |
Correct |
100 |
Correct |
321 ms |
344 KB |
Correct |
101 |
Correct |
305 ms |
344 KB |
Correct |
102 |
Correct |
348 ms |
344 KB |
Correct |
103 |
Correct |
329 ms |
344 KB |
Correct |
104 |
Correct |
318 ms |
344 KB |
Correct |
105 |
Correct |
311 ms |
344 KB |
Correct |
106 |
Correct |
326 ms |
344 KB |
Correct |
107 |
Correct |
324 ms |
344 KB |
Correct |
108 |
Correct |
322 ms |
344 KB |
Correct |
109 |
Correct |
321 ms |
344 KB |
Correct |
110 |
Correct |
351 ms |
344 KB |
Correct |
111 |
Correct |
361 ms |
344 KB |
Correct |
112 |
Correct |
343 ms |
344 KB |
Correct |
113 |
Correct |
308 ms |
344 KB |
Correct |
114 |
Correct |
322 ms |
344 KB |
Correct |
115 |
Correct |
357 ms |
344 KB |
Correct |
116 |
Correct |
291 ms |
344 KB |
Correct |
117 |
Correct |
313 ms |
344 KB |
Correct |
118 |
Correct |
391 ms |
344 KB |
Correct |
119 |
Correct |
350 ms |
344 KB |
Correct |
120 |
Correct |
298 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
319 ms |
344 KB |
Correct |
3 |
Correct |
40 ms |
344 KB |
Correct |
4 |
Correct |
261 ms |
344 KB |
Correct |
5 |
Correct |
256 ms |
432 KB |
Correct |
6 |
Correct |
5 ms |
344 KB |
Correct |
7 |
Correct |
287 ms |
344 KB |
Correct |
8 |
Correct |
17 ms |
600 KB |
Correct |
9 |
Correct |
302 ms |
344 KB |
Correct |
10 |
Correct |
317 ms |
344 KB |
Correct |
11 |
Correct |
77 ms |
344 KB |
Correct |
12 |
Correct |
313 ms |
344 KB |
Correct |
13 |
Correct |
1 ms |
344 KB |
Correct |
14 |
Correct |
298 ms |
344 KB |
Correct |
15 |
Correct |
44 ms |
600 KB |
Correct |
16 |
Correct |
281 ms |
344 KB |
Correct |
17 |
Correct |
314 ms |
596 KB |
Correct |
18 |
Correct |
5 ms |
344 KB |
Correct |
19 |
Correct |
313 ms |
344 KB |
Correct |
20 |
Correct |
22 ms |
344 KB |
Correct |
21 |
Correct |
296 ms |
344 KB |
Correct |
22 |
Correct |
273 ms |
344 KB |
Correct |
23 |
Correct |
76 ms |
344 KB |
Correct |
24 |
Correct |
298 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
285 ms |
344 KB |
Correct |
29 |
Correct |
17 ms |
344 KB |
Correct |
30 |
Correct |
316 ms |
344 KB |
Correct |
31 |
Correct |
331 ms |
344 KB |
Correct |
32 |
Correct |
8 ms |
344 KB |
Correct |
33 |
Correct |
305 ms |
344 KB |
Correct |
34 |
Correct |
349 ms |
344 KB |
Correct |
35 |
Correct |
342 ms |
344 KB |
Correct |
36 |
Correct |
314 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
285 ms |
436 KB |
Correct |
39 |
Correct |
34 ms |
344 KB |
Correct |
40 |
Correct |
322 ms |
344 KB |
Correct |
41 |
Correct |
295 ms |
344 KB |
Correct |
42 |
Correct |
8 ms |
344 KB |
Correct |
43 |
Correct |
303 ms |
344 KB |
Correct |
44 |
Correct |
16 ms |
344 KB |
Correct |
45 |
Correct |
332 ms |
432 KB |
Correct |
46 |
Correct |
348 ms |
344 KB |
Correct |
47 |
Correct |
48 ms |
344 KB |
Correct |
48 |
Correct |
309 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
4 ms |
344 KB |
Correct |
51 |
Correct |
4 ms |
340 KB |
Correct |
52 |
Correct |
356 ms |
344 KB |
Correct |
53 |
Correct |
21 ms |
344 KB |
Correct |
54 |
Correct |
332 ms |
344 KB |
Correct |
55 |
Correct |
310 ms |
344 KB |
Correct |
56 |
Correct |
6 ms |
344 KB |
Correct |
57 |
Correct |
335 ms |
344 KB |
Correct |
58 |
Correct |
345 ms |
344 KB |
Correct |
59 |
Correct |
296 ms |
344 KB |
Correct |
60 |
Correct |
316 ms |
344 KB |
Correct |
61 |
Correct |
20 ms |
344 KB |
Correct |
62 |
Correct |
54 ms |
344 KB |
Correct |
63 |
Correct |
19 ms |
344 KB |
Correct |
64 |
Correct |
368 ms |
344 KB |
Correct |
65 |
Correct |
321 ms |
344 KB |
Correct |
66 |
Correct |
305 ms |
344 KB |
Correct |
67 |
Correct |
319 ms |
344 KB |
Correct |
68 |
Correct |
352 ms |
344 KB |
Correct |
69 |
Correct |
324 ms |
344 KB |
Correct |
70 |
Correct |
361 ms |
340 KB |
Correct |
71 |
Correct |
285 ms |
340 KB |
Correct |
72 |
Correct |
317 ms |
344 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
291 ms |
344 KB |
Correct |
75 |
Correct |
45 ms |
344 KB |
Correct |
76 |
Correct |
309 ms |
344 KB |
Correct |
77 |
Correct |
307 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
305 ms |
344 KB |
Correct |
80 |
Correct |
15 ms |
344 KB |
Correct |
81 |
Correct |
320 ms |
436 KB |
Correct |
82 |
Correct |
323 ms |
344 KB |
Correct |
83 |
Correct |
86 ms |
344 KB |
Correct |
84 |
Correct |
313 ms |
344 KB |
Correct |
85 |
Correct |
4 ms |
344 KB |
Correct |
86 |
Correct |
4 ms |
344 KB |
Correct |
87 |
Correct |
4 ms |
344 KB |
Correct |
88 |
Correct |
329 ms |
344 KB |
Correct |
89 |
Correct |
20 ms |
344 KB |
Correct |
90 |
Correct |
314 ms |
344 KB |
Correct |
91 |
Correct |
338 ms |
344 KB |
Correct |
92 |
Correct |
5 ms |
344 KB |
Correct |
93 |
Correct |
336 ms |
344 KB |
Correct |
94 |
Correct |
310 ms |
344 KB |
Correct |
95 |
Correct |
334 ms |
344 KB |
Correct |
96 |
Correct |
290 ms |
344 KB |
Correct |
97 |
Correct |
18 ms |
344 KB |
Correct |
98 |
Correct |
41 ms |
344 KB |
Correct |
99 |
Correct |
19 ms |
344 KB |
Correct |
100 |
Correct |
321 ms |
344 KB |
Correct |
101 |
Correct |
305 ms |
344 KB |
Correct |
102 |
Correct |
348 ms |
344 KB |
Correct |
103 |
Correct |
329 ms |
344 KB |
Correct |
104 |
Correct |
318 ms |
344 KB |
Correct |
105 |
Correct |
311 ms |
344 KB |
Correct |
106 |
Correct |
326 ms |
344 KB |
Correct |
107 |
Correct |
324 ms |
344 KB |
Correct |
108 |
Correct |
322 ms |
344 KB |
Correct |
109 |
Correct |
321 ms |
344 KB |
Correct |
110 |
Correct |
351 ms |
344 KB |
Correct |
111 |
Correct |
361 ms |
344 KB |
Correct |
112 |
Correct |
343 ms |
344 KB |
Correct |
113 |
Correct |
308 ms |
344 KB |
Correct |
114 |
Correct |
322 ms |
344 KB |
Correct |
115 |
Correct |
357 ms |
344 KB |
Correct |
116 |
Correct |
291 ms |
344 KB |
Correct |
117 |
Correct |
313 ms |
344 KB |
Correct |
118 |
Correct |
391 ms |
344 KB |
Correct |
119 |
Correct |
350 ms |
344 KB |
Correct |
120 |
Correct |
298 ms |
344 KB |
Correct |
121 |
Correct |
0 ms |
344 KB |
Correct |
122 |
Correct |
301 ms |
440 KB |
Correct |
123 |
Correct |
47 ms |
436 KB |
Correct |
124 |
Correct |
333 ms |
344 KB |
Correct |
125 |
Correct |
315 ms |
344 KB |
Correct |
126 |
Correct |
4 ms |
344 KB |
Correct |
127 |
Correct |
294 ms |
436 KB |
Correct |
128 |
Correct |
14 ms |
344 KB |
Correct |
129 |
Correct |
338 ms |
344 KB |
Correct |
130 |
Correct |
307 ms |
344 KB |
Correct |
131 |
Correct |
71 ms |
344 KB |
Correct |
132 |
Correct |
342 ms |
344 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 |
306 ms |
344 KB |
Correct |
137 |
Correct |
15 ms |
344 KB |
Correct |
138 |
Correct |
311 ms |
344 KB |
Correct |
139 |
Correct |
307 ms |
344 KB |
Correct |
140 |
Correct |
6 ms |
344 KB |
Correct |
141 |
Correct |
345 ms |
344 KB |
Correct |
142 |
Correct |
347 ms |
344 KB |
Correct |
143 |
Correct |
294 ms |
344 KB |
Correct |
144 |
Correct |
286 ms |
344 KB |
Correct |
145 |
Correct |
22 ms |
344 KB |
Correct |
146 |
Correct |
51 ms |
344 KB |
Correct |
147 |
Correct |
28 ms |
344 KB |
Correct |
148 |
Correct |
327 ms |
344 KB |
Correct |
149 |
Correct |
299 ms |
344 KB |
Correct |
150 |
Correct |
291 ms |
344 KB |
Correct |
151 |
Correct |
291 ms |
596 KB |
Correct |
152 |
Correct |
274 ms |
340 KB |
Correct |
153 |
Correct |
284 ms |
344 KB |
Correct |
154 |
Correct |
300 ms |
344 KB |
Correct |
155 |
Correct |
318 ms |
344 KB |
Correct |
156 |
Correct |
271 ms |
344 KB |
Correct |
157 |
Correct |
297 ms |
344 KB |
Correct |
158 |
Correct |
307 ms |
344 KB |
Correct |
159 |
Correct |
333 ms |
344 KB |
Correct |
160 |
Correct |
343 ms |
344 KB |
Correct |
161 |
Correct |
270 ms |
344 KB |
Correct |
162 |
Correct |
326 ms |
344 KB |
Correct |
163 |
Correct |
352 ms |
344 KB |
Correct |
164 |
Correct |
320 ms |
344 KB |
Correct |
165 |
Correct |
342 ms |
344 KB |
Correct |
166 |
Correct |
351 ms |
344 KB |
Correct |
167 |
Correct |
331 ms |
344 KB |
Correct |
168 |
Correct |
288 ms |
344 KB |
Correct |
169 |
Correct |
343 ms |
344 KB |
Correct |
170 |
Correct |
327 ms |
416 KB |
Correct |
171 |
Correct |
337 ms |
344 KB |
Correct |
172 |
Correct |
301 ms |
344 KB |
Correct |
173 |
Correct |
348 ms |
344 KB |
Correct |
174 |
Correct |
355 ms |
344 KB |
Correct |
175 |
Correct |
349 ms |
344 KB |
Correct |
176 |
Correct |
316 ms |
344 KB |
Correct |
177 |
Correct |
350 ms |
344 KB |
Correct |
178 |
Correct |
322 ms |
412 KB |
Correct |
179 |
Correct |
319 ms |
420 KB |
Correct |
180 |
Correct |
308 ms |
344 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
490 ms |
436 KB |
Correct |
3 |
Correct |
499 ms |
344 KB |
Correct |
4 |
Correct |
490 ms |
444 KB |
Correct |
5 |
Correct |
520 ms |
348 KB |
Correct |
6 |
Correct |
484 ms |
344 KB |
Correct |
7 |
Correct |
458 ms |
424 KB |
Correct |
8 |
Correct |
433 ms |
444 KB |
Correct |
9 |
Correct |
492 ms |
344 KB |
Correct |
10 |
Correct |
480 ms |
344 KB |
Correct |
11 |
Correct |
429 ms |
344 KB |
Correct |
12 |
Correct |
330 ms |
344 KB |
Correct |
13 |
Correct |
68 ms |
424 KB |
Correct |
14 |
Correct |
284 ms |
344 KB |
Correct |
15 |
Correct |
264 ms |
344 KB |
Correct |
16 |
Correct |
8 ms |
344 KB |
Correct |
17 |
Correct |
313 ms |
344 KB |
Correct |
18 |
Correct |
24 ms |
672 KB |
Correct |
19 |
Correct |
266 ms |
344 KB |
Correct |
20 |
Correct |
327 ms |
344 KB |
Correct |
21 |
Correct |
87 ms |
344 KB |
Correct |
22 |
Correct |
283 ms |
340 KB |
Correct |
23 |
Correct |
5 ms |
344 KB |
Correct |
24 |
Correct |
6 ms |
600 KB |
Correct |
25 |
Correct |
5 ms |
432 KB |
Correct |
26 |
Correct |
264 ms |
344 KB |
Correct |
27 |
Correct |
23 ms |
344 KB |
Correct |
28 |
Correct |
284 ms |
344 KB |
Correct |
29 |
Correct |
340 ms |
344 KB |
Correct |
30 |
Correct |
8 ms |
344 KB |
Correct |
31 |
Correct |
340 ms |
344 KB |
Correct |
32 |
Correct |
327 ms |
344 KB |
Correct |
33 |
Correct |
316 ms |
344 KB |
Correct |
34 |
Correct |
300 ms |
344 KB |
Correct |
35 |
Correct |
23 ms |
344 KB |
Correct |
36 |
Correct |
54 ms |
344 KB |
Correct |
37 |
Correct |
27 ms |
344 KB |
Correct |
38 |
Correct |
360 ms |
344 KB |
Correct |
39 |
Correct |
312 ms |
344 KB |
Correct |
40 |
Correct |
320 ms |
344 KB |
Correct |
41 |
Correct |
329 ms |
344 KB |
Correct |
42 |
Correct |
328 ms |
344 KB |
Correct |
43 |
Correct |
337 ms |
344 KB |
Correct |
44 |
Correct |
304 ms |
344 KB |
Correct |
45 |
Correct |
269 ms |
344 KB |
Correct |
46 |
Correct |
273 ms |
344 KB |
Correct |
47 |
Correct |
293 ms |
344 KB |
Correct |
48 |
Correct |
312 ms |
344 KB |
Correct |
49 |
Correct |
335 ms |
344 KB |
Correct |
50 |
Correct |
319 ms |
596 KB |
Correct |
51 |
Correct |
276 ms |
344 KB |
Correct |
52 |
Correct |
324 ms |
344 KB |
Correct |
53 |
Correct |
284 ms |
344 KB |
Correct |
54 |
Correct |
274 ms |
348 KB |
Correct |
55 |
Correct |
319 ms |
344 KB |
Correct |
56 |
Correct |
314 ms |
344 KB |
Correct |
57 |
Correct |
270 ms |
344 KB |
Correct |
58 |
Correct |
308 ms |
436 KB |
Correct |
59 |
Correct |
343 ms |
344 KB |
Correct |
60 |
Correct |
379 ms |
416 KB |
Correct |
61 |
Correct |
346 ms |
344 KB |
Correct |
62 |
Correct |
358 ms |
344 KB |
Correct |
63 |
Correct |
295 ms |
344 KB |
Correct |
64 |
Correct |
331 ms |
344 KB |
Correct |
65 |
Correct |
358 ms |
344 KB |
Correct |
66 |
Correct |
322 ms |
344 KB |
Correct |
67 |
Correct |
326 ms |
344 KB |
Correct |
68 |
Correct |
380 ms |
416 KB |
Correct |
69 |
Correct |
338 ms |
344 KB |
Correct |
70 |
Correct |
331 ms |
344 KB |
Correct |
71 |
Correct |
357 ms |
424 KB |
Correct |
72 |
Correct |
646 ms |
600 KB |
Correct |
73 |
Correct |
629 ms |
704 KB |
Correct |
74 |
Correct |
601 ms |
592 KB |
Correct |
75 |
Correct |
621 ms |
432 KB |
Correct |
76 |
Correct |
408 ms |
424 KB |
Correct |
77 |
Correct |
496 ms |
344 KB |
Correct |
78 |
Correct |
439 ms |
452 KB |
Correct |
79 |
Correct |
382 ms |
436 KB |
Correct |
80 |
Correct |
542 ms |
448 KB |
Correct |
81 |
Correct |
529 ms |
600 KB |
Correct |
82 |
Correct |
929 ms |
592 KB |
Correct |
83 |
Correct |
961 ms |
432 KB |
Correct |
84 |
Correct |
334 ms |
428 KB |
Correct |
85 |
Correct |
352 ms |
432 KB |
Correct |
86 |
Correct |
402 ms |
420 KB |
Correct |
87 |
Correct |
651 ms |
448 KB |
Correct |
88 |
Correct |
650 ms |
692 KB |
Correct |
89 |
Correct |
585 ms |
596 KB |
Correct |
90 |
Correct |
607 ms |
456 KB |
Correct |
91 |
Correct |
412 ms |
432 KB |
Correct |
92 |
Correct |
495 ms |
344 KB |
Correct |
93 |
Correct |
415 ms |
436 KB |
Correct |
94 |
Correct |
415 ms |
436 KB |
Correct |
95 |
Correct |
580 ms |
592 KB |
Correct |
96 |
Correct |
534 ms |
460 KB |
Correct |
97 |
Correct |
964 ms |
448 KB |
Correct |
98 |
Correct |
976 ms |
424 KB |
Correct |
99 |
Correct |
357 ms |
432 KB |
Correct |
100 |
Correct |
338 ms |
344 KB |
Correct |
101 |
Correct |
436 ms |
600 KB |
Correct |
102 |
Correct |
660 ms |
600 KB |
Correct |
103 |
Correct |
712 ms |
600 KB |
Correct |
104 |
Correct |
566 ms |
456 KB |
Correct |
105 |
Correct |
631 ms |
428 KB |
Correct |
106 |
Correct |
446 ms |
432 KB |
Correct |
107 |
Correct |
476 ms |
344 KB |
Correct |
108 |
Correct |
303 ms |
432 KB |
Correct |
109 |
Correct |
393 ms |
848 KB |
Correct |
110 |
Correct |
545 ms |
344 KB |
Correct |
111 |
Correct |
540 ms |
456 KB |
Correct |
112 |
Correct |
966 ms |
432 KB |
Correct |
113 |
Correct |
971 ms |
424 KB |
Correct |
114 |
Correct |
308 ms |
428 KB |
Correct |
115 |
Correct |
339 ms |
344 KB |
Correct |
116 |
Correct |
386 ms |
344 KB |
Correct |
117 |
Correct |
657 ms |
596 KB |
Correct |
118 |
Correct |
624 ms |
592 KB |
Correct |
119 |
Correct |
592 ms |
344 KB |
Correct |
120 |
Correct |
590 ms |
344 KB |
Correct |
121 |
Correct |
422 ms |
424 KB |
Correct |
122 |
Correct |
492 ms |
344 KB |
Correct |
123 |
Correct |
456 ms |
432 KB |
Correct |
124 |
Correct |
403 ms |
596 KB |
Correct |
125 |
Correct |
548 ms |
344 KB |
Correct |
126 |
Correct |
545 ms |
600 KB |
Correct |
127 |
Correct |
924 ms |
592 KB |
Correct |
128 |
Correct |
972 ms |
600 KB |
Correct |
129 |
Correct |
362 ms |
428 KB |
Correct |
130 |
Correct |
341 ms |
592 KB |
Correct |