#include "light.h"
#include <bits/stdc++.h>
#define pb push_back
#define int long long
#define ep insert
using namespace std;
set<int> s;
int n;
void prepare(){
n=1;
s.ep(1);
}
std::pair<long long, std::vector<long long>> join(long long x){
n+=x;
set<int> z;
for (auto u:s) z.ep(u+x);
//for (auto u:z) cout<<u<<' ';cout<<endl;
s.clear();
s.ep(1);s.ep(n);
for (int i=1;i<n;){
int j=n+1;
auto it=z.upper_bound(2*i);
if (it!=z.begin()){
--it;
if (*it<=2*i) j=*it;
}
it=z.upper_bound(2*i);
if (it!=z.end() && *it<=2*i+x) j=2*i;
if (j!=n+1)s.ep(j);
//cout<<i<<' '<<j<<endl;
i=j;
}
vector<int> v;
for (auto u:s) v.pb(n-u+1);
sort(v.begin(),v.end());
return {x,v};
}
std::pair<long long, std::vector<long long>> leave(long long x){
n-=x;
set<int> z;
for (auto u:s) if (u-x>0) z.ep(u-x);
//for (auto u:z) cout<<u<<' ';cout<<endl;
s.clear();
s.ep(1);s.ep(n);
for (int i=1;i<n;){
int j=n+1;
auto it=z.upper_bound(2*i);
if (it!=z.begin()){
--it;
if (*it<=2*i) j=*it;
}
it=z.upper_bound(2*i);
if (it!=z.end() && *it<=2*i+x) j=2*i;
if (j!=n+1)s.ep(j);
//cout<<i<<' '<<j<<endl;
i=j;
}
vector<int> v;
for (auto u:s) v.pb(n-u+1);
sort(v.begin(),v.end());
return {x,v};
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
571 ms |
424 KB |
Correct |
3 |
Correct |
570 ms |
420 KB |
Correct |
4 |
Correct |
591 ms |
420 KB |
Correct |
5 |
Correct |
604 ms |
424 KB |
Correct |
6 |
Correct |
567 ms |
344 KB |
Correct |
7 |
Correct |
595 ms |
344 KB |
Correct |
8 |
Correct |
565 ms |
344 KB |
Correct |
9 |
Correct |
604 ms |
416 KB |
Correct |
10 |
Correct |
584 ms |
344 KB |
Correct |
11 |
Correct |
499 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
350 ms |
436 KB |
Correct |
3 |
Correct |
52 ms |
344 KB |
Correct |
4 |
Correct |
337 ms |
344 KB |
Correct |
5 |
Correct |
352 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
356 ms |
344 KB |
Correct |
8 |
Correct |
20 ms |
600 KB |
Correct |
9 |
Correct |
352 ms |
344 KB |
Correct |
10 |
Correct |
357 ms |
340 KB |
Correct |
11 |
Correct |
100 ms |
344 KB |
Correct |
12 |
Correct |
335 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
350 ms |
436 KB |
Correct |
3 |
Correct |
52 ms |
344 KB |
Correct |
4 |
Correct |
337 ms |
344 KB |
Correct |
5 |
Correct |
352 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
356 ms |
344 KB |
Correct |
8 |
Correct |
20 ms |
600 KB |
Correct |
9 |
Correct |
352 ms |
344 KB |
Correct |
10 |
Correct |
357 ms |
340 KB |
Correct |
11 |
Correct |
100 ms |
344 KB |
Correct |
12 |
Correct |
335 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
326 ms |
436 KB |
Correct |
15 |
Correct |
51 ms |
344 KB |
Correct |
16 |
Correct |
371 ms |
344 KB |
Correct |
17 |
Correct |
357 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
371 ms |
344 KB |
Correct |
20 |
Correct |
17 ms |
344 KB |
Correct |
21 |
Correct |
371 ms |
344 KB |
Correct |
22 |
Correct |
369 ms |
344 KB |
Correct |
23 |
Correct |
108 ms |
344 KB |
Correct |
24 |
Correct |
339 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
6 ms |
344 KB |
Correct |
28 |
Correct |
406 ms |
344 KB |
Correct |
29 |
Correct |
19 ms |
344 KB |
Correct |
30 |
Correct |
367 ms |
344 KB |
Correct |
31 |
Correct |
385 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
392 ms |
344 KB |
Correct |
34 |
Correct |
426 ms |
344 KB |
Correct |
35 |
Correct |
351 ms |
344 KB |
Correct |
36 |
Correct |
351 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
350 ms |
436 KB |
Correct |
3 |
Correct |
52 ms |
344 KB |
Correct |
4 |
Correct |
337 ms |
344 KB |
Correct |
5 |
Correct |
352 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
356 ms |
344 KB |
Correct |
8 |
Correct |
20 ms |
600 KB |
Correct |
9 |
Correct |
352 ms |
344 KB |
Correct |
10 |
Correct |
357 ms |
340 KB |
Correct |
11 |
Correct |
100 ms |
344 KB |
Correct |
12 |
Correct |
335 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
326 ms |
436 KB |
Correct |
15 |
Correct |
51 ms |
344 KB |
Correct |
16 |
Correct |
371 ms |
344 KB |
Correct |
17 |
Correct |
357 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
371 ms |
344 KB |
Correct |
20 |
Correct |
17 ms |
344 KB |
Correct |
21 |
Correct |
371 ms |
344 KB |
Correct |
22 |
Correct |
369 ms |
344 KB |
Correct |
23 |
Correct |
108 ms |
344 KB |
Correct |
24 |
Correct |
339 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
6 ms |
344 KB |
Correct |
28 |
Correct |
406 ms |
344 KB |
Correct |
29 |
Correct |
19 ms |
344 KB |
Correct |
30 |
Correct |
367 ms |
344 KB |
Correct |
31 |
Correct |
385 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
392 ms |
344 KB |
Correct |
34 |
Correct |
426 ms |
344 KB |
Correct |
35 |
Correct |
351 ms |
344 KB |
Correct |
36 |
Correct |
351 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
290 ms |
436 KB |
Correct |
39 |
Correct |
54 ms |
344 KB |
Correct |
40 |
Correct |
315 ms |
344 KB |
Correct |
41 |
Correct |
339 ms |
344 KB |
Correct |
42 |
Correct |
8 ms |
596 KB |
Correct |
43 |
Correct |
343 ms |
344 KB |
Correct |
44 |
Correct |
23 ms |
344 KB |
Correct |
45 |
Correct |
344 ms |
432 KB |
Correct |
46 |
Correct |
322 ms |
340 KB |
Correct |
47 |
Correct |
101 ms |
344 KB |
Correct |
48 |
Correct |
337 ms |
344 KB |
Correct |
49 |
Correct |
6 ms |
344 KB |
Correct |
50 |
Correct |
5 ms |
344 KB |
Correct |
51 |
Correct |
5 ms |
344 KB |
Correct |
52 |
Correct |
344 ms |
344 KB |
Correct |
53 |
Correct |
22 ms |
344 KB |
Correct |
54 |
Correct |
419 ms |
344 KB |
Correct |
55 |
Correct |
374 ms |
344 KB |
Correct |
56 |
Correct |
12 ms |
344 KB |
Correct |
57 |
Correct |
327 ms |
344 KB |
Correct |
58 |
Correct |
383 ms |
344 KB |
Correct |
59 |
Correct |
335 ms |
344 KB |
Correct |
60 |
Correct |
329 ms |
344 KB |
Correct |
61 |
Correct |
25 ms |
344 KB |
Correct |
62 |
Correct |
66 ms |
344 KB |
Correct |
63 |
Correct |
23 ms |
340 KB |
Correct |
64 |
Correct |
406 ms |
344 KB |
Correct |
65 |
Correct |
395 ms |
344 KB |
Correct |
66 |
Correct |
377 ms |
344 KB |
Correct |
67 |
Correct |
366 ms |
344 KB |
Correct |
68 |
Correct |
374 ms |
344 KB |
Correct |
69 |
Correct |
413 ms |
344 KB |
Correct |
70 |
Correct |
400 ms |
344 KB |
Correct |
71 |
Correct |
371 ms |
344 KB |
Correct |
72 |
Correct |
371 ms |
340 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
350 ms |
436 KB |
Correct |
3 |
Correct |
52 ms |
344 KB |
Correct |
4 |
Correct |
337 ms |
344 KB |
Correct |
5 |
Correct |
352 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
356 ms |
344 KB |
Correct |
8 |
Correct |
20 ms |
600 KB |
Correct |
9 |
Correct |
352 ms |
344 KB |
Correct |
10 |
Correct |
357 ms |
340 KB |
Correct |
11 |
Correct |
100 ms |
344 KB |
Correct |
12 |
Correct |
335 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
326 ms |
436 KB |
Correct |
15 |
Correct |
51 ms |
344 KB |
Correct |
16 |
Correct |
371 ms |
344 KB |
Correct |
17 |
Correct |
357 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
371 ms |
344 KB |
Correct |
20 |
Correct |
17 ms |
344 KB |
Correct |
21 |
Correct |
371 ms |
344 KB |
Correct |
22 |
Correct |
369 ms |
344 KB |
Correct |
23 |
Correct |
108 ms |
344 KB |
Correct |
24 |
Correct |
339 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
6 ms |
344 KB |
Correct |
28 |
Correct |
406 ms |
344 KB |
Correct |
29 |
Correct |
19 ms |
344 KB |
Correct |
30 |
Correct |
367 ms |
344 KB |
Correct |
31 |
Correct |
385 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
392 ms |
344 KB |
Correct |
34 |
Correct |
426 ms |
344 KB |
Correct |
35 |
Correct |
351 ms |
344 KB |
Correct |
36 |
Correct |
351 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
290 ms |
436 KB |
Correct |
39 |
Correct |
54 ms |
344 KB |
Correct |
40 |
Correct |
315 ms |
344 KB |
Correct |
41 |
Correct |
339 ms |
344 KB |
Correct |
42 |
Correct |
8 ms |
596 KB |
Correct |
43 |
Correct |
343 ms |
344 KB |
Correct |
44 |
Correct |
23 ms |
344 KB |
Correct |
45 |
Correct |
344 ms |
432 KB |
Correct |
46 |
Correct |
322 ms |
340 KB |
Correct |
47 |
Correct |
101 ms |
344 KB |
Correct |
48 |
Correct |
337 ms |
344 KB |
Correct |
49 |
Correct |
6 ms |
344 KB |
Correct |
50 |
Correct |
5 ms |
344 KB |
Correct |
51 |
Correct |
5 ms |
344 KB |
Correct |
52 |
Correct |
344 ms |
344 KB |
Correct |
53 |
Correct |
22 ms |
344 KB |
Correct |
54 |
Correct |
419 ms |
344 KB |
Correct |
55 |
Correct |
374 ms |
344 KB |
Correct |
56 |
Correct |
12 ms |
344 KB |
Correct |
57 |
Correct |
327 ms |
344 KB |
Correct |
58 |
Correct |
383 ms |
344 KB |
Correct |
59 |
Correct |
335 ms |
344 KB |
Correct |
60 |
Correct |
329 ms |
344 KB |
Correct |
61 |
Correct |
25 ms |
344 KB |
Correct |
62 |
Correct |
66 ms |
344 KB |
Correct |
63 |
Correct |
23 ms |
340 KB |
Correct |
64 |
Correct |
406 ms |
344 KB |
Correct |
65 |
Correct |
395 ms |
344 KB |
Correct |
66 |
Correct |
377 ms |
344 KB |
Correct |
67 |
Correct |
366 ms |
344 KB |
Correct |
68 |
Correct |
374 ms |
344 KB |
Correct |
69 |
Correct |
413 ms |
344 KB |
Correct |
70 |
Correct |
400 ms |
344 KB |
Correct |
71 |
Correct |
371 ms |
344 KB |
Correct |
72 |
Correct |
371 ms |
340 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
336 ms |
344 KB |
Correct |
75 |
Correct |
58 ms |
344 KB |
Correct |
76 |
Correct |
363 ms |
344 KB |
Correct |
77 |
Correct |
373 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
340 ms |
344 KB |
Correct |
80 |
Correct |
21 ms |
344 KB |
Correct |
81 |
Correct |
349 ms |
344 KB |
Correct |
82 |
Correct |
366 ms |
344 KB |
Correct |
83 |
Correct |
105 ms |
344 KB |
Correct |
84 |
Correct |
374 ms |
344 KB |
Correct |
85 |
Correct |
5 ms |
340 KB |
Correct |
86 |
Correct |
5 ms |
344 KB |
Correct |
87 |
Correct |
5 ms |
344 KB |
Correct |
88 |
Correct |
383 ms |
344 KB |
Correct |
89 |
Correct |
19 ms |
344 KB |
Correct |
90 |
Correct |
385 ms |
344 KB |
Correct |
91 |
Correct |
421 ms |
344 KB |
Correct |
92 |
Correct |
8 ms |
344 KB |
Correct |
93 |
Correct |
380 ms |
344 KB |
Correct |
94 |
Correct |
382 ms |
344 KB |
Correct |
95 |
Correct |
363 ms |
344 KB |
Correct |
96 |
Correct |
354 ms |
356 KB |
Correct |
97 |
Correct |
25 ms |
344 KB |
Correct |
98 |
Correct |
60 ms |
344 KB |
Correct |
99 |
Correct |
26 ms |
344 KB |
Correct |
100 |
Correct |
377 ms |
344 KB |
Correct |
101 |
Correct |
405 ms |
340 KB |
Correct |
102 |
Correct |
382 ms |
344 KB |
Correct |
103 |
Correct |
416 ms |
340 KB |
Correct |
104 |
Correct |
363 ms |
596 KB |
Correct |
105 |
Correct |
425 ms |
344 KB |
Correct |
106 |
Correct |
416 ms |
436 KB |
Correct |
107 |
Correct |
363 ms |
344 KB |
Correct |
108 |
Correct |
347 ms |
344 KB |
Correct |
109 |
Correct |
399 ms |
344 KB |
Correct |
110 |
Correct |
392 ms |
344 KB |
Correct |
111 |
Correct |
361 ms |
344 KB |
Correct |
112 |
Correct |
402 ms |
344 KB |
Correct |
113 |
Correct |
387 ms |
344 KB |
Correct |
114 |
Correct |
376 ms |
344 KB |
Correct |
115 |
Correct |
392 ms |
344 KB |
Correct |
116 |
Correct |
370 ms |
344 KB |
Correct |
117 |
Correct |
397 ms |
344 KB |
Correct |
118 |
Correct |
412 ms |
340 KB |
Correct |
119 |
Correct |
407 ms |
344 KB |
Correct |
120 |
Correct |
338 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
350 ms |
436 KB |
Correct |
3 |
Correct |
52 ms |
344 KB |
Correct |
4 |
Correct |
337 ms |
344 KB |
Correct |
5 |
Correct |
352 ms |
344 KB |
Correct |
6 |
Correct |
6 ms |
344 KB |
Correct |
7 |
Correct |
356 ms |
344 KB |
Correct |
8 |
Correct |
20 ms |
600 KB |
Correct |
9 |
Correct |
352 ms |
344 KB |
Correct |
10 |
Correct |
357 ms |
340 KB |
Correct |
11 |
Correct |
100 ms |
344 KB |
Correct |
12 |
Correct |
335 ms |
344 KB |
Correct |
13 |
Correct |
0 ms |
344 KB |
Correct |
14 |
Correct |
326 ms |
436 KB |
Correct |
15 |
Correct |
51 ms |
344 KB |
Correct |
16 |
Correct |
371 ms |
344 KB |
Correct |
17 |
Correct |
357 ms |
344 KB |
Correct |
18 |
Correct |
6 ms |
344 KB |
Correct |
19 |
Correct |
371 ms |
344 KB |
Correct |
20 |
Correct |
17 ms |
344 KB |
Correct |
21 |
Correct |
371 ms |
344 KB |
Correct |
22 |
Correct |
369 ms |
344 KB |
Correct |
23 |
Correct |
108 ms |
344 KB |
Correct |
24 |
Correct |
339 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
4 ms |
344 KB |
Correct |
27 |
Correct |
6 ms |
344 KB |
Correct |
28 |
Correct |
406 ms |
344 KB |
Correct |
29 |
Correct |
19 ms |
344 KB |
Correct |
30 |
Correct |
367 ms |
344 KB |
Correct |
31 |
Correct |
385 ms |
344 KB |
Correct |
32 |
Correct |
7 ms |
344 KB |
Correct |
33 |
Correct |
392 ms |
344 KB |
Correct |
34 |
Correct |
426 ms |
344 KB |
Correct |
35 |
Correct |
351 ms |
344 KB |
Correct |
36 |
Correct |
351 ms |
344 KB |
Correct |
37 |
Correct |
0 ms |
344 KB |
Correct |
38 |
Correct |
290 ms |
436 KB |
Correct |
39 |
Correct |
54 ms |
344 KB |
Correct |
40 |
Correct |
315 ms |
344 KB |
Correct |
41 |
Correct |
339 ms |
344 KB |
Correct |
42 |
Correct |
8 ms |
596 KB |
Correct |
43 |
Correct |
343 ms |
344 KB |
Correct |
44 |
Correct |
23 ms |
344 KB |
Correct |
45 |
Correct |
344 ms |
432 KB |
Correct |
46 |
Correct |
322 ms |
340 KB |
Correct |
47 |
Correct |
101 ms |
344 KB |
Correct |
48 |
Correct |
337 ms |
344 KB |
Correct |
49 |
Correct |
6 ms |
344 KB |
Correct |
50 |
Correct |
5 ms |
344 KB |
Correct |
51 |
Correct |
5 ms |
344 KB |
Correct |
52 |
Correct |
344 ms |
344 KB |
Correct |
53 |
Correct |
22 ms |
344 KB |
Correct |
54 |
Correct |
419 ms |
344 KB |
Correct |
55 |
Correct |
374 ms |
344 KB |
Correct |
56 |
Correct |
12 ms |
344 KB |
Correct |
57 |
Correct |
327 ms |
344 KB |
Correct |
58 |
Correct |
383 ms |
344 KB |
Correct |
59 |
Correct |
335 ms |
344 KB |
Correct |
60 |
Correct |
329 ms |
344 KB |
Correct |
61 |
Correct |
25 ms |
344 KB |
Correct |
62 |
Correct |
66 ms |
344 KB |
Correct |
63 |
Correct |
23 ms |
340 KB |
Correct |
64 |
Correct |
406 ms |
344 KB |
Correct |
65 |
Correct |
395 ms |
344 KB |
Correct |
66 |
Correct |
377 ms |
344 KB |
Correct |
67 |
Correct |
366 ms |
344 KB |
Correct |
68 |
Correct |
374 ms |
344 KB |
Correct |
69 |
Correct |
413 ms |
344 KB |
Correct |
70 |
Correct |
400 ms |
344 KB |
Correct |
71 |
Correct |
371 ms |
344 KB |
Correct |
72 |
Correct |
371 ms |
340 KB |
Correct |
73 |
Correct |
0 ms |
344 KB |
Correct |
74 |
Correct |
336 ms |
344 KB |
Correct |
75 |
Correct |
58 ms |
344 KB |
Correct |
76 |
Correct |
363 ms |
344 KB |
Correct |
77 |
Correct |
373 ms |
344 KB |
Correct |
78 |
Correct |
6 ms |
344 KB |
Correct |
79 |
Correct |
340 ms |
344 KB |
Correct |
80 |
Correct |
21 ms |
344 KB |
Correct |
81 |
Correct |
349 ms |
344 KB |
Correct |
82 |
Correct |
366 ms |
344 KB |
Correct |
83 |
Correct |
105 ms |
344 KB |
Correct |
84 |
Correct |
374 ms |
344 KB |
Correct |
85 |
Correct |
5 ms |
340 KB |
Correct |
86 |
Correct |
5 ms |
344 KB |
Correct |
87 |
Correct |
5 ms |
344 KB |
Correct |
88 |
Correct |
383 ms |
344 KB |
Correct |
89 |
Correct |
19 ms |
344 KB |
Correct |
90 |
Correct |
385 ms |
344 KB |
Correct |
91 |
Correct |
421 ms |
344 KB |
Correct |
92 |
Correct |
8 ms |
344 KB |
Correct |
93 |
Correct |
380 ms |
344 KB |
Correct |
94 |
Correct |
382 ms |
344 KB |
Correct |
95 |
Correct |
363 ms |
344 KB |
Correct |
96 |
Correct |
354 ms |
356 KB |
Correct |
97 |
Correct |
25 ms |
344 KB |
Correct |
98 |
Correct |
60 ms |
344 KB |
Correct |
99 |
Correct |
26 ms |
344 KB |
Correct |
100 |
Correct |
377 ms |
344 KB |
Correct |
101 |
Correct |
405 ms |
340 KB |
Correct |
102 |
Correct |
382 ms |
344 KB |
Correct |
103 |
Correct |
416 ms |
340 KB |
Correct |
104 |
Correct |
363 ms |
596 KB |
Correct |
105 |
Correct |
425 ms |
344 KB |
Correct |
106 |
Correct |
416 ms |
436 KB |
Correct |
107 |
Correct |
363 ms |
344 KB |
Correct |
108 |
Correct |
347 ms |
344 KB |
Correct |
109 |
Correct |
399 ms |
344 KB |
Correct |
110 |
Correct |
392 ms |
344 KB |
Correct |
111 |
Correct |
361 ms |
344 KB |
Correct |
112 |
Correct |
402 ms |
344 KB |
Correct |
113 |
Correct |
387 ms |
344 KB |
Correct |
114 |
Correct |
376 ms |
344 KB |
Correct |
115 |
Correct |
392 ms |
344 KB |
Correct |
116 |
Correct |
370 ms |
344 KB |
Correct |
117 |
Correct |
397 ms |
344 KB |
Correct |
118 |
Correct |
412 ms |
340 KB |
Correct |
119 |
Correct |
407 ms |
344 KB |
Correct |
120 |
Correct |
338 ms |
344 KB |
Correct |
121 |
Correct |
0 ms |
344 KB |
Correct |
122 |
Correct |
326 ms |
432 KB |
Correct |
123 |
Correct |
58 ms |
344 KB |
Correct |
124 |
Correct |
354 ms |
344 KB |
Correct |
125 |
Correct |
341 ms |
344 KB |
Correct |
126 |
Correct |
6 ms |
344 KB |
Correct |
127 |
Correct |
332 ms |
344 KB |
Correct |
128 |
Correct |
19 ms |
344 KB |
Correct |
129 |
Correct |
368 ms |
344 KB |
Correct |
130 |
Correct |
369 ms |
344 KB |
Correct |
131 |
Correct |
88 ms |
344 KB |
Correct |
132 |
Correct |
346 ms |
344 KB |
Correct |
133 |
Correct |
5 ms |
344 KB |
Correct |
134 |
Correct |
4 ms |
344 KB |
Correct |
135 |
Correct |
5 ms |
344 KB |
Correct |
136 |
Correct |
350 ms |
344 KB |
Correct |
137 |
Correct |
20 ms |
344 KB |
Correct |
138 |
Correct |
369 ms |
344 KB |
Correct |
139 |
Correct |
393 ms |
344 KB |
Correct |
140 |
Correct |
10 ms |
596 KB |
Correct |
141 |
Correct |
368 ms |
344 KB |
Correct |
142 |
Correct |
363 ms |
344 KB |
Correct |
143 |
Correct |
359 ms |
344 KB |
Correct |
144 |
Correct |
353 ms |
344 KB |
Correct |
145 |
Correct |
23 ms |
344 KB |
Correct |
146 |
Correct |
56 ms |
344 KB |
Correct |
147 |
Correct |
23 ms |
344 KB |
Correct |
148 |
Correct |
379 ms |
344 KB |
Correct |
149 |
Correct |
370 ms |
344 KB |
Correct |
150 |
Correct |
398 ms |
344 KB |
Correct |
151 |
Correct |
390 ms |
344 KB |
Correct |
152 |
Correct |
364 ms |
344 KB |
Correct |
153 |
Correct |
388 ms |
344 KB |
Correct |
154 |
Correct |
405 ms |
344 KB |
Correct |
155 |
Correct |
365 ms |
344 KB |
Correct |
156 |
Correct |
329 ms |
344 KB |
Correct |
157 |
Correct |
408 ms |
344 KB |
Correct |
158 |
Correct |
411 ms |
344 KB |
Correct |
159 |
Correct |
382 ms |
596 KB |
Correct |
160 |
Correct |
430 ms |
344 KB |
Correct |
161 |
Correct |
387 ms |
344 KB |
Correct |
162 |
Correct |
381 ms |
344 KB |
Correct |
163 |
Correct |
398 ms |
344 KB |
Correct |
164 |
Correct |
407 ms |
344 KB |
Correct |
165 |
Correct |
395 ms |
344 KB |
Correct |
166 |
Correct |
427 ms |
344 KB |
Correct |
167 |
Correct |
369 ms |
340 KB |
Correct |
168 |
Correct |
358 ms |
344 KB |
Correct |
169 |
Correct |
393 ms |
344 KB |
Correct |
170 |
Correct |
418 ms |
412 KB |
Correct |
171 |
Correct |
435 ms |
344 KB |
Correct |
172 |
Correct |
417 ms |
344 KB |
Correct |
173 |
Correct |
385 ms |
344 KB |
Correct |
174 |
Correct |
409 ms |
344 KB |
Correct |
175 |
Correct |
430 ms |
344 KB |
Correct |
176 |
Correct |
373 ms |
344 KB |
Correct |
177 |
Correct |
420 ms |
344 KB |
Correct |
178 |
Correct |
455 ms |
344 KB |
Correct |
179 |
Correct |
384 ms |
420 KB |
Correct |
180 |
Correct |
375 ms |
344 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct |
2 |
Correct |
602 ms |
428 KB |
Correct |
3 |
Correct |
596 ms |
424 KB |
Correct |
4 |
Correct |
567 ms |
416 KB |
Correct |
5 |
Correct |
677 ms |
424 KB |
Correct |
6 |
Correct |
645 ms |
424 KB |
Correct |
7 |
Correct |
584 ms |
344 KB |
Correct |
8 |
Correct |
592 ms |
344 KB |
Correct |
9 |
Correct |
566 ms |
424 KB |
Correct |
10 |
Correct |
549 ms |
344 KB |
Correct |
11 |
Correct |
548 ms |
344 KB |
Correct |
12 |
Correct |
369 ms |
344 KB |
Correct |
13 |
Correct |
68 ms |
344 KB |
Correct |
14 |
Correct |
361 ms |
344 KB |
Correct |
15 |
Correct |
366 ms |
344 KB |
Correct |
16 |
Correct |
6 ms |
344 KB |
Correct |
17 |
Correct |
395 ms |
344 KB |
Correct |
18 |
Correct |
19 ms |
344 KB |
Correct |
19 |
Correct |
365 ms |
344 KB |
Correct |
20 |
Correct |
375 ms |
344 KB |
Correct |
21 |
Correct |
91 ms |
344 KB |
Correct |
22 |
Correct |
364 ms |
344 KB |
Correct |
23 |
Correct |
6 ms |
344 KB |
Correct |
24 |
Correct |
4 ms |
344 KB |
Correct |
25 |
Correct |
5 ms |
344 KB |
Correct |
26 |
Correct |
394 ms |
344 KB |
Correct |
27 |
Correct |
24 ms |
344 KB |
Correct |
28 |
Correct |
370 ms |
344 KB |
Correct |
29 |
Correct |
418 ms |
344 KB |
Correct |
30 |
Correct |
10 ms |
344 KB |
Correct |
31 |
Correct |
395 ms |
344 KB |
Correct |
32 |
Correct |
388 ms |
344 KB |
Correct |
33 |
Correct |
341 ms |
344 KB |
Correct |
34 |
Correct |
350 ms |
344 KB |
Correct |
35 |
Correct |
26 ms |
596 KB |
Correct |
36 |
Correct |
59 ms |
344 KB |
Correct |
37 |
Correct |
31 ms |
344 KB |
Correct |
38 |
Correct |
372 ms |
344 KB |
Correct |
39 |
Correct |
344 ms |
344 KB |
Correct |
40 |
Correct |
398 ms |
344 KB |
Correct |
41 |
Correct |
402 ms |
344 KB |
Correct |
42 |
Correct |
394 ms |
600 KB |
Correct |
43 |
Correct |
384 ms |
344 KB |
Correct |
44 |
Correct |
393 ms |
344 KB |
Correct |
45 |
Correct |
352 ms |
344 KB |
Correct |
46 |
Correct |
342 ms |
344 KB |
Correct |
47 |
Correct |
425 ms |
344 KB |
Correct |
48 |
Correct |
422 ms |
344 KB |
Correct |
49 |
Correct |
397 ms |
344 KB |
Correct |
50 |
Correct |
406 ms |
344 KB |
Correct |
51 |
Correct |
380 ms |
344 KB |
Correct |
52 |
Correct |
411 ms |
344 KB |
Correct |
53 |
Correct |
407 ms |
344 KB |
Correct |
54 |
Correct |
383 ms |
344 KB |
Correct |
55 |
Correct |
387 ms |
344 KB |
Correct |
56 |
Correct |
449 ms |
344 KB |
Correct |
57 |
Correct |
400 ms |
344 KB |
Correct |
58 |
Correct |
333 ms |
344 KB |
Correct |
59 |
Correct |
413 ms |
344 KB |
Correct |
60 |
Correct |
416 ms |
432 KB |
Correct |
61 |
Correct |
435 ms |
344 KB |
Correct |
62 |
Correct |
437 ms |
344 KB |
Correct |
63 |
Correct |
419 ms |
344 KB |
Correct |
64 |
Correct |
401 ms |
344 KB |
Correct |
65 |
Correct |
414 ms |
344 KB |
Correct |
66 |
Correct |
418 ms |
344 KB |
Correct |
67 |
Correct |
373 ms |
344 KB |
Correct |
68 |
Correct |
429 ms |
440 KB |
Correct |
69 |
Correct |
371 ms |
344 KB |
Correct |
70 |
Correct |
347 ms |
344 KB |
Correct |
71 |
Correct |
554 ms |
592 KB |
Correct |
72 |
Correct |
777 ms |
432 KB |
Correct |
73 |
Correct |
780 ms |
688 KB |
Correct |
74 |
Correct |
786 ms |
592 KB |
Correct |
75 |
Correct |
785 ms |
436 KB |
Correct |
76 |
Correct |
570 ms |
424 KB |
Correct |
77 |
Correct |
591 ms |
344 KB |
Correct |
78 |
Correct |
536 ms |
444 KB |
Correct |
79 |
Correct |
477 ms |
436 KB |
Correct |
80 |
Correct |
766 ms |
344 KB |
Correct |
81 |
Correct |
716 ms |
344 KB |
Correct |
82 |
Correct |
883 ms |
440 KB |
Correct |
83 |
Correct |
901 ms |
596 KB |
Correct |
84 |
Correct |
395 ms |
344 KB |
Correct |
85 |
Correct |
411 ms |
344 KB |
Correct |
86 |
Correct |
503 ms |
600 KB |
Correct |
87 |
Correct |
768 ms |
436 KB |
Correct |
88 |
Correct |
743 ms |
600 KB |
Correct |
89 |
Correct |
767 ms |
344 KB |
Correct |
90 |
Correct |
718 ms |
600 KB |
Correct |
91 |
Correct |
552 ms |
424 KB |
Correct |
92 |
Correct |
579 ms |
344 KB |
Correct |
93 |
Correct |
453 ms |
672 KB |
Correct |
94 |
Correct |
533 ms |
592 KB |
Correct |
95 |
Correct |
772 ms |
344 KB |
Correct |
96 |
Correct |
771 ms |
344 KB |
Correct |
97 |
Correct |
907 ms |
344 KB |
Correct |
98 |
Correct |
854 ms |
344 KB |
Correct |
99 |
Correct |
412 ms |
344 KB |
Correct |
100 |
Correct |
424 ms |
344 KB |
Correct |
101 |
Correct |
499 ms |
600 KB |
Correct |
102 |
Correct |
786 ms |
436 KB |
Correct |
103 |
Correct |
746 ms |
344 KB |
Correct |
104 |
Correct |
778 ms |
596 KB |
Correct |
105 |
Correct |
766 ms |
596 KB |
Correct |
106 |
Correct |
580 ms |
424 KB |
Correct |
107 |
Correct |
587 ms |
344 KB |
Correct |
108 |
Correct |
349 ms |
428 KB |
Correct |
109 |
Correct |
490 ms |
428 KB |
Correct |
110 |
Correct |
755 ms |
344 KB |
Correct |
111 |
Correct |
779 ms |
852 KB |
Correct |
112 |
Correct |
973 ms |
344 KB |
Correct |
113 |
Correct |
927 ms |
428 KB |
Correct |
114 |
Correct |
416 ms |
344 KB |
Correct |
115 |
Correct |
407 ms |
344 KB |
Correct |
116 |
Correct |
532 ms |
424 KB |
Correct |
117 |
Correct |
737 ms |
344 KB |
Correct |
118 |
Correct |
744 ms |
440 KB |
Correct |
119 |
Correct |
749 ms |
600 KB |
Correct |
120 |
Correct |
766 ms |
432 KB |
Correct |
121 |
Correct |
534 ms |
420 KB |
Correct |
122 |
Correct |
576 ms |
344 KB |
Correct |
123 |
Correct |
518 ms |
428 KB |
Correct |
124 |
Correct |
510 ms |
436 KB |
Correct |
125 |
Correct |
759 ms |
456 KB |
Correct |
126 |
Correct |
771 ms |
344 KB |
Correct |
127 |
Correct |
936 ms |
592 KB |
Correct |
128 |
Correct |
893 ms |
344 KB |
Correct |
129 |
Correct |
421 ms |
344 KB |
Correct |
130 |
Correct |
417 ms |
344 KB |
Correct |