답안 #1063264

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1063264 2024-08-17T15:59:19 Z beaconmc A Light Inconvenience (CEOI23_light) C++17
50 / 100
692 ms 700 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*5,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*5,realreal};


}



# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 450 ms 428 KB Output is correct
3 Correct 464 ms 344 KB Output is correct
4 Correct 493 ms 420 KB Output is correct
5 Correct 474 ms 436 KB Output is correct
6 Correct 452 ms 416 KB Output is correct
7 Correct 444 ms 344 KB Output is correct
8 Correct 448 ms 344 KB Output is correct
9 Correct 470 ms 588 KB Output is correct
10 Correct 441 ms 592 KB Output is correct
11 Correct 400 ms 412 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 319 ms 440 KB Output is correct
3 Correct 67 ms 344 KB Output is correct
4 Correct 358 ms 344 KB Output is correct
5 Correct 356 ms 344 KB Output is correct
6 Correct 10 ms 344 KB Output is correct
7 Correct 337 ms 344 KB Output is correct
8 Correct 24 ms 344 KB Output is correct
9 Correct 304 ms 344 KB Output is correct
10 Correct 293 ms 344 KB Output is correct
11 Correct 84 ms 344 KB Output is correct
12 Correct 284 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 319 ms 440 KB Output is correct
3 Correct 67 ms 344 KB Output is correct
4 Correct 358 ms 344 KB Output is correct
5 Correct 356 ms 344 KB Output is correct
6 Correct 10 ms 344 KB Output is correct
7 Correct 337 ms 344 KB Output is correct
8 Correct 24 ms 344 KB Output is correct
9 Correct 304 ms 344 KB Output is correct
10 Correct 293 ms 344 KB Output is correct
11 Correct 84 ms 344 KB Output is correct
12 Correct 284 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 318 ms 344 KB Output is correct
15 Correct 51 ms 344 KB Output is correct
16 Correct 306 ms 344 KB Output is correct
17 Correct 329 ms 344 KB Output is correct
18 Correct 6 ms 344 KB Output is correct
19 Correct 299 ms 344 KB Output is correct
20 Correct 21 ms 344 KB Output is correct
21 Correct 323 ms 344 KB Output is correct
22 Correct 371 ms 504 KB Output is correct
23 Correct 76 ms 344 KB Output is correct
24 Correct 362 ms 344 KB Output is correct
25 Correct 7 ms 344 KB Output is correct
26 Correct 4 ms 344 KB Output is correct
27 Correct 4 ms 344 KB Output is correct
28 Correct 392 ms 344 KB Output is correct
29 Correct 18 ms 344 KB Output is correct
30 Correct 364 ms 344 KB Output is correct
31 Correct 363 ms 340 KB Output is correct
32 Correct 7 ms 344 KB Output is correct
33 Correct 375 ms 344 KB Output is correct
34 Correct 351 ms 344 KB Output is correct
35 Correct 331 ms 344 KB Output is correct
36 Correct 349 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 319 ms 440 KB Output is correct
3 Correct 67 ms 344 KB Output is correct
4 Correct 358 ms 344 KB Output is correct
5 Correct 356 ms 344 KB Output is correct
6 Correct 10 ms 344 KB Output is correct
7 Correct 337 ms 344 KB Output is correct
8 Correct 24 ms 344 KB Output is correct
9 Correct 304 ms 344 KB Output is correct
10 Correct 293 ms 344 KB Output is correct
11 Correct 84 ms 344 KB Output is correct
12 Correct 284 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 318 ms 344 KB Output is correct
15 Correct 51 ms 344 KB Output is correct
16 Correct 306 ms 344 KB Output is correct
17 Correct 329 ms 344 KB Output is correct
18 Correct 6 ms 344 KB Output is correct
19 Correct 299 ms 344 KB Output is correct
20 Correct 21 ms 344 KB Output is correct
21 Correct 323 ms 344 KB Output is correct
22 Correct 371 ms 504 KB Output is correct
23 Correct 76 ms 344 KB Output is correct
24 Correct 362 ms 344 KB Output is correct
25 Correct 7 ms 344 KB Output is correct
26 Correct 4 ms 344 KB Output is correct
27 Correct 4 ms 344 KB Output is correct
28 Correct 392 ms 344 KB Output is correct
29 Correct 18 ms 344 KB Output is correct
30 Correct 364 ms 344 KB Output is correct
31 Correct 363 ms 340 KB Output is correct
32 Correct 7 ms 344 KB Output is correct
33 Correct 375 ms 344 KB Output is correct
34 Correct 351 ms 344 KB Output is correct
35 Correct 331 ms 344 KB Output is correct
36 Correct 349 ms 344 KB Output is correct
37 Correct 0 ms 344 KB Output is correct
38 Correct 296 ms 344 KB Output is correct
39 Correct 54 ms 344 KB Output is correct
40 Correct 313 ms 344 KB Output is correct
41 Correct 323 ms 344 KB Output is correct
42 Correct 5 ms 344 KB Output is correct
43 Correct 305 ms 600 KB Output is correct
44 Correct 17 ms 344 KB Output is correct
45 Correct 318 ms 344 KB Output is correct
46 Correct 373 ms 344 KB Output is correct
47 Correct 78 ms 344 KB Output is correct
48 Correct 333 ms 344 KB Output is correct
49 Correct 5 ms 344 KB Output is correct
50 Correct 6 ms 344 KB Output is correct
51 Correct 4 ms 344 KB Output is correct
52 Correct 352 ms 344 KB Output is correct
53 Correct 18 ms 344 KB Output is correct
54 Correct 328 ms 344 KB Output is correct
55 Correct 367 ms 344 KB Output is correct
56 Correct 11 ms 344 KB Output is correct
57 Correct 329 ms 344 KB Output is correct
58 Correct 347 ms 344 KB Output is correct
59 Correct 356 ms 344 KB Output is correct
60 Correct 338 ms 344 KB Output is correct
61 Correct 22 ms 344 KB Output is correct
62 Correct 48 ms 344 KB Output is correct
63 Correct 24 ms 344 KB Output is correct
64 Correct 354 ms 344 KB Output is correct
65 Correct 333 ms 344 KB Output is correct
66 Correct 368 ms 344 KB Output is correct
67 Correct 376 ms 596 KB Output is correct
68 Correct 311 ms 344 KB Output is correct
69 Correct 362 ms 344 KB Output is correct
70 Correct 394 ms 344 KB Output is correct
71 Correct 346 ms 344 KB Output is correct
72 Correct 336 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 319 ms 440 KB Output is correct
3 Correct 67 ms 344 KB Output is correct
4 Correct 358 ms 344 KB Output is correct
5 Correct 356 ms 344 KB Output is correct
6 Correct 10 ms 344 KB Output is correct
7 Correct 337 ms 344 KB Output is correct
8 Correct 24 ms 344 KB Output is correct
9 Correct 304 ms 344 KB Output is correct
10 Correct 293 ms 344 KB Output is correct
11 Correct 84 ms 344 KB Output is correct
12 Correct 284 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 318 ms 344 KB Output is correct
15 Correct 51 ms 344 KB Output is correct
16 Correct 306 ms 344 KB Output is correct
17 Correct 329 ms 344 KB Output is correct
18 Correct 6 ms 344 KB Output is correct
19 Correct 299 ms 344 KB Output is correct
20 Correct 21 ms 344 KB Output is correct
21 Correct 323 ms 344 KB Output is correct
22 Correct 371 ms 504 KB Output is correct
23 Correct 76 ms 344 KB Output is correct
24 Correct 362 ms 344 KB Output is correct
25 Correct 7 ms 344 KB Output is correct
26 Correct 4 ms 344 KB Output is correct
27 Correct 4 ms 344 KB Output is correct
28 Correct 392 ms 344 KB Output is correct
29 Correct 18 ms 344 KB Output is correct
30 Correct 364 ms 344 KB Output is correct
31 Correct 363 ms 340 KB Output is correct
32 Correct 7 ms 344 KB Output is correct
33 Correct 375 ms 344 KB Output is correct
34 Correct 351 ms 344 KB Output is correct
35 Correct 331 ms 344 KB Output is correct
36 Correct 349 ms 344 KB Output is correct
37 Correct 0 ms 344 KB Output is correct
38 Correct 296 ms 344 KB Output is correct
39 Correct 54 ms 344 KB Output is correct
40 Correct 313 ms 344 KB Output is correct
41 Correct 323 ms 344 KB Output is correct
42 Correct 5 ms 344 KB Output is correct
43 Correct 305 ms 600 KB Output is correct
44 Correct 17 ms 344 KB Output is correct
45 Correct 318 ms 344 KB Output is correct
46 Correct 373 ms 344 KB Output is correct
47 Correct 78 ms 344 KB Output is correct
48 Correct 333 ms 344 KB Output is correct
49 Correct 5 ms 344 KB Output is correct
50 Correct 6 ms 344 KB Output is correct
51 Correct 4 ms 344 KB Output is correct
52 Correct 352 ms 344 KB Output is correct
53 Correct 18 ms 344 KB Output is correct
54 Correct 328 ms 344 KB Output is correct
55 Correct 367 ms 344 KB Output is correct
56 Correct 11 ms 344 KB Output is correct
57 Correct 329 ms 344 KB Output is correct
58 Correct 347 ms 344 KB Output is correct
59 Correct 356 ms 344 KB Output is correct
60 Correct 338 ms 344 KB Output is correct
61 Correct 22 ms 344 KB Output is correct
62 Correct 48 ms 344 KB Output is correct
63 Correct 24 ms 344 KB Output is correct
64 Correct 354 ms 344 KB Output is correct
65 Correct 333 ms 344 KB Output is correct
66 Correct 368 ms 344 KB Output is correct
67 Correct 376 ms 596 KB Output is correct
68 Correct 311 ms 344 KB Output is correct
69 Correct 362 ms 344 KB Output is correct
70 Correct 394 ms 344 KB Output is correct
71 Correct 346 ms 344 KB Output is correct
72 Correct 336 ms 344 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 337 ms 344 KB Output is correct
75 Correct 57 ms 344 KB Output is correct
76 Correct 338 ms 344 KB Output is correct
77 Correct 334 ms 344 KB Output is correct
78 Correct 6 ms 344 KB Output is correct
79 Correct 314 ms 344 KB Output is correct
80 Correct 29 ms 344 KB Output is correct
81 Correct 327 ms 344 KB Output is correct
82 Correct 339 ms 344 KB Output is correct
83 Correct 89 ms 344 KB Output is correct
84 Correct 339 ms 344 KB Output is correct
85 Correct 5 ms 344 KB Output is correct
86 Correct 4 ms 344 KB Output is correct
87 Correct 4 ms 344 KB Output is correct
88 Correct 353 ms 344 KB Output is correct
89 Correct 17 ms 344 KB Output is correct
90 Correct 344 ms 344 KB Output is correct
91 Correct 365 ms 344 KB Output is correct
92 Correct 7 ms 344 KB Output is correct
93 Correct 350 ms 344 KB Output is correct
94 Correct 350 ms 596 KB Output is correct
95 Correct 361 ms 344 KB Output is correct
96 Correct 326 ms 344 KB Output is correct
97 Correct 25 ms 436 KB Output is correct
98 Correct 53 ms 344 KB Output is correct
99 Correct 22 ms 344 KB Output is correct
100 Correct 340 ms 344 KB Output is correct
101 Correct 337 ms 344 KB Output is correct
102 Correct 362 ms 344 KB Output is correct
103 Correct 343 ms 344 KB Output is correct
104 Correct 330 ms 344 KB Output is correct
105 Correct 378 ms 344 KB Output is correct
106 Correct 370 ms 344 KB Output is correct
107 Correct 347 ms 344 KB Output is correct
108 Correct 338 ms 344 KB Output is correct
109 Correct 378 ms 344 KB Output is correct
110 Correct 379 ms 344 KB Output is correct
111 Correct 384 ms 344 KB Output is correct
112 Correct 372 ms 344 KB Output is correct
113 Correct 341 ms 344 KB Output is correct
114 Correct 382 ms 344 KB Output is correct
115 Correct 403 ms 344 KB Output is correct
116 Correct 345 ms 344 KB Output is correct
117 Correct 376 ms 344 KB Output is correct
118 Correct 373 ms 344 KB Output is correct
119 Correct 352 ms 344 KB Output is correct
120 Correct 329 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 319 ms 440 KB Output is correct
3 Correct 67 ms 344 KB Output is correct
4 Correct 358 ms 344 KB Output is correct
5 Correct 356 ms 344 KB Output is correct
6 Correct 10 ms 344 KB Output is correct
7 Correct 337 ms 344 KB Output is correct
8 Correct 24 ms 344 KB Output is correct
9 Correct 304 ms 344 KB Output is correct
10 Correct 293 ms 344 KB Output is correct
11 Correct 84 ms 344 KB Output is correct
12 Correct 284 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 318 ms 344 KB Output is correct
15 Correct 51 ms 344 KB Output is correct
16 Correct 306 ms 344 KB Output is correct
17 Correct 329 ms 344 KB Output is correct
18 Correct 6 ms 344 KB Output is correct
19 Correct 299 ms 344 KB Output is correct
20 Correct 21 ms 344 KB Output is correct
21 Correct 323 ms 344 KB Output is correct
22 Correct 371 ms 504 KB Output is correct
23 Correct 76 ms 344 KB Output is correct
24 Correct 362 ms 344 KB Output is correct
25 Correct 7 ms 344 KB Output is correct
26 Correct 4 ms 344 KB Output is correct
27 Correct 4 ms 344 KB Output is correct
28 Correct 392 ms 344 KB Output is correct
29 Correct 18 ms 344 KB Output is correct
30 Correct 364 ms 344 KB Output is correct
31 Correct 363 ms 340 KB Output is correct
32 Correct 7 ms 344 KB Output is correct
33 Correct 375 ms 344 KB Output is correct
34 Correct 351 ms 344 KB Output is correct
35 Correct 331 ms 344 KB Output is correct
36 Correct 349 ms 344 KB Output is correct
37 Correct 0 ms 344 KB Output is correct
38 Correct 296 ms 344 KB Output is correct
39 Correct 54 ms 344 KB Output is correct
40 Correct 313 ms 344 KB Output is correct
41 Correct 323 ms 344 KB Output is correct
42 Correct 5 ms 344 KB Output is correct
43 Correct 305 ms 600 KB Output is correct
44 Correct 17 ms 344 KB Output is correct
45 Correct 318 ms 344 KB Output is correct
46 Correct 373 ms 344 KB Output is correct
47 Correct 78 ms 344 KB Output is correct
48 Correct 333 ms 344 KB Output is correct
49 Correct 5 ms 344 KB Output is correct
50 Correct 6 ms 344 KB Output is correct
51 Correct 4 ms 344 KB Output is correct
52 Correct 352 ms 344 KB Output is correct
53 Correct 18 ms 344 KB Output is correct
54 Correct 328 ms 344 KB Output is correct
55 Correct 367 ms 344 KB Output is correct
56 Correct 11 ms 344 KB Output is correct
57 Correct 329 ms 344 KB Output is correct
58 Correct 347 ms 344 KB Output is correct
59 Correct 356 ms 344 KB Output is correct
60 Correct 338 ms 344 KB Output is correct
61 Correct 22 ms 344 KB Output is correct
62 Correct 48 ms 344 KB Output is correct
63 Correct 24 ms 344 KB Output is correct
64 Correct 354 ms 344 KB Output is correct
65 Correct 333 ms 344 KB Output is correct
66 Correct 368 ms 344 KB Output is correct
67 Correct 376 ms 596 KB Output is correct
68 Correct 311 ms 344 KB Output is correct
69 Correct 362 ms 344 KB Output is correct
70 Correct 394 ms 344 KB Output is correct
71 Correct 346 ms 344 KB Output is correct
72 Correct 336 ms 344 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 337 ms 344 KB Output is correct
75 Correct 57 ms 344 KB Output is correct
76 Correct 338 ms 344 KB Output is correct
77 Correct 334 ms 344 KB Output is correct
78 Correct 6 ms 344 KB Output is correct
79 Correct 314 ms 344 KB Output is correct
80 Correct 29 ms 344 KB Output is correct
81 Correct 327 ms 344 KB Output is correct
82 Correct 339 ms 344 KB Output is correct
83 Correct 89 ms 344 KB Output is correct
84 Correct 339 ms 344 KB Output is correct
85 Correct 5 ms 344 KB Output is correct
86 Correct 4 ms 344 KB Output is correct
87 Correct 4 ms 344 KB Output is correct
88 Correct 353 ms 344 KB Output is correct
89 Correct 17 ms 344 KB Output is correct
90 Correct 344 ms 344 KB Output is correct
91 Correct 365 ms 344 KB Output is correct
92 Correct 7 ms 344 KB Output is correct
93 Correct 350 ms 344 KB Output is correct
94 Correct 350 ms 596 KB Output is correct
95 Correct 361 ms 344 KB Output is correct
96 Correct 326 ms 344 KB Output is correct
97 Correct 25 ms 436 KB Output is correct
98 Correct 53 ms 344 KB Output is correct
99 Correct 22 ms 344 KB Output is correct
100 Correct 340 ms 344 KB Output is correct
101 Correct 337 ms 344 KB Output is correct
102 Correct 362 ms 344 KB Output is correct
103 Correct 343 ms 344 KB Output is correct
104 Correct 330 ms 344 KB Output is correct
105 Correct 378 ms 344 KB Output is correct
106 Correct 370 ms 344 KB Output is correct
107 Correct 347 ms 344 KB Output is correct
108 Correct 338 ms 344 KB Output is correct
109 Correct 378 ms 344 KB Output is correct
110 Correct 379 ms 344 KB Output is correct
111 Correct 384 ms 344 KB Output is correct
112 Correct 372 ms 344 KB Output is correct
113 Correct 341 ms 344 KB Output is correct
114 Correct 382 ms 344 KB Output is correct
115 Correct 403 ms 344 KB Output is correct
116 Correct 345 ms 344 KB Output is correct
117 Correct 376 ms 344 KB Output is correct
118 Correct 373 ms 344 KB Output is correct
119 Correct 352 ms 344 KB Output is correct
120 Correct 329 ms 344 KB Output is correct
121 Correct 0 ms 344 KB Output is correct
122 Correct 311 ms 344 KB Output is correct
123 Correct 52 ms 344 KB Output is correct
124 Correct 350 ms 344 KB Output is correct
125 Correct 343 ms 344 KB Output is correct
126 Correct 5 ms 344 KB Output is correct
127 Correct 333 ms 344 KB Output is correct
128 Correct 27 ms 344 KB Output is correct
129 Correct 333 ms 344 KB Output is correct
130 Correct 340 ms 344 KB Output is correct
131 Correct 103 ms 344 KB Output is correct
132 Correct 327 ms 344 KB Output is correct
133 Correct 5 ms 596 KB Output is correct
134 Correct 4 ms 344 KB Output is correct
135 Correct 4 ms 344 KB Output is correct
136 Correct 359 ms 344 KB Output is correct
137 Correct 22 ms 344 KB Output is correct
138 Correct 361 ms 344 KB Output is correct
139 Correct 347 ms 344 KB Output is correct
140 Correct 7 ms 344 KB Output is correct
141 Correct 343 ms 344 KB Output is correct
142 Correct 347 ms 344 KB Output is correct
143 Correct 322 ms 344 KB Output is correct
144 Correct 349 ms 344 KB Output is correct
145 Correct 22 ms 344 KB Output is correct
146 Correct 46 ms 344 KB Output is correct
147 Correct 21 ms 344 KB Output is correct
148 Correct 388 ms 348 KB Output is correct
149 Correct 349 ms 344 KB Output is correct
150 Correct 375 ms 344 KB Output is correct
151 Correct 345 ms 344 KB Output is correct
152 Correct 320 ms 344 KB Output is correct
153 Correct 357 ms 344 KB Output is correct
154 Correct 369 ms 344 KB Output is correct
155 Correct 357 ms 344 KB Output is correct
156 Correct 329 ms 344 KB Output is correct
157 Correct 381 ms 344 KB Output is correct
158 Correct 393 ms 344 KB Output is correct
159 Correct 370 ms 344 KB Output is correct
160 Correct 371 ms 344 KB Output is correct
161 Correct 348 ms 344 KB Output is correct
162 Correct 351 ms 344 KB Output is correct
163 Correct 383 ms 344 KB Output is correct
164 Correct 326 ms 344 KB Output is correct
165 Correct 372 ms 344 KB Output is correct
166 Correct 357 ms 344 KB Output is correct
167 Correct 326 ms 344 KB Output is correct
168 Correct 370 ms 344 KB Output is correct
169 Correct 401 ms 344 KB Output is correct
170 Correct 387 ms 344 KB Output is correct
171 Correct 411 ms 344 KB Output is correct
172 Correct 402 ms 344 KB Output is correct
173 Correct 362 ms 344 KB Output is correct
174 Correct 378 ms 344 KB Output is correct
175 Correct 402 ms 344 KB Output is correct
176 Correct 324 ms 344 KB Output is correct
177 Correct 378 ms 596 KB Output is correct
178 Correct 383 ms 416 KB Output is correct
179 Correct 354 ms 416 KB Output is correct
180 Correct 333 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 344 KB Partially correct
2 Partially correct 454 ms 436 KB Partially correct
3 Partially correct 469 ms 344 KB Partially correct
4 Partially correct 472 ms 424 KB Partially correct
5 Partially correct 422 ms 592 KB Partially correct
6 Partially correct 464 ms 344 KB Partially correct
7 Partially correct 481 ms 592 KB Partially correct
8 Partially correct 479 ms 344 KB Partially correct
9 Partially correct 428 ms 344 KB Partially correct
10 Partially correct 442 ms 424 KB Partially correct
11 Partially correct 423 ms 412 KB Partially correct
12 Partially correct 340 ms 344 KB Partially correct
13 Partially correct 61 ms 344 KB Partially correct
14 Partially correct 349 ms 344 KB Partially correct
15 Partially correct 278 ms 344 KB Partially correct
16 Partially correct 5 ms 344 KB Partially correct
17 Partially correct 312 ms 424 KB Partially correct
18 Partially correct 24 ms 436 KB Partially correct
19 Partially correct 344 ms 344 KB Partially correct
20 Partially correct 339 ms 344 KB Partially correct
21 Partially correct 82 ms 344 KB Partially correct
22 Partially correct 313 ms 344 KB Partially correct
23 Partially correct 7 ms 344 KB Partially correct
24 Partially correct 4 ms 344 KB Partially correct
25 Partially correct 4 ms 344 KB Partially correct
26 Partially correct 357 ms 344 KB Partially correct
27 Partially correct 17 ms 344 KB Partially correct
28 Partially correct 350 ms 344 KB Partially correct
29 Partially correct 361 ms 344 KB Partially correct
30 Partially correct 7 ms 344 KB Partially correct
31 Partially correct 342 ms 344 KB Partially correct
32 Partially correct 351 ms 344 KB Partially correct
33 Partially correct 322 ms 344 KB Partially correct
34 Partially correct 340 ms 344 KB Partially correct
35 Partially correct 21 ms 344 KB Partially correct
36 Partially correct 50 ms 344 KB Partially correct
37 Partially correct 22 ms 344 KB Partially correct
38 Partially correct 377 ms 344 KB Partially correct
39 Partially correct 337 ms 344 KB Partially correct
40 Partially correct 360 ms 344 KB Partially correct
41 Partially correct 369 ms 344 KB Partially correct
42 Partially correct 332 ms 344 KB Partially correct
43 Partially correct 374 ms 344 KB Partially correct
44 Partially correct 341 ms 340 KB Partially correct
45 Partially correct 331 ms 344 KB Partially correct
46 Partially correct 301 ms 344 KB Partially correct
47 Partially correct 360 ms 344 KB Partially correct
48 Partially correct 398 ms 344 KB Partially correct
49 Partially correct 351 ms 344 KB Partially correct
50 Partially correct 343 ms 344 KB Partially correct
51 Partially correct 344 ms 344 KB Partially correct
52 Partially correct 362 ms 344 KB Partially correct
53 Partially correct 380 ms 344 KB Partially correct
54 Partially correct 312 ms 600 KB Partially correct
55 Partially correct 385 ms 344 KB Partially correct
56 Partially correct 397 ms 344 KB Partially correct
57 Partially correct 370 ms 344 KB Partially correct
58 Partially correct 362 ms 344 KB Partially correct
59 Partially correct 382 ms 344 KB Partially correct
60 Partially correct 366 ms 344 KB Partially correct
61 Partially correct 381 ms 344 KB Partially correct
62 Partially correct 396 ms 344 KB Partially correct
63 Partially correct 340 ms 344 KB Partially correct
64 Partially correct 365 ms 344 KB Partially correct
65 Partially correct 399 ms 344 KB Partially correct
66 Partially correct 324 ms 344 KB Partially correct
67 Partially correct 399 ms 344 KB Partially correct
68 Partially correct 367 ms 592 KB Partially correct
69 Partially correct 356 ms 416 KB Partially correct
70 Partially correct 321 ms 344 KB Partially correct
71 Partially correct 511 ms 428 KB Partially correct
72 Partially correct 614 ms 344 KB Partially correct
73 Partially correct 652 ms 696 KB Partially correct
74 Partially correct 611 ms 592 KB Partially correct
75 Partially correct 575 ms 432 KB Partially correct
76 Partially correct 534 ms 600 KB Partially correct
77 Partially correct 437 ms 344 KB Partially correct
78 Partially correct 445 ms 344 KB Partially correct
79 Partially correct 441 ms 432 KB Partially correct
80 Partially correct 558 ms 344 KB Partially correct
81 Partially correct 593 ms 592 KB Partially correct
82 Partially correct 668 ms 444 KB Partially correct
83 Partially correct 692 ms 344 KB Partially correct
84 Partially correct 418 ms 344 KB Partially correct
85 Partially correct 391 ms 344 KB Partially correct
86 Partially correct 491 ms 592 KB Partially correct
87 Partially correct 655 ms 440 KB Partially correct
88 Partially correct 652 ms 592 KB Partially correct
89 Partially correct 576 ms 428 KB Partially correct
90 Partially correct 574 ms 344 KB Partially correct
91 Partially correct 534 ms 432 KB Partially correct
92 Partially correct 443 ms 344 KB Partially correct
93 Partially correct 406 ms 668 KB Partially correct
94 Partially correct 469 ms 444 KB Partially correct
95 Partially correct 607 ms 600 KB Partially correct
96 Partially correct 576 ms 700 KB Partially correct
97 Partially correct 656 ms 344 KB Partially correct
98 Partially correct 682 ms 432 KB Partially correct
99 Partially correct 414 ms 344 KB Partially correct
100 Partially correct 403 ms 344 KB Partially correct
101 Partially correct 478 ms 344 KB Partially correct
102 Partially correct 585 ms 344 KB Partially correct
103 Partially correct 594 ms 436 KB Partially correct
104 Partially correct 558 ms 340 KB Partially correct
105 Partially correct 567 ms 592 KB Partially correct
106 Partially correct 511 ms 428 KB Partially correct
107 Partially correct 424 ms 344 KB Partially correct
108 Partially correct 259 ms 440 KB Partially correct
109 Partially correct 410 ms 592 KB Partially correct
110 Partially correct 593 ms 344 KB Partially correct
111 Partially correct 599 ms 592 KB Partially correct
112 Partially correct 647 ms 428 KB Partially correct
113 Partially correct 672 ms 344 KB Partially correct
114 Partially correct 420 ms 344 KB Partially correct
115 Partially correct 409 ms 600 KB Partially correct
116 Partially correct 465 ms 592 KB Partially correct
117 Partially correct 628 ms 444 KB Partially correct
118 Partially correct 610 ms 692 KB Partially correct
119 Partially correct 549 ms 344 KB Partially correct
120 Partially correct 617 ms 344 KB Partially correct
121 Partially correct 507 ms 428 KB Partially correct
122 Partially correct 473 ms 344 KB Partially correct
123 Partially correct 463 ms 344 KB Partially correct
124 Partially correct 445 ms 592 KB Partially correct
125 Partially correct 573 ms 444 KB Partially correct
126 Partially correct 570 ms 344 KB Partially correct
127 Partially correct 676 ms 436 KB Partially correct
128 Partially correct 690 ms 592 KB Partially correct
129 Partially correct 395 ms 592 KB Partially correct
130 Partially correct 421 ms 600 KB Partially correct