답안 #1063267

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1063267 2024-08-17T16:03:42 Z beaconmc A Light Inconvenience (CEOI23_light) C++17
100 / 100
712 ms 676 KB
#include "light.h"

#include <bits/stdc++.h>
 
typedef long long ll;
#define FOR(i,x,y) for(ll i=x; i<y; i++)
#define FORNEG(i,x,y) for(ll i=x; i>y; i--)
 
using namespace std;

ll n, maxi;
vector<ll> prevs;

void prepare(){
	n = 1;
	maxi = n;
	prevs = {1};
}

pair<long long, std::vector<long long>> join(long long p){
	n += p;

	set<ll> stuff;
	stuff.insert(1);
	stuff.insert(n);
	for (auto&i : prevs){
		if (i != 1) stuff.insert(i+p);
	}
	vector<ll> real;
	for (auto&i : stuff) if (1<=i && i<=n) real.push_back(i);


	vector<ll> spare;
	FORNEG(i, real.size()-1, 0){
		//cout << (n-real[i] + 1)  << " " << (real[i] - real[i-1] - 1) << endl;
		while ((n-real[i] + 1) < (real[i] - real[i-1] - 1)){
			spare.push_back(real[i]);
			real[i] = n - (n-real[i] + 1)*2;
		}
	}
	for (auto&i : spare) real.push_back(i);
	sort(real.begin(), real.end());


	vector<ll> realreal;
	for (auto&i : real){
		while (realreal.size() >= 2 && ((n-i + 1) >= (i - realreal[realreal.size()-2] - 1))){

			realreal.pop_back();
		}
		realreal.push_back(i);
	}
	
	prevs = realreal;
	return {p,realreal};

}

std::pair<long long, std::vector<long long>> leave(long long p){
	n -= p;

	set<ll> stuff;
	stuff.insert(1);
	stuff.insert(n);
	for (auto&i : prevs){
		if (i != 1) stuff.insert(i);
	}
	vector<ll> real;
	for (auto&i : stuff) if (1<=i && i<=n) real.push_back(i);


	vector<ll> spare;
	FORNEG(i, real.size()-1, 0){
		//cout << (n-real[i] + 1)  << " " << (real[i] - real[i-1] - 1) << endl;
		while ((n-real[i] + 1) < (real[i] - real[i-1] - 1)){
			spare.push_back(real[i]);
			real[i] = n - (n-real[i] + 1)*2;
		}
	}
	for (auto&i : spare) real.push_back(i);
	sort(real.begin(), real.end());


	vector<ll> realreal;
	for (auto&i : real){
		while (realreal.size() >= 2 && ((n-i + 1) >= (i - realreal[realreal.size()-2] - 1))){

			realreal.pop_back();
		}
		realreal.push_back(i);
	}
	
	prevs = realreal;
	return {p,realreal};


}



# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 490 ms 424 KB Correct
3 Correct 470 ms 592 KB Correct
4 Correct 449 ms 420 KB Correct
5 Correct 431 ms 344 KB Correct
6 Correct 473 ms 344 KB Correct
7 Correct 461 ms 340 KB Correct
8 Correct 477 ms 344 KB Correct
9 Correct 476 ms 344 KB Correct
10 Correct 447 ms 592 KB Correct
11 Correct 401 ms 416 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 292 ms 344 KB Correct
3 Correct 47 ms 344 KB Correct
4 Correct 341 ms 344 KB Correct
5 Correct 342 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 347 ms 344 KB Correct
8 Correct 21 ms 344 KB Correct
9 Correct 355 ms 344 KB Correct
10 Correct 352 ms 344 KB Correct
11 Correct 93 ms 344 KB Correct
12 Correct 346 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 292 ms 344 KB Correct
3 Correct 47 ms 344 KB Correct
4 Correct 341 ms 344 KB Correct
5 Correct 342 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 347 ms 344 KB Correct
8 Correct 21 ms 344 KB Correct
9 Correct 355 ms 344 KB Correct
10 Correct 352 ms 344 KB Correct
11 Correct 93 ms 344 KB Correct
12 Correct 346 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 305 ms 344 KB Correct
15 Correct 50 ms 344 KB Correct
16 Correct 341 ms 344 KB Correct
17 Correct 370 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 327 ms 344 KB Correct
20 Correct 18 ms 344 KB Correct
21 Correct 305 ms 344 KB Correct
22 Correct 328 ms 344 KB Correct
23 Correct 80 ms 344 KB Correct
24 Correct 317 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 359 ms 344 KB Correct
29 Correct 18 ms 344 KB Correct
30 Correct 341 ms 344 KB Correct
31 Correct 365 ms 344 KB Correct
32 Correct 7 ms 344 KB Correct
33 Correct 378 ms 344 KB Correct
34 Correct 326 ms 344 KB Correct
35 Correct 329 ms 344 KB Correct
36 Correct 337 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 292 ms 344 KB Correct
3 Correct 47 ms 344 KB Correct
4 Correct 341 ms 344 KB Correct
5 Correct 342 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 347 ms 344 KB Correct
8 Correct 21 ms 344 KB Correct
9 Correct 355 ms 344 KB Correct
10 Correct 352 ms 344 KB Correct
11 Correct 93 ms 344 KB Correct
12 Correct 346 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 305 ms 344 KB Correct
15 Correct 50 ms 344 KB Correct
16 Correct 341 ms 344 KB Correct
17 Correct 370 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 327 ms 344 KB Correct
20 Correct 18 ms 344 KB Correct
21 Correct 305 ms 344 KB Correct
22 Correct 328 ms 344 KB Correct
23 Correct 80 ms 344 KB Correct
24 Correct 317 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 359 ms 344 KB Correct
29 Correct 18 ms 344 KB Correct
30 Correct 341 ms 344 KB Correct
31 Correct 365 ms 344 KB Correct
32 Correct 7 ms 344 KB Correct
33 Correct 378 ms 344 KB Correct
34 Correct 326 ms 344 KB Correct
35 Correct 329 ms 344 KB Correct
36 Correct 337 ms 344 KB Correct
37 Correct 0 ms 344 KB Correct
38 Correct 336 ms 344 KB Correct
39 Correct 51 ms 344 KB Correct
40 Correct 353 ms 344 KB Correct
41 Correct 340 ms 344 KB Correct
42 Correct 7 ms 344 KB Correct
43 Correct 329 ms 344 KB Correct
44 Correct 25 ms 344 KB Correct
45 Correct 332 ms 344 KB Correct
46 Correct 331 ms 344 KB Correct
47 Correct 89 ms 344 KB Correct
48 Correct 377 ms 344 KB Correct
49 Correct 5 ms 344 KB Correct
50 Correct 4 ms 344 KB Correct
51 Correct 4 ms 344 KB Correct
52 Correct 380 ms 344 KB Correct
53 Correct 18 ms 344 KB Correct
54 Correct 352 ms 344 KB Correct
55 Correct 343 ms 344 KB Correct
56 Correct 11 ms 344 KB Correct
57 Correct 326 ms 344 KB Correct
58 Correct 361 ms 344 KB Correct
59 Correct 316 ms 344 KB Correct
60 Correct 300 ms 344 KB Correct
61 Correct 22 ms 344 KB Correct
62 Correct 52 ms 344 KB Correct
63 Correct 22 ms 344 KB Correct
64 Correct 356 ms 344 KB Correct
65 Correct 308 ms 344 KB Correct
66 Correct 338 ms 344 KB Correct
67 Correct 374 ms 344 KB Correct
68 Correct 335 ms 344 KB Correct
69 Correct 384 ms 344 KB Correct
70 Correct 364 ms 344 KB Correct
71 Correct 331 ms 344 KB Correct
72 Correct 325 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 292 ms 344 KB Correct
3 Correct 47 ms 344 KB Correct
4 Correct 341 ms 344 KB Correct
5 Correct 342 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 347 ms 344 KB Correct
8 Correct 21 ms 344 KB Correct
9 Correct 355 ms 344 KB Correct
10 Correct 352 ms 344 KB Correct
11 Correct 93 ms 344 KB Correct
12 Correct 346 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 305 ms 344 KB Correct
15 Correct 50 ms 344 KB Correct
16 Correct 341 ms 344 KB Correct
17 Correct 370 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 327 ms 344 KB Correct
20 Correct 18 ms 344 KB Correct
21 Correct 305 ms 344 KB Correct
22 Correct 328 ms 344 KB Correct
23 Correct 80 ms 344 KB Correct
24 Correct 317 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 359 ms 344 KB Correct
29 Correct 18 ms 344 KB Correct
30 Correct 341 ms 344 KB Correct
31 Correct 365 ms 344 KB Correct
32 Correct 7 ms 344 KB Correct
33 Correct 378 ms 344 KB Correct
34 Correct 326 ms 344 KB Correct
35 Correct 329 ms 344 KB Correct
36 Correct 337 ms 344 KB Correct
37 Correct 0 ms 344 KB Correct
38 Correct 336 ms 344 KB Correct
39 Correct 51 ms 344 KB Correct
40 Correct 353 ms 344 KB Correct
41 Correct 340 ms 344 KB Correct
42 Correct 7 ms 344 KB Correct
43 Correct 329 ms 344 KB Correct
44 Correct 25 ms 344 KB Correct
45 Correct 332 ms 344 KB Correct
46 Correct 331 ms 344 KB Correct
47 Correct 89 ms 344 KB Correct
48 Correct 377 ms 344 KB Correct
49 Correct 5 ms 344 KB Correct
50 Correct 4 ms 344 KB Correct
51 Correct 4 ms 344 KB Correct
52 Correct 380 ms 344 KB Correct
53 Correct 18 ms 344 KB Correct
54 Correct 352 ms 344 KB Correct
55 Correct 343 ms 344 KB Correct
56 Correct 11 ms 344 KB Correct
57 Correct 326 ms 344 KB Correct
58 Correct 361 ms 344 KB Correct
59 Correct 316 ms 344 KB Correct
60 Correct 300 ms 344 KB Correct
61 Correct 22 ms 344 KB Correct
62 Correct 52 ms 344 KB Correct
63 Correct 22 ms 344 KB Correct
64 Correct 356 ms 344 KB Correct
65 Correct 308 ms 344 KB Correct
66 Correct 338 ms 344 KB Correct
67 Correct 374 ms 344 KB Correct
68 Correct 335 ms 344 KB Correct
69 Correct 384 ms 344 KB Correct
70 Correct 364 ms 344 KB Correct
71 Correct 331 ms 344 KB Correct
72 Correct 325 ms 344 KB Correct
73 Correct 0 ms 344 KB Correct
74 Correct 348 ms 600 KB Correct
75 Correct 48 ms 344 KB Correct
76 Correct 366 ms 344 KB Correct
77 Correct 330 ms 344 KB Correct
78 Correct 5 ms 344 KB Correct
79 Correct 305 ms 344 KB Correct
80 Correct 18 ms 344 KB Correct
81 Correct 325 ms 344 KB Correct
82 Correct 344 ms 344 KB Correct
83 Correct 85 ms 344 KB Correct
84 Correct 327 ms 344 KB Correct
85 Correct 5 ms 344 KB Correct
86 Correct 4 ms 344 KB Correct
87 Correct 4 ms 344 KB Correct
88 Correct 388 ms 344 KB Correct
89 Correct 17 ms 344 KB Correct
90 Correct 326 ms 344 KB Correct
91 Correct 379 ms 344 KB Correct
92 Correct 11 ms 344 KB Correct
93 Correct 348 ms 344 KB Correct
94 Correct 355 ms 344 KB Correct
95 Correct 332 ms 344 KB Correct
96 Correct 335 ms 344 KB Correct
97 Correct 30 ms 344 KB Correct
98 Correct 46 ms 344 KB Correct
99 Correct 22 ms 344 KB Correct
100 Correct 372 ms 340 KB Correct
101 Correct 345 ms 344 KB Correct
102 Correct 348 ms 344 KB Correct
103 Correct 370 ms 344 KB Correct
104 Correct 324 ms 344 KB Correct
105 Correct 365 ms 344 KB Correct
106 Correct 410 ms 344 KB Correct
107 Correct 342 ms 344 KB Correct
108 Correct 361 ms 344 KB Correct
109 Correct 376 ms 344 KB Correct
110 Correct 393 ms 344 KB Correct
111 Correct 375 ms 344 KB Correct
112 Correct 360 ms 440 KB Correct
113 Correct 334 ms 344 KB Correct
114 Correct 400 ms 344 KB Correct
115 Correct 378 ms 344 KB Correct
116 Correct 318 ms 344 KB Correct
117 Correct 362 ms 344 KB Correct
118 Correct 389 ms 344 KB Correct
119 Correct 343 ms 344 KB Correct
120 Correct 329 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 292 ms 344 KB Correct
3 Correct 47 ms 344 KB Correct
4 Correct 341 ms 344 KB Correct
5 Correct 342 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 347 ms 344 KB Correct
8 Correct 21 ms 344 KB Correct
9 Correct 355 ms 344 KB Correct
10 Correct 352 ms 344 KB Correct
11 Correct 93 ms 344 KB Correct
12 Correct 346 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 305 ms 344 KB Correct
15 Correct 50 ms 344 KB Correct
16 Correct 341 ms 344 KB Correct
17 Correct 370 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 327 ms 344 KB Correct
20 Correct 18 ms 344 KB Correct
21 Correct 305 ms 344 KB Correct
22 Correct 328 ms 344 KB Correct
23 Correct 80 ms 344 KB Correct
24 Correct 317 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 359 ms 344 KB Correct
29 Correct 18 ms 344 KB Correct
30 Correct 341 ms 344 KB Correct
31 Correct 365 ms 344 KB Correct
32 Correct 7 ms 344 KB Correct
33 Correct 378 ms 344 KB Correct
34 Correct 326 ms 344 KB Correct
35 Correct 329 ms 344 KB Correct
36 Correct 337 ms 344 KB Correct
37 Correct 0 ms 344 KB Correct
38 Correct 336 ms 344 KB Correct
39 Correct 51 ms 344 KB Correct
40 Correct 353 ms 344 KB Correct
41 Correct 340 ms 344 KB Correct
42 Correct 7 ms 344 KB Correct
43 Correct 329 ms 344 KB Correct
44 Correct 25 ms 344 KB Correct
45 Correct 332 ms 344 KB Correct
46 Correct 331 ms 344 KB Correct
47 Correct 89 ms 344 KB Correct
48 Correct 377 ms 344 KB Correct
49 Correct 5 ms 344 KB Correct
50 Correct 4 ms 344 KB Correct
51 Correct 4 ms 344 KB Correct
52 Correct 380 ms 344 KB Correct
53 Correct 18 ms 344 KB Correct
54 Correct 352 ms 344 KB Correct
55 Correct 343 ms 344 KB Correct
56 Correct 11 ms 344 KB Correct
57 Correct 326 ms 344 KB Correct
58 Correct 361 ms 344 KB Correct
59 Correct 316 ms 344 KB Correct
60 Correct 300 ms 344 KB Correct
61 Correct 22 ms 344 KB Correct
62 Correct 52 ms 344 KB Correct
63 Correct 22 ms 344 KB Correct
64 Correct 356 ms 344 KB Correct
65 Correct 308 ms 344 KB Correct
66 Correct 338 ms 344 KB Correct
67 Correct 374 ms 344 KB Correct
68 Correct 335 ms 344 KB Correct
69 Correct 384 ms 344 KB Correct
70 Correct 364 ms 344 KB Correct
71 Correct 331 ms 344 KB Correct
72 Correct 325 ms 344 KB Correct
73 Correct 0 ms 344 KB Correct
74 Correct 348 ms 600 KB Correct
75 Correct 48 ms 344 KB Correct
76 Correct 366 ms 344 KB Correct
77 Correct 330 ms 344 KB Correct
78 Correct 5 ms 344 KB Correct
79 Correct 305 ms 344 KB Correct
80 Correct 18 ms 344 KB Correct
81 Correct 325 ms 344 KB Correct
82 Correct 344 ms 344 KB Correct
83 Correct 85 ms 344 KB Correct
84 Correct 327 ms 344 KB Correct
85 Correct 5 ms 344 KB Correct
86 Correct 4 ms 344 KB Correct
87 Correct 4 ms 344 KB Correct
88 Correct 388 ms 344 KB Correct
89 Correct 17 ms 344 KB Correct
90 Correct 326 ms 344 KB Correct
91 Correct 379 ms 344 KB Correct
92 Correct 11 ms 344 KB Correct
93 Correct 348 ms 344 KB Correct
94 Correct 355 ms 344 KB Correct
95 Correct 332 ms 344 KB Correct
96 Correct 335 ms 344 KB Correct
97 Correct 30 ms 344 KB Correct
98 Correct 46 ms 344 KB Correct
99 Correct 22 ms 344 KB Correct
100 Correct 372 ms 340 KB Correct
101 Correct 345 ms 344 KB Correct
102 Correct 348 ms 344 KB Correct
103 Correct 370 ms 344 KB Correct
104 Correct 324 ms 344 KB Correct
105 Correct 365 ms 344 KB Correct
106 Correct 410 ms 344 KB Correct
107 Correct 342 ms 344 KB Correct
108 Correct 361 ms 344 KB Correct
109 Correct 376 ms 344 KB Correct
110 Correct 393 ms 344 KB Correct
111 Correct 375 ms 344 KB Correct
112 Correct 360 ms 440 KB Correct
113 Correct 334 ms 344 KB Correct
114 Correct 400 ms 344 KB Correct
115 Correct 378 ms 344 KB Correct
116 Correct 318 ms 344 KB Correct
117 Correct 362 ms 344 KB Correct
118 Correct 389 ms 344 KB Correct
119 Correct 343 ms 344 KB Correct
120 Correct 329 ms 344 KB Correct
121 Correct 0 ms 344 KB Correct
122 Correct 326 ms 344 KB Correct
123 Correct 54 ms 344 KB Correct
124 Correct 310 ms 340 KB Correct
125 Correct 341 ms 344 KB Correct
126 Correct 5 ms 344 KB Correct
127 Correct 325 ms 344 KB Correct
128 Correct 21 ms 344 KB Correct
129 Correct 317 ms 344 KB Correct
130 Correct 310 ms 508 KB Correct
131 Correct 76 ms 344 KB Correct
132 Correct 315 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 349 ms 344 KB Correct
137 Correct 18 ms 344 KB Correct
138 Correct 325 ms 344 KB Correct
139 Correct 351 ms 344 KB Correct
140 Correct 7 ms 344 KB Correct
141 Correct 335 ms 344 KB Correct
142 Correct 359 ms 344 KB Correct
143 Correct 321 ms 344 KB Correct
144 Correct 303 ms 344 KB Correct
145 Correct 25 ms 344 KB Correct
146 Correct 57 ms 344 KB Correct
147 Correct 23 ms 340 KB Correct
148 Correct 372 ms 344 KB Correct
149 Correct 340 ms 344 KB Correct
150 Correct 350 ms 344 KB Correct
151 Correct 370 ms 344 KB Correct
152 Correct 317 ms 344 KB Correct
153 Correct 360 ms 344 KB Correct
154 Correct 351 ms 344 KB Correct
155 Correct 365 ms 344 KB Correct
156 Correct 310 ms 344 KB Correct
157 Correct 367 ms 344 KB Correct
158 Correct 360 ms 344 KB Correct
159 Correct 380 ms 344 KB Correct
160 Correct 369 ms 344 KB Correct
161 Correct 341 ms 344 KB Correct
162 Correct 387 ms 344 KB Correct
163 Correct 363 ms 344 KB Correct
164 Correct 342 ms 344 KB Correct
165 Correct 359 ms 344 KB Correct
166 Correct 362 ms 344 KB Correct
167 Correct 361 ms 344 KB Correct
168 Correct 340 ms 344 KB Correct
169 Correct 417 ms 344 KB Correct
170 Correct 384 ms 596 KB Correct
171 Correct 373 ms 344 KB Correct
172 Correct 372 ms 344 KB Correct
173 Correct 330 ms 344 KB Correct
174 Correct 379 ms 436 KB Correct
175 Correct 361 ms 344 KB Correct
176 Correct 365 ms 340 KB Correct
177 Correct 351 ms 344 KB Correct
178 Correct 395 ms 592 KB Correct
179 Correct 370 ms 416 KB Correct
180 Correct 326 ms 596 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 473 ms 428 KB Correct
3 Correct 465 ms 592 KB Correct
4 Correct 491 ms 592 KB Correct
5 Correct 460 ms 432 KB Correct
6 Correct 459 ms 416 KB Correct
7 Correct 483 ms 344 KB Correct
8 Correct 480 ms 344 KB Correct
9 Correct 426 ms 344 KB Correct
10 Correct 484 ms 344 KB Correct
11 Correct 413 ms 416 KB Correct
12 Correct 342 ms 344 KB Correct
13 Correct 43 ms 344 KB Correct
14 Correct 333 ms 344 KB Correct
15 Correct 331 ms 344 KB Correct
16 Correct 5 ms 344 KB Correct
17 Correct 330 ms 344 KB Correct
18 Correct 20 ms 596 KB Correct
19 Correct 326 ms 344 KB Correct
20 Correct 346 ms 344 KB Correct
21 Correct 91 ms 344 KB Correct
22 Correct 329 ms 344 KB Correct
23 Correct 7 ms 344 KB Correct
24 Correct 6 ms 344 KB Correct
25 Correct 4 ms 344 KB Correct
26 Correct 363 ms 344 KB Correct
27 Correct 17 ms 344 KB Correct
28 Correct 363 ms 344 KB Correct
29 Correct 387 ms 340 KB Correct
30 Correct 7 ms 344 KB Correct
31 Correct 358 ms 344 KB Correct
32 Correct 415 ms 344 KB Correct
33 Correct 327 ms 344 KB Correct
34 Correct 338 ms 344 KB Correct
35 Correct 21 ms 344 KB Correct
36 Correct 60 ms 344 KB Correct
37 Correct 29 ms 344 KB Correct
38 Correct 378 ms 596 KB Correct
39 Correct 344 ms 344 KB Correct
40 Correct 360 ms 344 KB Correct
41 Correct 363 ms 344 KB Correct
42 Correct 323 ms 344 KB Correct
43 Correct 368 ms 344 KB Correct
44 Correct 359 ms 344 KB Correct
45 Correct 337 ms 344 KB Correct
46 Correct 360 ms 344 KB Correct
47 Correct 378 ms 344 KB Correct
48 Correct 391 ms 344 KB Correct
49 Correct 409 ms 344 KB Correct
50 Correct 384 ms 344 KB Correct
51 Correct 317 ms 340 KB Correct
52 Correct 359 ms 344 KB Correct
53 Correct 391 ms 344 KB Correct
54 Correct 344 ms 416 KB Correct
55 Correct 363 ms 344 KB Correct
56 Correct 363 ms 344 KB Correct
57 Correct 360 ms 344 KB Correct
58 Correct 339 ms 344 KB Correct
59 Correct 373 ms 344 KB Correct
60 Correct 384 ms 344 KB Correct
61 Correct 396 ms 344 KB Correct
62 Correct 371 ms 344 KB Correct
63 Correct 328 ms 344 KB Correct
64 Correct 386 ms 344 KB Correct
65 Correct 386 ms 344 KB Correct
66 Correct 348 ms 344 KB Correct
67 Correct 390 ms 344 KB Correct
68 Correct 380 ms 416 KB Correct
69 Correct 353 ms 592 KB Correct
70 Correct 357 ms 344 KB Correct
71 Correct 471 ms 448 KB Correct
72 Correct 630 ms 440 KB Correct
73 Correct 634 ms 448 KB Correct
74 Correct 590 ms 432 KB Correct
75 Correct 622 ms 596 KB Correct
76 Correct 537 ms 344 KB Correct
77 Correct 452 ms 344 KB Correct
78 Correct 441 ms 344 KB Correct
79 Correct 445 ms 344 KB Correct
80 Correct 585 ms 344 KB Correct
81 Correct 574 ms 440 KB Correct
82 Correct 697 ms 452 KB Correct
83 Correct 665 ms 344 KB Correct
84 Correct 422 ms 344 KB Correct
85 Correct 421 ms 344 KB Correct
86 Correct 491 ms 344 KB Correct
87 Correct 604 ms 460 KB Correct
88 Correct 648 ms 436 KB Correct
89 Correct 587 ms 592 KB Correct
90 Correct 576 ms 344 KB Correct
91 Correct 491 ms 428 KB Correct
92 Correct 447 ms 444 KB Correct
93 Correct 436 ms 676 KB Correct
94 Correct 435 ms 428 KB Correct
95 Correct 568 ms 600 KB Correct
96 Correct 605 ms 344 KB Correct
97 Correct 712 ms 448 KB Correct
98 Correct 671 ms 436 KB Correct
99 Correct 394 ms 344 KB Correct
100 Correct 390 ms 344 KB Correct
101 Correct 454 ms 592 KB Correct
102 Correct 635 ms 440 KB Correct
103 Correct 613 ms 600 KB Correct
104 Correct 603 ms 448 KB Correct
105 Correct 610 ms 436 KB Correct
106 Correct 523 ms 428 KB Correct
107 Correct 446 ms 344 KB Correct
108 Correct 304 ms 436 KB Correct
109 Correct 424 ms 432 KB Correct
110 Correct 584 ms 344 KB Correct
111 Correct 543 ms 344 KB Correct
112 Correct 663 ms 344 KB Correct
113 Correct 647 ms 432 KB Correct
114 Correct 395 ms 344 KB Correct
115 Correct 399 ms 344 KB Correct
116 Correct 499 ms 428 KB Correct
117 Correct 626 ms 448 KB Correct
118 Correct 605 ms 444 KB Correct
119 Correct 590 ms 428 KB Correct
120 Correct 580 ms 344 KB Correct
121 Correct 494 ms 428 KB Correct
122 Correct 456 ms 344 KB Correct
123 Correct 423 ms 344 KB Correct
124 Correct 440 ms 592 KB Correct
125 Correct 574 ms 468 KB Correct
126 Correct 599 ms 596 KB Correct
127 Correct 708 ms 432 KB Correct
128 Correct 709 ms 344 KB Correct
129 Correct 407 ms 448 KB Correct
130 Correct 411 ms 344 KB Correct