#include "light.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n;
vector<ll> a;
void prepare(){
n = 1;
a.push_back(1);
}
vector<ll> rev(vector<ll> v){
reverse(v.begin(), v.end());
return v;
}
std::pair<long long, std::vector<long long>> join(long long p){
n += p;
vector<ll> b;
for (auto &x:a) if (x <= n) b.push_back(x);
a.clear();
a.push_back(n);
while(true){
ll t = a.back() - 1 - (n - a.back() + 1);
if (t <= 1) break;
ll mn = 4e18;
for (auto &x:b) if (x + p >= t) mn = min(mn, max(t, x));
assert(mn < a.back());
a.push_back(mn);
}
a.push_back(1);
assert(a.size() <= 150);
return {p, rev(a)};
}
std::pair<long long, std::vector<long long>> leave(long long p){
n -= p;
if (n==1) {return {0, {1}};}
vector<ll> b;
for (auto &x:a) if (x <= n) b.push_back(x);
a.clear();
a.push_back(n);
while(true){
ll t = a.back() - 1 - (n - a.back() + 1);
if (t <= 1) break;
ll mn = 4e18;
for (auto &x:b) if (x + p >= t) mn = min(mn, max(t, x));
assert(mn < a.back());
a.push_back(mn);
}
a.push_back(1);
assert(a.size() <= 150);
return {p, rev(a)};
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
437 ms |
428 KB |
Correct |
3 |
Correct |
403 ms |
344 KB |
Correct |
4 |
Correct |
393 ms |
340 KB |
Correct |
5 |
Correct |
444 ms |
344 KB |
Correct |
6 |
Correct |
456 ms |
344 KB |
Correct |
7 |
Correct |
391 ms |
344 KB |
Correct |
8 |
Correct |
402 ms |
344 KB |
Correct |
9 |
Correct |
438 ms |
344 KB |
Correct |
10 |
Correct |
446 ms |
344 KB |
Correct |
11 |
Correct |
418 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
242 ms |
344 KB |
Correct |
3 |
Correct |
49 ms |
344 KB |
Correct |
4 |
Correct |
247 ms |
344 KB |
Correct |
5 |
Correct |
258 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
264 ms |
344 KB |
Correct |
8 |
Correct |
18 ms |
344 KB |
Correct |
9 |
Correct |
258 ms |
344 KB |
Correct |
10 |
Correct |
243 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
240 ms |
596 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
242 ms |
344 KB |
Correct |
3 |
Correct |
49 ms |
344 KB |
Correct |
4 |
Correct |
247 ms |
344 KB |
Correct |
5 |
Correct |
258 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
264 ms |
344 KB |
Correct |
8 |
Correct |
18 ms |
344 KB |
Correct |
9 |
Correct |
258 ms |
344 KB |
Correct |
10 |
Correct |
243 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
240 ms |
596 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
244 ms |
344 KB |
Correct |
15 |
Correct |
34 ms |
344 KB |
Correct |
16 |
Correct |
246 ms |
344 KB |
Correct |
17 |
Correct |
270 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
259 ms |
596 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
251 ms |
344 KB |
Correct |
22 |
Correct |
267 ms |
344 KB |
Correct |
23 |
Correct |
77 ms |
344 KB |
Correct |
24 |
Correct |
247 ms |
344 KB |
Correct |
25 |
Correct |
6 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
273 ms |
344 KB |
Correct |
29 |
Correct |
16 ms |
344 KB |
Correct |
30 |
Correct |
239 ms |
344 KB |
Correct |
31 |
Correct |
228 ms |
344 KB |
Correct |
32 |
Correct |
6 ms |
344 KB |
Correct |
33 |
Correct |
264 ms |
344 KB |
Correct |
34 |
Correct |
220 ms |
344 KB |
Correct |
35 |
Correct |
218 ms |
344 KB |
Correct |
36 |
Correct |
253 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
242 ms |
344 KB |
Correct |
3 |
Correct |
49 ms |
344 KB |
Correct |
4 |
Correct |
247 ms |
344 KB |
Correct |
5 |
Correct |
258 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
264 ms |
344 KB |
Correct |
8 |
Correct |
18 ms |
344 KB |
Correct |
9 |
Correct |
258 ms |
344 KB |
Correct |
10 |
Correct |
243 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
240 ms |
596 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
244 ms |
344 KB |
Correct |
15 |
Correct |
34 ms |
344 KB |
Correct |
16 |
Correct |
246 ms |
344 KB |
Correct |
17 |
Correct |
270 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
259 ms |
596 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
251 ms |
344 KB |
Correct |
22 |
Correct |
267 ms |
344 KB |
Correct |
23 |
Correct |
77 ms |
344 KB |
Correct |
24 |
Correct |
247 ms |
344 KB |
Correct |
25 |
Correct |
6 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
273 ms |
344 KB |
Correct |
29 |
Correct |
16 ms |
344 KB |
Correct |
30 |
Correct |
239 ms |
344 KB |
Correct |
31 |
Correct |
228 ms |
344 KB |
Correct |
32 |
Correct |
6 ms |
344 KB |
Correct |
33 |
Correct |
264 ms |
344 KB |
Correct |
34 |
Correct |
220 ms |
344 KB |
Correct |
35 |
Correct |
218 ms |
344 KB |
Correct |
36 |
Correct |
253 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
270 ms |
344 KB |
Correct |
39 |
Correct |
39 ms |
344 KB |
Correct |
40 |
Correct |
246 ms |
344 KB |
Correct |
41 |
Correct |
246 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
264 ms |
344 KB |
Correct |
44 |
Correct |
20 ms |
344 KB |
Correct |
45 |
Correct |
266 ms |
344 KB |
Correct |
46 |
Correct |
254 ms |
344 KB |
Correct |
47 |
Correct |
62 ms |
344 KB |
Correct |
48 |
Correct |
259 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
3 ms |
344 KB |
Correct |
51 |
Correct |
3 ms |
344 KB |
Correct |
52 |
Correct |
253 ms |
344 KB |
Correct |
53 |
Correct |
16 ms |
344 KB |
Correct |
54 |
Correct |
267 ms |
344 KB |
Correct |
55 |
Correct |
298 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
252 ms |
344 KB |
Correct |
58 |
Correct |
259 ms |
344 KB |
Correct |
59 |
Correct |
230 ms |
344 KB |
Correct |
60 |
Correct |
219 ms |
344 KB |
Correct |
61 |
Correct |
20 ms |
432 KB |
Correct |
62 |
Correct |
47 ms |
436 KB |
Correct |
63 |
Correct |
20 ms |
344 KB |
Correct |
64 |
Correct |
239 ms |
596 KB |
Correct |
65 |
Correct |
250 ms |
344 KB |
Correct |
66 |
Correct |
289 ms |
600 KB |
Correct |
67 |
Correct |
267 ms |
344 KB |
Correct |
68 |
Correct |
251 ms |
344 KB |
Correct |
69 |
Correct |
268 ms |
340 KB |
Correct |
70 |
Correct |
243 ms |
344 KB |
Correct |
71 |
Correct |
276 ms |
432 KB |
Correct |
72 |
Correct |
276 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
242 ms |
344 KB |
Correct |
3 |
Correct |
49 ms |
344 KB |
Correct |
4 |
Correct |
247 ms |
344 KB |
Correct |
5 |
Correct |
258 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
264 ms |
344 KB |
Correct |
8 |
Correct |
18 ms |
344 KB |
Correct |
9 |
Correct |
258 ms |
344 KB |
Correct |
10 |
Correct |
243 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
240 ms |
596 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
244 ms |
344 KB |
Correct |
15 |
Correct |
34 ms |
344 KB |
Correct |
16 |
Correct |
246 ms |
344 KB |
Correct |
17 |
Correct |
270 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
259 ms |
596 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
251 ms |
344 KB |
Correct |
22 |
Correct |
267 ms |
344 KB |
Correct |
23 |
Correct |
77 ms |
344 KB |
Correct |
24 |
Correct |
247 ms |
344 KB |
Correct |
25 |
Correct |
6 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
273 ms |
344 KB |
Correct |
29 |
Correct |
16 ms |
344 KB |
Correct |
30 |
Correct |
239 ms |
344 KB |
Correct |
31 |
Correct |
228 ms |
344 KB |
Correct |
32 |
Correct |
6 ms |
344 KB |
Correct |
33 |
Correct |
264 ms |
344 KB |
Correct |
34 |
Correct |
220 ms |
344 KB |
Correct |
35 |
Correct |
218 ms |
344 KB |
Correct |
36 |
Correct |
253 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
270 ms |
344 KB |
Correct |
39 |
Correct |
39 ms |
344 KB |
Correct |
40 |
Correct |
246 ms |
344 KB |
Correct |
41 |
Correct |
246 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
264 ms |
344 KB |
Correct |
44 |
Correct |
20 ms |
344 KB |
Correct |
45 |
Correct |
266 ms |
344 KB |
Correct |
46 |
Correct |
254 ms |
344 KB |
Correct |
47 |
Correct |
62 ms |
344 KB |
Correct |
48 |
Correct |
259 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
3 ms |
344 KB |
Correct |
51 |
Correct |
3 ms |
344 KB |
Correct |
52 |
Correct |
253 ms |
344 KB |
Correct |
53 |
Correct |
16 ms |
344 KB |
Correct |
54 |
Correct |
267 ms |
344 KB |
Correct |
55 |
Correct |
298 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
252 ms |
344 KB |
Correct |
58 |
Correct |
259 ms |
344 KB |
Correct |
59 |
Correct |
230 ms |
344 KB |
Correct |
60 |
Correct |
219 ms |
344 KB |
Correct |
61 |
Correct |
20 ms |
432 KB |
Correct |
62 |
Correct |
47 ms |
436 KB |
Correct |
63 |
Correct |
20 ms |
344 KB |
Correct |
64 |
Correct |
239 ms |
596 KB |
Correct |
65 |
Correct |
250 ms |
344 KB |
Correct |
66 |
Correct |
289 ms |
600 KB |
Correct |
67 |
Correct |
267 ms |
344 KB |
Correct |
68 |
Correct |
251 ms |
344 KB |
Correct |
69 |
Correct |
268 ms |
340 KB |
Correct |
70 |
Correct |
243 ms |
344 KB |
Correct |
71 |
Correct |
276 ms |
432 KB |
Correct |
72 |
Correct |
276 ms |
344 KB |
Correct |
73 |
Correct |
1 ms |
344 KB |
Correct |
74 |
Correct |
285 ms |
344 KB |
Correct |
75 |
Correct |
47 ms |
344 KB |
Correct |
76 |
Correct |
234 ms |
344 KB |
Correct |
77 |
Correct |
225 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
255 ms |
344 KB |
Correct |
80 |
Correct |
19 ms |
344 KB |
Correct |
81 |
Correct |
261 ms |
344 KB |
Correct |
82 |
Correct |
248 ms |
344 KB |
Correct |
83 |
Correct |
77 ms |
344 KB |
Correct |
84 |
Correct |
250 ms |
344 KB |
Correct |
85 |
Correct |
2 ms |
344 KB |
Correct |
86 |
Correct |
3 ms |
504 KB |
Correct |
87 |
Correct |
4 ms |
344 KB |
Correct |
88 |
Correct |
255 ms |
344 KB |
Correct |
89 |
Correct |
14 ms |
344 KB |
Correct |
90 |
Correct |
243 ms |
344 KB |
Correct |
91 |
Correct |
231 ms |
344 KB |
Correct |
92 |
Correct |
8 ms |
344 KB |
Correct |
93 |
Correct |
250 ms |
344 KB |
Correct |
94 |
Correct |
258 ms |
344 KB |
Correct |
95 |
Correct |
256 ms |
344 KB |
Correct |
96 |
Correct |
212 ms |
344 KB |
Correct |
97 |
Correct |
16 ms |
600 KB |
Correct |
98 |
Correct |
37 ms |
432 KB |
Correct |
99 |
Correct |
22 ms |
344 KB |
Correct |
100 |
Correct |
283 ms |
344 KB |
Correct |
101 |
Correct |
258 ms |
344 KB |
Correct |
102 |
Correct |
246 ms |
432 KB |
Correct |
103 |
Correct |
271 ms |
344 KB |
Correct |
104 |
Correct |
231 ms |
344 KB |
Correct |
105 |
Correct |
249 ms |
340 KB |
Correct |
106 |
Correct |
298 ms |
344 KB |
Correct |
107 |
Correct |
287 ms |
408 KB |
Correct |
108 |
Correct |
245 ms |
344 KB |
Correct |
109 |
Correct |
246 ms |
344 KB |
Correct |
110 |
Correct |
260 ms |
596 KB |
Correct |
111 |
Correct |
262 ms |
408 KB |
Correct |
112 |
Correct |
302 ms |
344 KB |
Correct |
113 |
Correct |
268 ms |
344 KB |
Correct |
114 |
Correct |
285 ms |
600 KB |
Correct |
115 |
Correct |
268 ms |
344 KB |
Correct |
116 |
Correct |
225 ms |
344 KB |
Correct |
117 |
Correct |
246 ms |
344 KB |
Correct |
118 |
Correct |
276 ms |
344 KB |
Correct |
119 |
Correct |
239 ms |
428 KB |
Correct |
120 |
Correct |
229 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
242 ms |
344 KB |
Correct |
3 |
Correct |
49 ms |
344 KB |
Correct |
4 |
Correct |
247 ms |
344 KB |
Correct |
5 |
Correct |
258 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
264 ms |
344 KB |
Correct |
8 |
Correct |
18 ms |
344 KB |
Correct |
9 |
Correct |
258 ms |
344 KB |
Correct |
10 |
Correct |
243 ms |
344 KB |
Correct |
11 |
Correct |
66 ms |
344 KB |
Correct |
12 |
Correct |
240 ms |
596 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
244 ms |
344 KB |
Correct |
15 |
Correct |
34 ms |
344 KB |
Correct |
16 |
Correct |
246 ms |
344 KB |
Correct |
17 |
Correct |
270 ms |
344 KB |
Correct |
18 |
Correct |
4 ms |
344 KB |
Correct |
19 |
Correct |
259 ms |
596 KB |
Correct |
20 |
Correct |
19 ms |
344 KB |
Correct |
21 |
Correct |
251 ms |
344 KB |
Correct |
22 |
Correct |
267 ms |
344 KB |
Correct |
23 |
Correct |
77 ms |
344 KB |
Correct |
24 |
Correct |
247 ms |
344 KB |
Correct |
25 |
Correct |
6 ms |
344 KB |
Correct |
26 |
Correct |
3 ms |
344 KB |
Correct |
27 |
Correct |
4 ms |
344 KB |
Correct |
28 |
Correct |
273 ms |
344 KB |
Correct |
29 |
Correct |
16 ms |
344 KB |
Correct |
30 |
Correct |
239 ms |
344 KB |
Correct |
31 |
Correct |
228 ms |
344 KB |
Correct |
32 |
Correct |
6 ms |
344 KB |
Correct |
33 |
Correct |
264 ms |
344 KB |
Correct |
34 |
Correct |
220 ms |
344 KB |
Correct |
35 |
Correct |
218 ms |
344 KB |
Correct |
36 |
Correct |
253 ms |
344 KB |
Correct |
37 |
Correct |
1 ms |
344 KB |
Correct |
38 |
Correct |
270 ms |
344 KB |
Correct |
39 |
Correct |
39 ms |
344 KB |
Correct |
40 |
Correct |
246 ms |
344 KB |
Correct |
41 |
Correct |
246 ms |
344 KB |
Correct |
42 |
Correct |
5 ms |
344 KB |
Correct |
43 |
Correct |
264 ms |
344 KB |
Correct |
44 |
Correct |
20 ms |
344 KB |
Correct |
45 |
Correct |
266 ms |
344 KB |
Correct |
46 |
Correct |
254 ms |
344 KB |
Correct |
47 |
Correct |
62 ms |
344 KB |
Correct |
48 |
Correct |
259 ms |
344 KB |
Correct |
49 |
Correct |
4 ms |
344 KB |
Correct |
50 |
Correct |
3 ms |
344 KB |
Correct |
51 |
Correct |
3 ms |
344 KB |
Correct |
52 |
Correct |
253 ms |
344 KB |
Correct |
53 |
Correct |
16 ms |
344 KB |
Correct |
54 |
Correct |
267 ms |
344 KB |
Correct |
55 |
Correct |
298 ms |
344 KB |
Correct |
56 |
Correct |
8 ms |
344 KB |
Correct |
57 |
Correct |
252 ms |
344 KB |
Correct |
58 |
Correct |
259 ms |
344 KB |
Correct |
59 |
Correct |
230 ms |
344 KB |
Correct |
60 |
Correct |
219 ms |
344 KB |
Correct |
61 |
Correct |
20 ms |
432 KB |
Correct |
62 |
Correct |
47 ms |
436 KB |
Correct |
63 |
Correct |
20 ms |
344 KB |
Correct |
64 |
Correct |
239 ms |
596 KB |
Correct |
65 |
Correct |
250 ms |
344 KB |
Correct |
66 |
Correct |
289 ms |
600 KB |
Correct |
67 |
Correct |
267 ms |
344 KB |
Correct |
68 |
Correct |
251 ms |
344 KB |
Correct |
69 |
Correct |
268 ms |
340 KB |
Correct |
70 |
Correct |
243 ms |
344 KB |
Correct |
71 |
Correct |
276 ms |
432 KB |
Correct |
72 |
Correct |
276 ms |
344 KB |
Correct |
73 |
Correct |
1 ms |
344 KB |
Correct |
74 |
Correct |
285 ms |
344 KB |
Correct |
75 |
Correct |
47 ms |
344 KB |
Correct |
76 |
Correct |
234 ms |
344 KB |
Correct |
77 |
Correct |
225 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
255 ms |
344 KB |
Correct |
80 |
Correct |
19 ms |
344 KB |
Correct |
81 |
Correct |
261 ms |
344 KB |
Correct |
82 |
Correct |
248 ms |
344 KB |
Correct |
83 |
Correct |
77 ms |
344 KB |
Correct |
84 |
Correct |
250 ms |
344 KB |
Correct |
85 |
Correct |
2 ms |
344 KB |
Correct |
86 |
Correct |
3 ms |
504 KB |
Correct |
87 |
Correct |
4 ms |
344 KB |
Correct |
88 |
Correct |
255 ms |
344 KB |
Correct |
89 |
Correct |
14 ms |
344 KB |
Correct |
90 |
Correct |
243 ms |
344 KB |
Correct |
91 |
Correct |
231 ms |
344 KB |
Correct |
92 |
Correct |
8 ms |
344 KB |
Correct |
93 |
Correct |
250 ms |
344 KB |
Correct |
94 |
Correct |
258 ms |
344 KB |
Correct |
95 |
Correct |
256 ms |
344 KB |
Correct |
96 |
Correct |
212 ms |
344 KB |
Correct |
97 |
Correct |
16 ms |
600 KB |
Correct |
98 |
Correct |
37 ms |
432 KB |
Correct |
99 |
Correct |
22 ms |
344 KB |
Correct |
100 |
Correct |
283 ms |
344 KB |
Correct |
101 |
Correct |
258 ms |
344 KB |
Correct |
102 |
Correct |
246 ms |
432 KB |
Correct |
103 |
Correct |
271 ms |
344 KB |
Correct |
104 |
Correct |
231 ms |
344 KB |
Correct |
105 |
Correct |
249 ms |
340 KB |
Correct |
106 |
Correct |
298 ms |
344 KB |
Correct |
107 |
Correct |
287 ms |
408 KB |
Correct |
108 |
Correct |
245 ms |
344 KB |
Correct |
109 |
Correct |
246 ms |
344 KB |
Correct |
110 |
Correct |
260 ms |
596 KB |
Correct |
111 |
Correct |
262 ms |
408 KB |
Correct |
112 |
Correct |
302 ms |
344 KB |
Correct |
113 |
Correct |
268 ms |
344 KB |
Correct |
114 |
Correct |
285 ms |
600 KB |
Correct |
115 |
Correct |
268 ms |
344 KB |
Correct |
116 |
Correct |
225 ms |
344 KB |
Correct |
117 |
Correct |
246 ms |
344 KB |
Correct |
118 |
Correct |
276 ms |
344 KB |
Correct |
119 |
Correct |
239 ms |
428 KB |
Correct |
120 |
Correct |
229 ms |
344 KB |
Correct |
121 |
Correct |
0 ms |
344 KB |
Correct |
122 |
Correct |
252 ms |
340 KB |
Correct |
123 |
Correct |
39 ms |
344 KB |
Correct |
124 |
Correct |
248 ms |
344 KB |
Correct |
125 |
Correct |
271 ms |
340 KB |
Correct |
126 |
Correct |
4 ms |
344 KB |
Correct |
127 |
Correct |
234 ms |
344 KB |
Correct |
128 |
Correct |
18 ms |
344 KB |
Correct |
129 |
Correct |
253 ms |
344 KB |
Correct |
130 |
Correct |
256 ms |
344 KB |
Correct |
131 |
Correct |
68 ms |
344 KB |
Correct |
132 |
Correct |
243 ms |
344 KB |
Correct |
133 |
Correct |
4 ms |
344 KB |
Correct |
134 |
Correct |
3 ms |
344 KB |
Correct |
135 |
Correct |
3 ms |
344 KB |
Correct |
136 |
Correct |
246 ms |
344 KB |
Correct |
137 |
Correct |
19 ms |
344 KB |
Correct |
138 |
Correct |
240 ms |
344 KB |
Correct |
139 |
Correct |
248 ms |
344 KB |
Correct |
140 |
Correct |
7 ms |
344 KB |
Correct |
141 |
Correct |
241 ms |
344 KB |
Correct |
142 |
Correct |
230 ms |
344 KB |
Correct |
143 |
Correct |
217 ms |
344 KB |
Correct |
144 |
Correct |
191 ms |
344 KB |
Correct |
145 |
Correct |
18 ms |
436 KB |
Correct |
146 |
Correct |
32 ms |
344 KB |
Correct |
147 |
Correct |
23 ms |
344 KB |
Correct |
148 |
Correct |
267 ms |
344 KB |
Correct |
149 |
Correct |
252 ms |
504 KB |
Correct |
150 |
Correct |
198 ms |
600 KB |
Correct |
151 |
Correct |
249 ms |
340 KB |
Correct |
152 |
Correct |
254 ms |
344 KB |
Correct |
153 |
Correct |
287 ms |
344 KB |
Correct |
154 |
Correct |
282 ms |
600 KB |
Correct |
155 |
Correct |
239 ms |
344 KB |
Correct |
156 |
Correct |
253 ms |
340 KB |
Correct |
157 |
Correct |
248 ms |
344 KB |
Correct |
158 |
Correct |
239 ms |
416 KB |
Correct |
159 |
Correct |
228 ms |
592 KB |
Correct |
160 |
Correct |
245 ms |
344 KB |
Correct |
161 |
Correct |
286 ms |
344 KB |
Correct |
162 |
Correct |
261 ms |
344 KB |
Correct |
163 |
Correct |
267 ms |
344 KB |
Correct |
164 |
Correct |
228 ms |
344 KB |
Correct |
165 |
Correct |
265 ms |
344 KB |
Correct |
166 |
Correct |
299 ms |
344 KB |
Correct |
167 |
Correct |
258 ms |
592 KB |
Correct |
168 |
Correct |
256 ms |
344 KB |
Correct |
169 |
Correct |
267 ms |
344 KB |
Correct |
170 |
Correct |
291 ms |
344 KB |
Correct |
171 |
Correct |
285 ms |
344 KB |
Correct |
172 |
Correct |
238 ms |
344 KB |
Correct |
173 |
Correct |
259 ms |
344 KB |
Correct |
174 |
Correct |
209 ms |
344 KB |
Correct |
175 |
Correct |
264 ms |
344 KB |
Correct |
176 |
Correct |
251 ms |
344 KB |
Correct |
177 |
Correct |
248 ms |
344 KB |
Correct |
178 |
Correct |
284 ms |
344 KB |
Correct |
179 |
Correct |
214 ms |
436 KB |
Correct |
180 |
Correct |
234 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Correct |
2 |
Correct |
460 ms |
344 KB |
Correct |
3 |
Correct |
375 ms |
344 KB |
Correct |
4 |
Correct |
363 ms |
344 KB |
Correct |
5 |
Correct |
372 ms |
344 KB |
Correct |
6 |
Correct |
403 ms |
356 KB |
Correct |
7 |
Correct |
379 ms |
344 KB |
Correct |
8 |
Correct |
353 ms |
344 KB |
Correct |
9 |
Correct |
384 ms |
344 KB |
Correct |
10 |
Correct |
413 ms |
344 KB |
Correct |
11 |
Correct |
354 ms |
344 KB |
Correct |
12 |
Correct |
202 ms |
344 KB |
Correct |
13 |
Correct |
42 ms |
344 KB |
Correct |
14 |
Correct |
240 ms |
344 KB |
Correct |
15 |
Correct |
229 ms |
344 KB |
Correct |
16 |
Correct |
5 ms |
340 KB |
Correct |
17 |
Correct |
188 ms |
344 KB |
Correct |
18 |
Correct |
24 ms |
344 KB |
Correct |
19 |
Correct |
200 ms |
344 KB |
Correct |
20 |
Correct |
189 ms |
344 KB |
Correct |
21 |
Correct |
67 ms |
344 KB |
Correct |
22 |
Correct |
216 ms |
344 KB |
Correct |
23 |
Correct |
4 ms |
344 KB |
Correct |
24 |
Correct |
3 ms |
344 KB |
Correct |
25 |
Correct |
3 ms |
344 KB |
Correct |
26 |
Correct |
209 ms |
344 KB |
Correct |
27 |
Correct |
21 ms |
344 KB |
Correct |
28 |
Correct |
209 ms |
344 KB |
Correct |
29 |
Correct |
242 ms |
344 KB |
Correct |
30 |
Correct |
4 ms |
344 KB |
Correct |
31 |
Correct |
221 ms |
344 KB |
Correct |
32 |
Correct |
232 ms |
344 KB |
Correct |
33 |
Correct |
227 ms |
344 KB |
Correct |
34 |
Correct |
286 ms |
344 KB |
Correct |
35 |
Correct |
17 ms |
436 KB |
Correct |
36 |
Correct |
31 ms |
344 KB |
Correct |
37 |
Correct |
23 ms |
596 KB |
Correct |
38 |
Correct |
255 ms |
344 KB |
Correct |
39 |
Correct |
235 ms |
344 KB |
Correct |
40 |
Correct |
259 ms |
344 KB |
Correct |
41 |
Correct |
252 ms |
344 KB |
Correct |
42 |
Correct |
221 ms |
344 KB |
Correct |
43 |
Correct |
259 ms |
344 KB |
Correct |
44 |
Correct |
242 ms |
596 KB |
Correct |
45 |
Correct |
230 ms |
592 KB |
Correct |
46 |
Correct |
219 ms |
344 KB |
Correct |
47 |
Correct |
258 ms |
344 KB |
Correct |
48 |
Correct |
247 ms |
408 KB |
Correct |
49 |
Correct |
243 ms |
416 KB |
Correct |
50 |
Correct |
252 ms |
344 KB |
Correct |
51 |
Correct |
235 ms |
344 KB |
Correct |
52 |
Correct |
268 ms |
344 KB |
Correct |
53 |
Correct |
258 ms |
344 KB |
Correct |
54 |
Correct |
251 ms |
344 KB |
Correct |
55 |
Correct |
227 ms |
344 KB |
Correct |
56 |
Correct |
256 ms |
344 KB |
Correct |
57 |
Correct |
214 ms |
412 KB |
Correct |
58 |
Correct |
229 ms |
344 KB |
Correct |
59 |
Correct |
295 ms |
344 KB |
Correct |
60 |
Correct |
270 ms |
344 KB |
Correct |
61 |
Correct |
238 ms |
344 KB |
Correct |
62 |
Correct |
274 ms |
344 KB |
Correct |
63 |
Correct |
252 ms |
344 KB |
Correct |
64 |
Correct |
249 ms |
344 KB |
Correct |
65 |
Correct |
259 ms |
344 KB |
Correct |
66 |
Correct |
270 ms |
344 KB |
Correct |
67 |
Correct |
259 ms |
344 KB |
Correct |
68 |
Correct |
276 ms |
344 KB |
Correct |
69 |
Correct |
222 ms |
600 KB |
Correct |
70 |
Correct |
301 ms |
344 KB |
Correct |
71 |
Correct |
330 ms |
440 KB |
Correct |
72 |
Correct |
538 ms |
428 KB |
Correct |
73 |
Correct |
546 ms |
600 KB |
Correct |
74 |
Correct |
471 ms |
344 KB |
Correct |
75 |
Correct |
463 ms |
440 KB |
Correct |
76 |
Correct |
284 ms |
600 KB |
Correct |
77 |
Correct |
450 ms |
344 KB |
Correct |
78 |
Correct |
368 ms |
424 KB |
Correct |
79 |
Correct |
271 ms |
600 KB |
Correct |
80 |
Correct |
410 ms |
452 KB |
Correct |
81 |
Correct |
449 ms |
344 KB |
Correct |
82 |
Correct |
780 ms |
424 KB |
Correct |
83 |
Correct |
716 ms |
420 KB |
Correct |
84 |
Correct |
213 ms |
344 KB |
Correct |
85 |
Correct |
258 ms |
600 KB |
Correct |
86 |
Correct |
314 ms |
592 KB |
Correct |
87 |
Correct |
476 ms |
444 KB |
Correct |
88 |
Correct |
467 ms |
448 KB |
Correct |
89 |
Correct |
496 ms |
344 KB |
Correct |
90 |
Correct |
456 ms |
344 KB |
Correct |
91 |
Correct |
309 ms |
416 KB |
Correct |
92 |
Correct |
369 ms |
596 KB |
Correct |
93 |
Correct |
327 ms |
420 KB |
Correct |
94 |
Correct |
326 ms |
428 KB |
Correct |
95 |
Correct |
407 ms |
344 KB |
Correct |
96 |
Correct |
399 ms |
456 KB |
Correct |
97 |
Correct |
672 ms |
440 KB |
Correct |
98 |
Correct |
662 ms |
444 KB |
Correct |
99 |
Correct |
223 ms |
344 KB |
Correct |
100 |
Correct |
212 ms |
344 KB |
Correct |
101 |
Correct |
329 ms |
600 KB |
Correct |
102 |
Correct |
476 ms |
428 KB |
Correct |
103 |
Correct |
472 ms |
424 KB |
Correct |
104 |
Correct |
405 ms |
344 KB |
Correct |
105 |
Correct |
448 ms |
344 KB |
Correct |
106 |
Correct |
331 ms |
440 KB |
Correct |
107 |
Correct |
351 ms |
344 KB |
Correct |
108 |
Correct |
188 ms |
344 KB |
Correct |
109 |
Correct |
270 ms |
420 KB |
Correct |
110 |
Correct |
420 ms |
344 KB |
Correct |
111 |
Correct |
361 ms |
344 KB |
Correct |
112 |
Correct |
667 ms |
596 KB |
Correct |
113 |
Correct |
685 ms |
440 KB |
Correct |
114 |
Correct |
261 ms |
344 KB |
Correct |
115 |
Correct |
275 ms |
436 KB |
Correct |
116 |
Correct |
332 ms |
344 KB |
Correct |
117 |
Correct |
535 ms |
432 KB |
Correct |
118 |
Correct |
517 ms |
344 KB |
Correct |
119 |
Correct |
451 ms |
344 KB |
Correct |
120 |
Correct |
450 ms |
344 KB |
Correct |
121 |
Correct |
282 ms |
420 KB |
Correct |
122 |
Correct |
404 ms |
344 KB |
Correct |
123 |
Correct |
292 ms |
420 KB |
Correct |
124 |
Correct |
308 ms |
600 KB |
Correct |
125 |
Correct |
406 ms |
344 KB |
Correct |
126 |
Correct |
463 ms |
344 KB |
Correct |
127 |
Correct |
700 ms |
344 KB |
Correct |
128 |
Correct |
801 ms |
420 KB |
Correct |
129 |
Correct |
242 ms |
344 KB |
Correct |
130 |
Correct |
270 ms |
344 KB |
Correct |