답안 #673036

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
673036 2022-12-19T12:37:47 Z Hacv16 Jelly Flavours (IOI20_jelly) C++17
44 / 100
2000 ms 2097152 KB
#include <bits/stdc++.h>
#include "jelly.h"
using namespace std;

#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")

const int MAX = 2005;
short int n, a[MAX], b[MAX];

int find_maximum_unique(int x, int y, vector<int> _a, vector<int> _b) {
	n = _a.size();
	
	bool aux = true;

	for(int i = 1; i <= n; i++){
		a[i] = _a[i - 1];
		b[i] = _b[i - 1];
		aux &= (a[i] == b[i]);
	}

	if(aux){ x += y; y = 0; }

	vector<vector<vector<short int>>> dp(n + 1, vector<vector<short int>>(x + 1, vector<short int>(y + 1, 0)));

	for(int i = 1; i <= n; i++){
		for(int j = 0; j <= x; j++){
			for(int k = 0; k <= y; k++){
				int cur = dp[i - 1][j][k];

				if(j >= a[i]) cur = max(cur, dp[i - 1][j - a[i]][k] + 1);
				if(k >= b[i]) cur = max(cur, dp[i - 1][j][k - b[i]] + 1);

				dp[i][j][k] = cur;
			}
		}
	}

	return dp[n][x][y];
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1364 KB Output is correct
2 Correct 5 ms 4436 KB Output is correct
3 Correct 6 ms 4692 KB Output is correct
4 Correct 10 ms 6356 KB Output is correct
5 Correct 8 ms 4948 KB Output is correct
6 Correct 5 ms 4052 KB Output is correct
7 Correct 7 ms 5600 KB Output is correct
8 Correct 5 ms 4052 KB Output is correct
9 Correct 8 ms 5204 KB Output is correct
10 Correct 11 ms 6144 KB Output is correct
11 Correct 1 ms 852 KB Output is correct
12 Correct 2 ms 1364 KB Output is correct
13 Correct 7 ms 4564 KB Output is correct
14 Correct 6 ms 4692 KB Output is correct
15 Correct 10 ms 6356 KB Output is correct
16 Correct 9 ms 4948 KB Output is correct
17 Correct 5 ms 4052 KB Output is correct
18 Correct 7 ms 5588 KB Output is correct
19 Correct 5 ms 4052 KB Output is correct
20 Correct 8 ms 5204 KB Output is correct
21 Correct 2 ms 1236 KB Output is correct
22 Correct 9 ms 6100 KB Output is correct
23 Correct 2 ms 1236 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 1 ms 980 KB Output is correct
26 Correct 1 ms 852 KB Output is correct
27 Correct 1 ms 596 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 2 ms 1228 KB Output is correct
30 Correct 2 ms 1236 KB Output is correct
31 Correct 1 ms 980 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 980 KB Output is correct
34 Correct 1 ms 852 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 2 ms 1236 KB Output is correct
37 Correct 2 ms 1108 KB Output is correct
38 Correct 2 ms 1236 KB Output is correct
39 Correct 2 ms 980 KB Output is correct
40 Correct 2 ms 852 KB Output is correct
41 Correct 2 ms 1364 KB Output is correct
42 Correct 6 ms 4436 KB Output is correct
43 Correct 6 ms 4692 KB Output is correct
44 Correct 10 ms 6356 KB Output is correct
45 Correct 8 ms 4948 KB Output is correct
46 Correct 5 ms 4052 KB Output is correct
47 Correct 8 ms 5588 KB Output is correct
48 Correct 6 ms 4012 KB Output is correct
49 Correct 8 ms 5204 KB Output is correct
50 Correct 10 ms 6100 KB Output is correct
51 Correct 2 ms 1236 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 1 ms 980 KB Output is correct
54 Correct 2 ms 852 KB Output is correct
55 Correct 1 ms 596 KB Output is correct
56 Correct 1 ms 1236 KB Output is correct
57 Correct 1 ms 1108 KB Output is correct
58 Correct 1 ms 1236 KB Output is correct
59 Correct 1 ms 980 KB Output is correct
60 Correct 1 ms 852 KB Output is correct
61 Correct 2 ms 1364 KB Output is correct
62 Correct 5 ms 4436 KB Output is correct
63 Correct 8 ms 4692 KB Output is correct
64 Correct 10 ms 6372 KB Output is correct
65 Correct 7 ms 4948 KB Output is correct
66 Correct 5 ms 4052 KB Output is correct
67 Correct 7 ms 5588 KB Output is correct
68 Correct 5 ms 4052 KB Output is correct
69 Correct 7 ms 5204 KB Output is correct
70 Correct 9 ms 6100 KB Output is correct
71 Correct 2 ms 1236 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 1 ms 980 KB Output is correct
74 Correct 1 ms 852 KB Output is correct
75 Correct 1 ms 596 KB Output is correct
76 Correct 2 ms 1236 KB Output is correct
77 Correct 1 ms 1108 KB Output is correct
78 Correct 2 ms 1236 KB Output is correct
79 Correct 2 ms 1108 KB Output is correct
80 Correct 1 ms 852 KB Output is correct
81 Correct 2 ms 1364 KB Output is correct
82 Correct 7 ms 4564 KB Output is correct
83 Correct 6 ms 4692 KB Output is correct
84 Correct 10 ms 6356 KB Output is correct
85 Correct 8 ms 5040 KB Output is correct
86 Correct 5 ms 4052 KB Output is correct
87 Correct 7 ms 5588 KB Output is correct
88 Correct 5 ms 4052 KB Output is correct
89 Correct 8 ms 5204 KB Output is correct
90 Correct 10 ms 6100 KB Output is correct
91 Correct 2 ms 1236 KB Output is correct
92 Correct 1 ms 212 KB Output is correct
93 Correct 2 ms 980 KB Output is correct
94 Correct 1 ms 852 KB Output is correct
95 Correct 1 ms 596 KB Output is correct
96 Correct 2 ms 1236 KB Output is correct
97 Correct 1 ms 1108 KB Output is correct
98 Correct 2 ms 1236 KB Output is correct
99 Correct 1 ms 980 KB Output is correct
100 Correct 1 ms 852 KB Output is correct
101 Correct 2 ms 1364 KB Output is correct
102 Correct 5 ms 4564 KB Output is correct
103 Correct 7 ms 4692 KB Output is correct
104 Correct 10 ms 6356 KB Output is correct
105 Correct 8 ms 4948 KB Output is correct
106 Correct 6 ms 4052 KB Output is correct
107 Correct 10 ms 5588 KB Output is correct
108 Correct 5 ms 4052 KB Output is correct
109 Correct 11 ms 5204 KB Output is correct
110 Correct 10 ms 6068 KB Output is correct
111 Correct 2 ms 1236 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 2 ms 980 KB Output is correct
114 Correct 1 ms 852 KB Output is correct
115 Correct 1 ms 596 KB Output is correct
116 Correct 2 ms 1236 KB Output is correct
117 Correct 2 ms 1108 KB Output is correct
118 Correct 1 ms 1236 KB Output is correct
119 Correct 2 ms 980 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1364 KB Output is correct
2 Correct 5 ms 4436 KB Output is correct
3 Correct 6 ms 4692 KB Output is correct
4 Correct 10 ms 6356 KB Output is correct
5 Correct 8 ms 4948 KB Output is correct
6 Correct 5 ms 4052 KB Output is correct
7 Correct 7 ms 5600 KB Output is correct
8 Correct 5 ms 4052 KB Output is correct
9 Correct 8 ms 5204 KB Output is correct
10 Correct 11 ms 6144 KB Output is correct
11 Correct 1 ms 852 KB Output is correct
12 Correct 2 ms 1364 KB Output is correct
13 Correct 7 ms 4564 KB Output is correct
14 Correct 6 ms 4692 KB Output is correct
15 Correct 10 ms 6356 KB Output is correct
16 Correct 9 ms 4948 KB Output is correct
17 Correct 5 ms 4052 KB Output is correct
18 Correct 7 ms 5588 KB Output is correct
19 Correct 5 ms 4052 KB Output is correct
20 Correct 8 ms 5204 KB Output is correct
21 Correct 2 ms 1236 KB Output is correct
22 Correct 9 ms 6100 KB Output is correct
23 Correct 2 ms 1236 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 1 ms 980 KB Output is correct
26 Correct 1 ms 852 KB Output is correct
27 Correct 1 ms 596 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 2 ms 1228 KB Output is correct
30 Correct 2 ms 1236 KB Output is correct
31 Correct 1 ms 980 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 980 KB Output is correct
34 Correct 1 ms 852 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 2 ms 1236 KB Output is correct
37 Correct 2 ms 1108 KB Output is correct
38 Correct 2 ms 1236 KB Output is correct
39 Correct 2 ms 980 KB Output is correct
40 Correct 2 ms 852 KB Output is correct
41 Correct 2 ms 1364 KB Output is correct
42 Correct 6 ms 4436 KB Output is correct
43 Correct 6 ms 4692 KB Output is correct
44 Correct 10 ms 6356 KB Output is correct
45 Correct 8 ms 4948 KB Output is correct
46 Correct 5 ms 4052 KB Output is correct
47 Correct 8 ms 5588 KB Output is correct
48 Correct 6 ms 4012 KB Output is correct
49 Correct 8 ms 5204 KB Output is correct
50 Correct 10 ms 6100 KB Output is correct
51 Correct 2 ms 1236 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 1 ms 980 KB Output is correct
54 Correct 2 ms 852 KB Output is correct
55 Correct 1 ms 596 KB Output is correct
56 Correct 1 ms 1236 KB Output is correct
57 Correct 1 ms 1108 KB Output is correct
58 Correct 1 ms 1236 KB Output is correct
59 Correct 1 ms 980 KB Output is correct
60 Correct 1 ms 852 KB Output is correct
61 Correct 2 ms 1364 KB Output is correct
62 Correct 5 ms 4436 KB Output is correct
63 Correct 8 ms 4692 KB Output is correct
64 Correct 10 ms 6372 KB Output is correct
65 Correct 7 ms 4948 KB Output is correct
66 Correct 5 ms 4052 KB Output is correct
67 Correct 7 ms 5588 KB Output is correct
68 Correct 5 ms 4052 KB Output is correct
69 Correct 7 ms 5204 KB Output is correct
70 Correct 9 ms 6100 KB Output is correct
71 Correct 2 ms 1236 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 1 ms 980 KB Output is correct
74 Correct 1 ms 852 KB Output is correct
75 Correct 1 ms 596 KB Output is correct
76 Correct 2 ms 1236 KB Output is correct
77 Correct 1 ms 1108 KB Output is correct
78 Correct 2 ms 1236 KB Output is correct
79 Correct 2 ms 1108 KB Output is correct
80 Correct 1 ms 852 KB Output is correct
81 Correct 2 ms 1364 KB Output is correct
82 Correct 7 ms 4564 KB Output is correct
83 Correct 6 ms 4692 KB Output is correct
84 Correct 10 ms 6356 KB Output is correct
85 Correct 8 ms 5040 KB Output is correct
86 Correct 5 ms 4052 KB Output is correct
87 Correct 7 ms 5588 KB Output is correct
88 Correct 5 ms 4052 KB Output is correct
89 Correct 8 ms 5204 KB Output is correct
90 Correct 10 ms 6100 KB Output is correct
91 Correct 2 ms 1236 KB Output is correct
92 Correct 1 ms 212 KB Output is correct
93 Correct 2 ms 980 KB Output is correct
94 Correct 1 ms 852 KB Output is correct
95 Correct 1 ms 596 KB Output is correct
96 Correct 2 ms 1236 KB Output is correct
97 Correct 1 ms 1108 KB Output is correct
98 Correct 2 ms 1236 KB Output is correct
99 Correct 1 ms 980 KB Output is correct
100 Correct 1 ms 852 KB Output is correct
101 Correct 2 ms 1364 KB Output is correct
102 Correct 5 ms 4564 KB Output is correct
103 Correct 7 ms 4692 KB Output is correct
104 Correct 10 ms 6356 KB Output is correct
105 Correct 8 ms 4948 KB Output is correct
106 Correct 6 ms 4052 KB Output is correct
107 Correct 10 ms 5588 KB Output is correct
108 Correct 5 ms 4052 KB Output is correct
109 Correct 11 ms 5204 KB Output is correct
110 Correct 10 ms 6068 KB Output is correct
111 Correct 2 ms 1236 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 2 ms 980 KB Output is correct
114 Correct 1 ms 852 KB Output is correct
115 Correct 1 ms 596 KB Output is correct
116 Correct 2 ms 1236 KB Output is correct
117 Correct 2 ms 1108 KB Output is correct
118 Correct 1 ms 1236 KB Output is correct
119 Correct 2 ms 980 KB Output is correct
120 Correct 11 ms 5844 KB Output is correct
121 Correct 111 ms 77896 KB Output is correct
122 Correct 116 ms 80952 KB Output is correct
123 Correct 141 ms 72224 KB Output is correct
124 Correct 160 ms 79452 KB Output is correct
125 Correct 120 ms 77564 KB Output is correct
126 Correct 127 ms 88672 KB Output is correct
127 Correct 116 ms 76088 KB Output is correct
128 Correct 205 ms 97912 KB Output is correct
129 Correct 145 ms 75028 KB Output is correct
130 Correct 6 ms 3924 KB Output is correct
131 Correct 0 ms 212 KB Output is correct
132 Correct 11 ms 5588 KB Output is correct
133 Correct 1 ms 852 KB Output is correct
134 Correct 6 ms 3552 KB Output is correct
135 Correct 16 ms 10000 KB Output is correct
136 Correct 18 ms 11424 KB Output is correct
137 Correct 12 ms 8404 KB Output is correct
138 Correct 26 ms 12952 KB Output is correct
139 Correct 11 ms 6092 KB Output is correct
140 Correct 9 ms 5868 KB Output is correct
141 Correct 117 ms 77908 KB Output is correct
142 Correct 117 ms 80988 KB Output is correct
143 Correct 147 ms 72320 KB Output is correct
144 Correct 175 ms 79452 KB Output is correct
145 Correct 115 ms 77624 KB Output is correct
146 Correct 130 ms 88632 KB Output is correct
147 Correct 110 ms 76160 KB Output is correct
148 Correct 194 ms 97912 KB Output is correct
149 Correct 147 ms 75128 KB Output is correct
150 Correct 5 ms 3924 KB Output is correct
151 Correct 1 ms 212 KB Output is correct
152 Correct 8 ms 5588 KB Output is correct
153 Correct 2 ms 852 KB Output is correct
154 Correct 7 ms 3540 KB Output is correct
155 Correct 15 ms 10104 KB Output is correct
156 Correct 18 ms 11436 KB Output is correct
157 Correct 12 ms 8408 KB Output is correct
158 Correct 25 ms 12884 KB Output is correct
159 Correct 10 ms 5972 KB Output is correct
160 Correct 9 ms 5868 KB Output is correct
161 Correct 115 ms 77920 KB Output is correct
162 Correct 116 ms 80988 KB Output is correct
163 Correct 143 ms 72276 KB Output is correct
164 Correct 171 ms 79440 KB Output is correct
165 Correct 116 ms 77628 KB Output is correct
166 Correct 135 ms 88620 KB Output is correct
167 Correct 115 ms 76016 KB Output is correct
168 Correct 192 ms 98032 KB Output is correct
169 Correct 159 ms 75124 KB Output is correct
170 Correct 6 ms 3924 KB Output is correct
171 Correct 1 ms 212 KB Output is correct
172 Correct 9 ms 5588 KB Output is correct
173 Correct 1 ms 852 KB Output is correct
174 Correct 7 ms 3540 KB Output is correct
175 Correct 15 ms 9996 KB Output is correct
176 Correct 18 ms 11408 KB Output is correct
177 Correct 12 ms 8404 KB Output is correct
178 Correct 25 ms 12972 KB Output is correct
179 Correct 11 ms 6100 KB Output is correct
180 Correct 12 ms 5788 KB Output is correct
181 Correct 116 ms 77896 KB Output is correct
182 Correct 116 ms 80972 KB Output is correct
183 Correct 141 ms 72320 KB Output is correct
184 Correct 160 ms 79400 KB Output is correct
185 Correct 118 ms 77516 KB Output is correct
186 Correct 125 ms 88672 KB Output is correct
187 Correct 109 ms 75988 KB Output is correct
188 Correct 213 ms 97980 KB Output is correct
189 Correct 163 ms 75136 KB Output is correct
190 Correct 6 ms 3924 KB Output is correct
191 Correct 0 ms 212 KB Output is correct
192 Correct 8 ms 5588 KB Output is correct
193 Correct 1 ms 852 KB Output is correct
194 Correct 6 ms 3540 KB Output is correct
195 Correct 15 ms 10068 KB Output is correct
196 Correct 18 ms 11424 KB Output is correct
197 Correct 16 ms 8408 KB Output is correct
198 Correct 30 ms 12884 KB Output is correct
199 Correct 11 ms 5972 KB Output is correct
200 Correct 10 ms 5844 KB Output is correct
201 Correct 121 ms 77836 KB Output is correct
202 Correct 115 ms 81040 KB Output is correct
203 Correct 142 ms 72300 KB Output is correct
204 Correct 181 ms 79456 KB Output is correct
205 Correct 133 ms 77608 KB Output is correct
206 Correct 139 ms 88676 KB Output is correct
207 Correct 139 ms 76088 KB Output is correct
208 Correct 196 ms 97912 KB Output is correct
209 Correct 146 ms 75044 KB Output is correct
210 Correct 5 ms 3924 KB Output is correct
211 Correct 0 ms 212 KB Output is correct
212 Correct 8 ms 5588 KB Output is correct
213 Correct 1 ms 852 KB Output is correct
214 Correct 7 ms 3540 KB Output is correct
215 Correct 15 ms 10120 KB Output is correct
216 Correct 22 ms 11436 KB Output is correct
217 Correct 14 ms 8404 KB Output is correct
218 Correct 25 ms 12964 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 196 ms 182216 KB Output is correct
2 Correct 312 ms 283632 KB Output is correct
3 Correct 84 ms 74560 KB Output is correct
4 Correct 125 ms 111392 KB Output is correct
5 Correct 810 ms 750796 KB Output is correct
6 Correct 1042 ms 953368 KB Output is correct
7 Correct 1050 ms 924756 KB Output is correct
8 Correct 194 ms 176840 KB Output is correct
9 Correct 1498 ms 978296 KB Output is correct
10 Correct 477 ms 398264 KB Output is correct
11 Correct 959 ms 856076 KB Output is correct
12 Correct 794 ms 674228 KB Output is correct
13 Correct 751 ms 592384 KB Output is correct
14 Correct 204 ms 186336 KB Output is correct
15 Correct 743 ms 677732 KB Output is correct
16 Correct 701 ms 651292 KB Output is correct
17 Correct 790 ms 686920 KB Output is correct
18 Correct 829 ms 737612 KB Output is correct
19 Correct 663 ms 578496 KB Output is correct
20 Correct 203 ms 184344 KB Output is correct
21 Correct 201 ms 182352 KB Output is correct
22 Correct 306 ms 283628 KB Output is correct
23 Correct 85 ms 74508 KB Output is correct
24 Correct 127 ms 111308 KB Output is correct
25 Correct 817 ms 750812 KB Output is correct
26 Correct 1018 ms 953436 KB Output is correct
27 Correct 979 ms 924600 KB Output is correct
28 Correct 194 ms 176832 KB Output is correct
29 Correct 1067 ms 978192 KB Output is correct
30 Correct 476 ms 398160 KB Output is correct
31 Correct 921 ms 856140 KB Output is correct
32 Correct 746 ms 674320 KB Output is correct
33 Correct 703 ms 592512 KB Output is correct
34 Correct 205 ms 186316 KB Output is correct
35 Correct 735 ms 677816 KB Output is correct
36 Correct 748 ms 651316 KB Output is correct
37 Correct 739 ms 687012 KB Output is correct
38 Correct 813 ms 737492 KB Output is correct
39 Correct 665 ms 578444 KB Output is correct
40 Correct 201 ms 184268 KB Output is correct
41 Correct 209 ms 182112 KB Output is correct
42 Correct 308 ms 283520 KB Output is correct
43 Correct 84 ms 74536 KB Output is correct
44 Correct 124 ms 111308 KB Output is correct
45 Correct 802 ms 750784 KB Output is correct
46 Correct 1010 ms 953532 KB Output is correct
47 Correct 995 ms 924748 KB Output is correct
48 Correct 192 ms 176904 KB Output is correct
49 Correct 1038 ms 978196 KB Output is correct
50 Correct 459 ms 398156 KB Output is correct
51 Correct 954 ms 856088 KB Output is correct
52 Correct 734 ms 674196 KB Output is correct
53 Correct 698 ms 592332 KB Output is correct
54 Correct 214 ms 186356 KB Output is correct
55 Correct 750 ms 677672 KB Output is correct
56 Correct 851 ms 651244 KB Output is correct
57 Correct 731 ms 687028 KB Output is correct
58 Correct 885 ms 737616 KB Output is correct
59 Correct 667 ms 578380 KB Output is correct
60 Correct 204 ms 184104 KB Output is correct
61 Correct 197 ms 182208 KB Output is correct
62 Correct 309 ms 283716 KB Output is correct
63 Correct 84 ms 74572 KB Output is correct
64 Correct 124 ms 111472 KB Output is correct
65 Correct 800 ms 750828 KB Output is correct
66 Correct 1053 ms 953384 KB Output is correct
67 Correct 1012 ms 924644 KB Output is correct
68 Correct 195 ms 176752 KB Output is correct
69 Correct 1042 ms 978188 KB Output is correct
70 Correct 489 ms 398312 KB Output is correct
71 Correct 916 ms 855988 KB Output is correct
72 Correct 731 ms 674216 KB Output is correct
73 Correct 703 ms 592296 KB Output is correct
74 Correct 207 ms 186316 KB Output is correct
75 Correct 753 ms 677688 KB Output is correct
76 Correct 776 ms 651232 KB Output is correct
77 Correct 804 ms 686984 KB Output is correct
78 Correct 823 ms 737544 KB Output is correct
79 Correct 671 ms 578356 KB Output is correct
80 Correct 201 ms 184164 KB Output is correct
81 Correct 210 ms 182092 KB Output is correct
82 Correct 306 ms 283576 KB Output is correct
83 Correct 86 ms 74684 KB Output is correct
84 Correct 126 ms 111308 KB Output is correct
85 Correct 810 ms 750796 KB Output is correct
86 Correct 1016 ms 953568 KB Output is correct
87 Correct 993 ms 924620 KB Output is correct
88 Correct 193 ms 176716 KB Output is correct
89 Correct 1041 ms 978316 KB Output is correct
90 Correct 465 ms 398156 KB Output is correct
91 Correct 925 ms 856140 KB Output is correct
92 Correct 745 ms 674264 KB Output is correct
93 Correct 712 ms 592332 KB Output is correct
94 Correct 206 ms 186316 KB Output is correct
95 Correct 739 ms 677652 KB Output is correct
96 Correct 707 ms 651212 KB Output is correct
97 Correct 759 ms 686980 KB Output is correct
98 Correct 907 ms 737484 KB Output is correct
99 Correct 691 ms 578488 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1127 ms 2097152 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1194 ms 1112396 KB Output is correct
2 Execution timed out 2076 ms 1980300 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1364 KB Output is correct
2 Correct 5 ms 4436 KB Output is correct
3 Correct 6 ms 4692 KB Output is correct
4 Correct 10 ms 6356 KB Output is correct
5 Correct 8 ms 4948 KB Output is correct
6 Correct 5 ms 4052 KB Output is correct
7 Correct 7 ms 5600 KB Output is correct
8 Correct 5 ms 4052 KB Output is correct
9 Correct 8 ms 5204 KB Output is correct
10 Correct 11 ms 6144 KB Output is correct
11 Correct 1 ms 852 KB Output is correct
12 Correct 2 ms 1364 KB Output is correct
13 Correct 7 ms 4564 KB Output is correct
14 Correct 6 ms 4692 KB Output is correct
15 Correct 10 ms 6356 KB Output is correct
16 Correct 9 ms 4948 KB Output is correct
17 Correct 5 ms 4052 KB Output is correct
18 Correct 7 ms 5588 KB Output is correct
19 Correct 5 ms 4052 KB Output is correct
20 Correct 8 ms 5204 KB Output is correct
21 Correct 2 ms 1236 KB Output is correct
22 Correct 9 ms 6100 KB Output is correct
23 Correct 2 ms 1236 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 1 ms 980 KB Output is correct
26 Correct 1 ms 852 KB Output is correct
27 Correct 1 ms 596 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 2 ms 1228 KB Output is correct
30 Correct 2 ms 1236 KB Output is correct
31 Correct 1 ms 980 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 980 KB Output is correct
34 Correct 1 ms 852 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 2 ms 1236 KB Output is correct
37 Correct 2 ms 1108 KB Output is correct
38 Correct 2 ms 1236 KB Output is correct
39 Correct 2 ms 980 KB Output is correct
40 Correct 2 ms 852 KB Output is correct
41 Correct 2 ms 1364 KB Output is correct
42 Correct 6 ms 4436 KB Output is correct
43 Correct 6 ms 4692 KB Output is correct
44 Correct 10 ms 6356 KB Output is correct
45 Correct 8 ms 4948 KB Output is correct
46 Correct 5 ms 4052 KB Output is correct
47 Correct 8 ms 5588 KB Output is correct
48 Correct 6 ms 4012 KB Output is correct
49 Correct 8 ms 5204 KB Output is correct
50 Correct 10 ms 6100 KB Output is correct
51 Correct 2 ms 1236 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 1 ms 980 KB Output is correct
54 Correct 2 ms 852 KB Output is correct
55 Correct 1 ms 596 KB Output is correct
56 Correct 1 ms 1236 KB Output is correct
57 Correct 1 ms 1108 KB Output is correct
58 Correct 1 ms 1236 KB Output is correct
59 Correct 1 ms 980 KB Output is correct
60 Correct 1 ms 852 KB Output is correct
61 Correct 2 ms 1364 KB Output is correct
62 Correct 5 ms 4436 KB Output is correct
63 Correct 8 ms 4692 KB Output is correct
64 Correct 10 ms 6372 KB Output is correct
65 Correct 7 ms 4948 KB Output is correct
66 Correct 5 ms 4052 KB Output is correct
67 Correct 7 ms 5588 KB Output is correct
68 Correct 5 ms 4052 KB Output is correct
69 Correct 7 ms 5204 KB Output is correct
70 Correct 9 ms 6100 KB Output is correct
71 Correct 2 ms 1236 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 1 ms 980 KB Output is correct
74 Correct 1 ms 852 KB Output is correct
75 Correct 1 ms 596 KB Output is correct
76 Correct 2 ms 1236 KB Output is correct
77 Correct 1 ms 1108 KB Output is correct
78 Correct 2 ms 1236 KB Output is correct
79 Correct 2 ms 1108 KB Output is correct
80 Correct 1 ms 852 KB Output is correct
81 Correct 2 ms 1364 KB Output is correct
82 Correct 7 ms 4564 KB Output is correct
83 Correct 6 ms 4692 KB Output is correct
84 Correct 10 ms 6356 KB Output is correct
85 Correct 8 ms 5040 KB Output is correct
86 Correct 5 ms 4052 KB Output is correct
87 Correct 7 ms 5588 KB Output is correct
88 Correct 5 ms 4052 KB Output is correct
89 Correct 8 ms 5204 KB Output is correct
90 Correct 10 ms 6100 KB Output is correct
91 Correct 2 ms 1236 KB Output is correct
92 Correct 1 ms 212 KB Output is correct
93 Correct 2 ms 980 KB Output is correct
94 Correct 1 ms 852 KB Output is correct
95 Correct 1 ms 596 KB Output is correct
96 Correct 2 ms 1236 KB Output is correct
97 Correct 1 ms 1108 KB Output is correct
98 Correct 2 ms 1236 KB Output is correct
99 Correct 1 ms 980 KB Output is correct
100 Correct 1 ms 852 KB Output is correct
101 Correct 2 ms 1364 KB Output is correct
102 Correct 5 ms 4564 KB Output is correct
103 Correct 7 ms 4692 KB Output is correct
104 Correct 10 ms 6356 KB Output is correct
105 Correct 8 ms 4948 KB Output is correct
106 Correct 6 ms 4052 KB Output is correct
107 Correct 10 ms 5588 KB Output is correct
108 Correct 5 ms 4052 KB Output is correct
109 Correct 11 ms 5204 KB Output is correct
110 Correct 10 ms 6068 KB Output is correct
111 Correct 2 ms 1236 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 2 ms 980 KB Output is correct
114 Correct 1 ms 852 KB Output is correct
115 Correct 1 ms 596 KB Output is correct
116 Correct 2 ms 1236 KB Output is correct
117 Correct 2 ms 1108 KB Output is correct
118 Correct 1 ms 1236 KB Output is correct
119 Correct 2 ms 980 KB Output is correct
120 Correct 11 ms 5844 KB Output is correct
121 Correct 111 ms 77896 KB Output is correct
122 Correct 116 ms 80952 KB Output is correct
123 Correct 141 ms 72224 KB Output is correct
124 Correct 160 ms 79452 KB Output is correct
125 Correct 120 ms 77564 KB Output is correct
126 Correct 127 ms 88672 KB Output is correct
127 Correct 116 ms 76088 KB Output is correct
128 Correct 205 ms 97912 KB Output is correct
129 Correct 145 ms 75028 KB Output is correct
130 Correct 6 ms 3924 KB Output is correct
131 Correct 0 ms 212 KB Output is correct
132 Correct 11 ms 5588 KB Output is correct
133 Correct 1 ms 852 KB Output is correct
134 Correct 6 ms 3552 KB Output is correct
135 Correct 16 ms 10000 KB Output is correct
136 Correct 18 ms 11424 KB Output is correct
137 Correct 12 ms 8404 KB Output is correct
138 Correct 26 ms 12952 KB Output is correct
139 Correct 11 ms 6092 KB Output is correct
140 Correct 9 ms 5868 KB Output is correct
141 Correct 117 ms 77908 KB Output is correct
142 Correct 117 ms 80988 KB Output is correct
143 Correct 147 ms 72320 KB Output is correct
144 Correct 175 ms 79452 KB Output is correct
145 Correct 115 ms 77624 KB Output is correct
146 Correct 130 ms 88632 KB Output is correct
147 Correct 110 ms 76160 KB Output is correct
148 Correct 194 ms 97912 KB Output is correct
149 Correct 147 ms 75128 KB Output is correct
150 Correct 5 ms 3924 KB Output is correct
151 Correct 1 ms 212 KB Output is correct
152 Correct 8 ms 5588 KB Output is correct
153 Correct 2 ms 852 KB Output is correct
154 Correct 7 ms 3540 KB Output is correct
155 Correct 15 ms 10104 KB Output is correct
156 Correct 18 ms 11436 KB Output is correct
157 Correct 12 ms 8408 KB Output is correct
158 Correct 25 ms 12884 KB Output is correct
159 Correct 10 ms 5972 KB Output is correct
160 Correct 9 ms 5868 KB Output is correct
161 Correct 115 ms 77920 KB Output is correct
162 Correct 116 ms 80988 KB Output is correct
163 Correct 143 ms 72276 KB Output is correct
164 Correct 171 ms 79440 KB Output is correct
165 Correct 116 ms 77628 KB Output is correct
166 Correct 135 ms 88620 KB Output is correct
167 Correct 115 ms 76016 KB Output is correct
168 Correct 192 ms 98032 KB Output is correct
169 Correct 159 ms 75124 KB Output is correct
170 Correct 6 ms 3924 KB Output is correct
171 Correct 1 ms 212 KB Output is correct
172 Correct 9 ms 5588 KB Output is correct
173 Correct 1 ms 852 KB Output is correct
174 Correct 7 ms 3540 KB Output is correct
175 Correct 15 ms 9996 KB Output is correct
176 Correct 18 ms 11408 KB Output is correct
177 Correct 12 ms 8404 KB Output is correct
178 Correct 25 ms 12972 KB Output is correct
179 Correct 11 ms 6100 KB Output is correct
180 Correct 12 ms 5788 KB Output is correct
181 Correct 116 ms 77896 KB Output is correct
182 Correct 116 ms 80972 KB Output is correct
183 Correct 141 ms 72320 KB Output is correct
184 Correct 160 ms 79400 KB Output is correct
185 Correct 118 ms 77516 KB Output is correct
186 Correct 125 ms 88672 KB Output is correct
187 Correct 109 ms 75988 KB Output is correct
188 Correct 213 ms 97980 KB Output is correct
189 Correct 163 ms 75136 KB Output is correct
190 Correct 6 ms 3924 KB Output is correct
191 Correct 0 ms 212 KB Output is correct
192 Correct 8 ms 5588 KB Output is correct
193 Correct 1 ms 852 KB Output is correct
194 Correct 6 ms 3540 KB Output is correct
195 Correct 15 ms 10068 KB Output is correct
196 Correct 18 ms 11424 KB Output is correct
197 Correct 16 ms 8408 KB Output is correct
198 Correct 30 ms 12884 KB Output is correct
199 Correct 11 ms 5972 KB Output is correct
200 Correct 10 ms 5844 KB Output is correct
201 Correct 121 ms 77836 KB Output is correct
202 Correct 115 ms 81040 KB Output is correct
203 Correct 142 ms 72300 KB Output is correct
204 Correct 181 ms 79456 KB Output is correct
205 Correct 133 ms 77608 KB Output is correct
206 Correct 139 ms 88676 KB Output is correct
207 Correct 139 ms 76088 KB Output is correct
208 Correct 196 ms 97912 KB Output is correct
209 Correct 146 ms 75044 KB Output is correct
210 Correct 5 ms 3924 KB Output is correct
211 Correct 0 ms 212 KB Output is correct
212 Correct 8 ms 5588 KB Output is correct
213 Correct 1 ms 852 KB Output is correct
214 Correct 7 ms 3540 KB Output is correct
215 Correct 15 ms 10120 KB Output is correct
216 Correct 22 ms 11436 KB Output is correct
217 Correct 14 ms 8404 KB Output is correct
218 Correct 25 ms 12964 KB Output is correct
219 Correct 196 ms 182216 KB Output is correct
220 Correct 312 ms 283632 KB Output is correct
221 Correct 84 ms 74560 KB Output is correct
222 Correct 125 ms 111392 KB Output is correct
223 Correct 810 ms 750796 KB Output is correct
224 Correct 1042 ms 953368 KB Output is correct
225 Correct 1050 ms 924756 KB Output is correct
226 Correct 194 ms 176840 KB Output is correct
227 Correct 1498 ms 978296 KB Output is correct
228 Correct 477 ms 398264 KB Output is correct
229 Correct 959 ms 856076 KB Output is correct
230 Correct 794 ms 674228 KB Output is correct
231 Correct 751 ms 592384 KB Output is correct
232 Correct 204 ms 186336 KB Output is correct
233 Correct 743 ms 677732 KB Output is correct
234 Correct 701 ms 651292 KB Output is correct
235 Correct 790 ms 686920 KB Output is correct
236 Correct 829 ms 737612 KB Output is correct
237 Correct 663 ms 578496 KB Output is correct
238 Correct 203 ms 184344 KB Output is correct
239 Correct 201 ms 182352 KB Output is correct
240 Correct 306 ms 283628 KB Output is correct
241 Correct 85 ms 74508 KB Output is correct
242 Correct 127 ms 111308 KB Output is correct
243 Correct 817 ms 750812 KB Output is correct
244 Correct 1018 ms 953436 KB Output is correct
245 Correct 979 ms 924600 KB Output is correct
246 Correct 194 ms 176832 KB Output is correct
247 Correct 1067 ms 978192 KB Output is correct
248 Correct 476 ms 398160 KB Output is correct
249 Correct 921 ms 856140 KB Output is correct
250 Correct 746 ms 674320 KB Output is correct
251 Correct 703 ms 592512 KB Output is correct
252 Correct 205 ms 186316 KB Output is correct
253 Correct 735 ms 677816 KB Output is correct
254 Correct 748 ms 651316 KB Output is correct
255 Correct 739 ms 687012 KB Output is correct
256 Correct 813 ms 737492 KB Output is correct
257 Correct 665 ms 578444 KB Output is correct
258 Correct 201 ms 184268 KB Output is correct
259 Correct 209 ms 182112 KB Output is correct
260 Correct 308 ms 283520 KB Output is correct
261 Correct 84 ms 74536 KB Output is correct
262 Correct 124 ms 111308 KB Output is correct
263 Correct 802 ms 750784 KB Output is correct
264 Correct 1010 ms 953532 KB Output is correct
265 Correct 995 ms 924748 KB Output is correct
266 Correct 192 ms 176904 KB Output is correct
267 Correct 1038 ms 978196 KB Output is correct
268 Correct 459 ms 398156 KB Output is correct
269 Correct 954 ms 856088 KB Output is correct
270 Correct 734 ms 674196 KB Output is correct
271 Correct 698 ms 592332 KB Output is correct
272 Correct 214 ms 186356 KB Output is correct
273 Correct 750 ms 677672 KB Output is correct
274 Correct 851 ms 651244 KB Output is correct
275 Correct 731 ms 687028 KB Output is correct
276 Correct 885 ms 737616 KB Output is correct
277 Correct 667 ms 578380 KB Output is correct
278 Correct 204 ms 184104 KB Output is correct
279 Correct 197 ms 182208 KB Output is correct
280 Correct 309 ms 283716 KB Output is correct
281 Correct 84 ms 74572 KB Output is correct
282 Correct 124 ms 111472 KB Output is correct
283 Correct 800 ms 750828 KB Output is correct
284 Correct 1053 ms 953384 KB Output is correct
285 Correct 1012 ms 924644 KB Output is correct
286 Correct 195 ms 176752 KB Output is correct
287 Correct 1042 ms 978188 KB Output is correct
288 Correct 489 ms 398312 KB Output is correct
289 Correct 916 ms 855988 KB Output is correct
290 Correct 731 ms 674216 KB Output is correct
291 Correct 703 ms 592296 KB Output is correct
292 Correct 207 ms 186316 KB Output is correct
293 Correct 753 ms 677688 KB Output is correct
294 Correct 776 ms 651232 KB Output is correct
295 Correct 804 ms 686984 KB Output is correct
296 Correct 823 ms 737544 KB Output is correct
297 Correct 671 ms 578356 KB Output is correct
298 Correct 201 ms 184164 KB Output is correct
299 Correct 210 ms 182092 KB Output is correct
300 Correct 306 ms 283576 KB Output is correct
301 Correct 86 ms 74684 KB Output is correct
302 Correct 126 ms 111308 KB Output is correct
303 Correct 810 ms 750796 KB Output is correct
304 Correct 1016 ms 953568 KB Output is correct
305 Correct 993 ms 924620 KB Output is correct
306 Correct 193 ms 176716 KB Output is correct
307 Correct 1041 ms 978316 KB Output is correct
308 Correct 465 ms 398156 KB Output is correct
309 Correct 925 ms 856140 KB Output is correct
310 Correct 745 ms 674264 KB Output is correct
311 Correct 712 ms 592332 KB Output is correct
312 Correct 206 ms 186316 KB Output is correct
313 Correct 739 ms 677652 KB Output is correct
314 Correct 707 ms 651212 KB Output is correct
315 Correct 759 ms 686980 KB Output is correct
316 Correct 907 ms 737484 KB Output is correct
317 Correct 691 ms 578488 KB Output is correct
318 Runtime error 1127 ms 2097152 KB Execution killed with signal 9
319 Halted 0 ms 0 KB -