답안 #673023

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

const int MAX = 2015;
int n, a[MAX], b[MAX];

int find_maximum_unique(int x, int y, vector<int> _a, vector<int> _b) {
	n = _a.size();
	
	for(int i = 1; i <= n; i++){
		a[i] = _a[i - 1];
		b[i] = _b[i - 1];
	}

	vector<vector<vector<int>>> dp(n + 1, vector<vector<int>>(x + 1, vector<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 2132 KB Output is correct
2 Correct 7 ms 8532 KB Output is correct
3 Correct 7 ms 8880 KB Output is correct
4 Correct 12 ms 11988 KB Output is correct
5 Correct 8 ms 9556 KB Output is correct
6 Correct 6 ms 7764 KB Output is correct
7 Correct 9 ms 10548 KB Output is correct
8 Correct 6 ms 7636 KB Output is correct
9 Correct 9 ms 9884 KB Output is correct
10 Correct 11 ms 11696 KB Output is correct
11 Correct 2 ms 1364 KB Output is correct
12 Correct 2 ms 2092 KB Output is correct
13 Correct 7 ms 8496 KB Output is correct
14 Correct 7 ms 8916 KB Output is correct
15 Correct 11 ms 11988 KB Output is correct
16 Correct 9 ms 9556 KB Output is correct
17 Correct 6 ms 7764 KB Output is correct
18 Correct 9 ms 10580 KB Output is correct
19 Correct 6 ms 7724 KB Output is correct
20 Correct 10 ms 9812 KB Output is correct
21 Correct 2 ms 2220 KB Output is correct
22 Correct 13 ms 11740 KB Output is correct
23 Correct 2 ms 2132 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 1620 KB Output is correct
26 Correct 1 ms 1492 KB Output is correct
27 Correct 1 ms 980 KB Output is correct
28 Correct 3 ms 2004 KB Output is correct
29 Correct 2 ms 1748 KB Output is correct
30 Correct 2 ms 2004 KB Output is correct
31 Correct 2 ms 1620 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 1620 KB Output is correct
34 Correct 2 ms 1492 KB Output is correct
35 Correct 1 ms 980 KB Output is correct
36 Correct 2 ms 2004 KB Output is correct
37 Correct 2 ms 1748 KB Output is correct
38 Correct 2 ms 2132 KB Output is correct
39 Correct 2 ms 1620 KB Output is correct
40 Correct 1 ms 1364 KB Output is correct
41 Correct 2 ms 2132 KB Output is correct
42 Correct 7 ms 8532 KB Output is correct
43 Correct 7 ms 8956 KB Output is correct
44 Correct 13 ms 11988 KB Output is correct
45 Correct 8 ms 9556 KB Output is correct
46 Correct 6 ms 7764 KB Output is correct
47 Correct 9 ms 10580 KB Output is correct
48 Correct 6 ms 7636 KB Output is correct
49 Correct 9 ms 9812 KB Output is correct
50 Correct 13 ms 11732 KB Output is correct
51 Correct 2 ms 2132 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 1 ms 1620 KB Output is correct
54 Correct 2 ms 1492 KB Output is correct
55 Correct 1 ms 980 KB Output is correct
56 Correct 2 ms 2004 KB Output is correct
57 Correct 2 ms 1748 KB Output is correct
58 Correct 2 ms 2004 KB Output is correct
59 Correct 2 ms 1620 KB Output is correct
60 Correct 2 ms 1364 KB Output is correct
61 Correct 2 ms 2132 KB Output is correct
62 Correct 7 ms 8532 KB Output is correct
63 Correct 7 ms 8916 KB Output is correct
64 Correct 11 ms 12036 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 8 ms 7768 KB Output is correct
67 Correct 12 ms 10580 KB Output is correct
68 Correct 8 ms 7636 KB Output is correct
69 Correct 12 ms 9916 KB Output is correct
70 Correct 11 ms 11616 KB Output is correct
71 Correct 2 ms 2132 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 2 ms 1620 KB Output is correct
74 Correct 1 ms 1492 KB Output is correct
75 Correct 1 ms 980 KB Output is correct
76 Correct 2 ms 2004 KB Output is correct
77 Correct 2 ms 1748 KB Output is correct
78 Correct 2 ms 2004 KB Output is correct
79 Correct 2 ms 1620 KB Output is correct
80 Correct 1 ms 1364 KB Output is correct
81 Correct 2 ms 2132 KB Output is correct
82 Correct 7 ms 8532 KB Output is correct
83 Correct 7 ms 8916 KB Output is correct
84 Correct 11 ms 11988 KB Output is correct
85 Correct 10 ms 9556 KB Output is correct
86 Correct 6 ms 7764 KB Output is correct
87 Correct 9 ms 10580 KB Output is correct
88 Correct 6 ms 7636 KB Output is correct
89 Correct 9 ms 9812 KB Output is correct
90 Correct 11 ms 11732 KB Output is correct
91 Correct 2 ms 2132 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 2 ms 1620 KB Output is correct
94 Correct 1 ms 1492 KB Output is correct
95 Correct 1 ms 980 KB Output is correct
96 Correct 2 ms 2004 KB Output is correct
97 Correct 2 ms 1748 KB Output is correct
98 Correct 2 ms 2004 KB Output is correct
99 Correct 2 ms 1620 KB Output is correct
100 Correct 1 ms 1364 KB Output is correct
101 Correct 2 ms 2132 KB Output is correct
102 Correct 7 ms 8532 KB Output is correct
103 Correct 7 ms 8916 KB Output is correct
104 Correct 11 ms 11988 KB Output is correct
105 Correct 9 ms 9556 KB Output is correct
106 Correct 6 ms 7764 KB Output is correct
107 Correct 9 ms 10668 KB Output is correct
108 Correct 6 ms 7636 KB Output is correct
109 Correct 12 ms 9812 KB Output is correct
110 Correct 11 ms 11732 KB Output is correct
111 Correct 2 ms 2132 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 2 ms 1620 KB Output is correct
114 Correct 2 ms 1492 KB Output is correct
115 Correct 1 ms 980 KB Output is correct
116 Correct 2 ms 2004 KB Output is correct
117 Correct 2 ms 1748 KB Output is correct
118 Correct 2 ms 2004 KB Output is correct
119 Correct 2 ms 1492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 2132 KB Output is correct
2 Correct 7 ms 8532 KB Output is correct
3 Correct 7 ms 8880 KB Output is correct
4 Correct 12 ms 11988 KB Output is correct
5 Correct 8 ms 9556 KB Output is correct
6 Correct 6 ms 7764 KB Output is correct
7 Correct 9 ms 10548 KB Output is correct
8 Correct 6 ms 7636 KB Output is correct
9 Correct 9 ms 9884 KB Output is correct
10 Correct 11 ms 11696 KB Output is correct
11 Correct 2 ms 1364 KB Output is correct
12 Correct 2 ms 2092 KB Output is correct
13 Correct 7 ms 8496 KB Output is correct
14 Correct 7 ms 8916 KB Output is correct
15 Correct 11 ms 11988 KB Output is correct
16 Correct 9 ms 9556 KB Output is correct
17 Correct 6 ms 7764 KB Output is correct
18 Correct 9 ms 10580 KB Output is correct
19 Correct 6 ms 7724 KB Output is correct
20 Correct 10 ms 9812 KB Output is correct
21 Correct 2 ms 2220 KB Output is correct
22 Correct 13 ms 11740 KB Output is correct
23 Correct 2 ms 2132 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 1620 KB Output is correct
26 Correct 1 ms 1492 KB Output is correct
27 Correct 1 ms 980 KB Output is correct
28 Correct 3 ms 2004 KB Output is correct
29 Correct 2 ms 1748 KB Output is correct
30 Correct 2 ms 2004 KB Output is correct
31 Correct 2 ms 1620 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 1620 KB Output is correct
34 Correct 2 ms 1492 KB Output is correct
35 Correct 1 ms 980 KB Output is correct
36 Correct 2 ms 2004 KB Output is correct
37 Correct 2 ms 1748 KB Output is correct
38 Correct 2 ms 2132 KB Output is correct
39 Correct 2 ms 1620 KB Output is correct
40 Correct 1 ms 1364 KB Output is correct
41 Correct 2 ms 2132 KB Output is correct
42 Correct 7 ms 8532 KB Output is correct
43 Correct 7 ms 8956 KB Output is correct
44 Correct 13 ms 11988 KB Output is correct
45 Correct 8 ms 9556 KB Output is correct
46 Correct 6 ms 7764 KB Output is correct
47 Correct 9 ms 10580 KB Output is correct
48 Correct 6 ms 7636 KB Output is correct
49 Correct 9 ms 9812 KB Output is correct
50 Correct 13 ms 11732 KB Output is correct
51 Correct 2 ms 2132 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 1 ms 1620 KB Output is correct
54 Correct 2 ms 1492 KB Output is correct
55 Correct 1 ms 980 KB Output is correct
56 Correct 2 ms 2004 KB Output is correct
57 Correct 2 ms 1748 KB Output is correct
58 Correct 2 ms 2004 KB Output is correct
59 Correct 2 ms 1620 KB Output is correct
60 Correct 2 ms 1364 KB Output is correct
61 Correct 2 ms 2132 KB Output is correct
62 Correct 7 ms 8532 KB Output is correct
63 Correct 7 ms 8916 KB Output is correct
64 Correct 11 ms 12036 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 8 ms 7768 KB Output is correct
67 Correct 12 ms 10580 KB Output is correct
68 Correct 8 ms 7636 KB Output is correct
69 Correct 12 ms 9916 KB Output is correct
70 Correct 11 ms 11616 KB Output is correct
71 Correct 2 ms 2132 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 2 ms 1620 KB Output is correct
74 Correct 1 ms 1492 KB Output is correct
75 Correct 1 ms 980 KB Output is correct
76 Correct 2 ms 2004 KB Output is correct
77 Correct 2 ms 1748 KB Output is correct
78 Correct 2 ms 2004 KB Output is correct
79 Correct 2 ms 1620 KB Output is correct
80 Correct 1 ms 1364 KB Output is correct
81 Correct 2 ms 2132 KB Output is correct
82 Correct 7 ms 8532 KB Output is correct
83 Correct 7 ms 8916 KB Output is correct
84 Correct 11 ms 11988 KB Output is correct
85 Correct 10 ms 9556 KB Output is correct
86 Correct 6 ms 7764 KB Output is correct
87 Correct 9 ms 10580 KB Output is correct
88 Correct 6 ms 7636 KB Output is correct
89 Correct 9 ms 9812 KB Output is correct
90 Correct 11 ms 11732 KB Output is correct
91 Correct 2 ms 2132 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 2 ms 1620 KB Output is correct
94 Correct 1 ms 1492 KB Output is correct
95 Correct 1 ms 980 KB Output is correct
96 Correct 2 ms 2004 KB Output is correct
97 Correct 2 ms 1748 KB Output is correct
98 Correct 2 ms 2004 KB Output is correct
99 Correct 2 ms 1620 KB Output is correct
100 Correct 1 ms 1364 KB Output is correct
101 Correct 2 ms 2132 KB Output is correct
102 Correct 7 ms 8532 KB Output is correct
103 Correct 7 ms 8916 KB Output is correct
104 Correct 11 ms 11988 KB Output is correct
105 Correct 9 ms 9556 KB Output is correct
106 Correct 6 ms 7764 KB Output is correct
107 Correct 9 ms 10668 KB Output is correct
108 Correct 6 ms 7636 KB Output is correct
109 Correct 12 ms 9812 KB Output is correct
110 Correct 11 ms 11732 KB Output is correct
111 Correct 2 ms 2132 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 2 ms 1620 KB Output is correct
114 Correct 2 ms 1492 KB Output is correct
115 Correct 1 ms 980 KB Output is correct
116 Correct 2 ms 2004 KB Output is correct
117 Correct 2 ms 1748 KB Output is correct
118 Correct 2 ms 2004 KB Output is correct
119 Correct 2 ms 1492 KB Output is correct
120 Correct 11 ms 9524 KB Output is correct
121 Correct 124 ms 150520 KB Output is correct
122 Correct 129 ms 158300 KB Output is correct
123 Correct 152 ms 141048 KB Output is correct
124 Correct 157 ms 156648 KB Output is correct
125 Correct 135 ms 152904 KB Output is correct
126 Correct 147 ms 174892 KB Output is correct
127 Correct 136 ms 148584 KB Output is correct
128 Correct 202 ms 191684 KB Output is correct
129 Correct 147 ms 145404 KB Output is correct
130 Correct 6 ms 7508 KB Output is correct
131 Correct 1 ms 212 KB Output is correct
132 Correct 9 ms 10708 KB Output is correct
133 Correct 1 ms 1492 KB Output is correct
134 Correct 8 ms 6740 KB Output is correct
135 Correct 17 ms 19540 KB Output is correct
136 Correct 20 ms 20528 KB Output is correct
137 Correct 14 ms 13268 KB Output is correct
138 Correct 26 ms 22228 KB Output is correct
139 Correct 17 ms 9868 KB Output is correct
140 Correct 10 ms 9556 KB Output is correct
141 Correct 138 ms 150476 KB Output is correct
142 Correct 164 ms 158332 KB Output is correct
143 Correct 145 ms 141048 KB Output is correct
144 Correct 168 ms 156540 KB Output is correct
145 Correct 145 ms 152908 KB Output is correct
146 Correct 163 ms 174880 KB Output is correct
147 Correct 141 ms 148392 KB Output is correct
148 Correct 210 ms 191732 KB Output is correct
149 Correct 174 ms 145408 KB Output is correct
150 Correct 6 ms 7508 KB Output is correct
151 Correct 0 ms 212 KB Output is correct
152 Correct 9 ms 10708 KB Output is correct
153 Correct 2 ms 1492 KB Output is correct
154 Correct 10 ms 6740 KB Output is correct
155 Correct 18 ms 19576 KB Output is correct
156 Correct 22 ms 20472 KB Output is correct
157 Correct 16 ms 13396 KB Output is correct
158 Correct 28 ms 22228 KB Output is correct
159 Correct 12 ms 9940 KB Output is correct
160 Correct 13 ms 9584 KB Output is correct
161 Correct 159 ms 150592 KB Output is correct
162 Correct 146 ms 158352 KB Output is correct
163 Correct 149 ms 141044 KB Output is correct
164 Correct 168 ms 156536 KB Output is correct
165 Correct 126 ms 152904 KB Output is correct
166 Correct 153 ms 174928 KB Output is correct
167 Correct 159 ms 148424 KB Output is correct
168 Correct 198 ms 191688 KB Output is correct
169 Correct 188 ms 145420 KB Output is correct
170 Correct 11 ms 7496 KB Output is correct
171 Correct 1 ms 212 KB Output is correct
172 Correct 9 ms 10708 KB Output is correct
173 Correct 1 ms 1492 KB Output is correct
174 Correct 7 ms 6752 KB Output is correct
175 Correct 19 ms 19540 KB Output is correct
176 Correct 23 ms 20580 KB Output is correct
177 Correct 14 ms 13268 KB Output is correct
178 Correct 36 ms 22172 KB Output is correct
179 Correct 16 ms 9940 KB Output is correct
180 Correct 11 ms 9488 KB Output is correct
181 Correct 134 ms 150488 KB Output is correct
182 Correct 136 ms 158356 KB Output is correct
183 Correct 169 ms 141052 KB Output is correct
184 Correct 183 ms 156656 KB Output is correct
185 Correct 142 ms 152812 KB Output is correct
186 Correct 144 ms 174928 KB Output is correct
187 Correct 128 ms 148468 KB Output is correct
188 Correct 198 ms 191684 KB Output is correct
189 Correct 172 ms 145448 KB Output is correct
190 Correct 9 ms 7504 KB Output is correct
191 Correct 0 ms 212 KB Output is correct
192 Correct 10 ms 10708 KB Output is correct
193 Correct 1 ms 1364 KB Output is correct
194 Correct 7 ms 6740 KB Output is correct
195 Correct 17 ms 19540 KB Output is correct
196 Correct 25 ms 20564 KB Output is correct
197 Correct 25 ms 13268 KB Output is correct
198 Correct 26 ms 22184 KB Output is correct
199 Correct 13 ms 9940 KB Output is correct
200 Correct 11 ms 9536 KB Output is correct
201 Correct 124 ms 150476 KB Output is correct
202 Correct 133 ms 158340 KB Output is correct
203 Correct 151 ms 141052 KB Output is correct
204 Correct 165 ms 156660 KB Output is correct
205 Correct 136 ms 152780 KB Output is correct
206 Correct 145 ms 174904 KB Output is correct
207 Correct 121 ms 148432 KB Output is correct
208 Correct 195 ms 191692 KB Output is correct
209 Correct 144 ms 145416 KB Output is correct
210 Correct 7 ms 7508 KB Output is correct
211 Correct 0 ms 212 KB Output is correct
212 Correct 9 ms 10708 KB Output is correct
213 Correct 1 ms 1492 KB Output is correct
214 Correct 8 ms 6740 KB Output is correct
215 Correct 20 ms 19552 KB Output is correct
216 Correct 20 ms 20536 KB Output is correct
217 Correct 14 ms 13268 KB Output is correct
218 Correct 28 ms 22292 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 199 ms 182240 KB Output is correct
2 Correct 310 ms 283644 KB Output is correct
3 Correct 85 ms 74700 KB Output is correct
4 Correct 121 ms 111408 KB Output is correct
5 Correct 813 ms 750912 KB Output is correct
6 Correct 1028 ms 953548 KB Output is correct
7 Correct 1035 ms 924716 KB Output is correct
8 Correct 195 ms 176768 KB Output is correct
9 Correct 1084 ms 978300 KB Output is correct
10 Correct 481 ms 398268 KB Output is correct
11 Correct 975 ms 856016 KB Output is correct
12 Correct 756 ms 674304 KB Output is correct
13 Correct 812 ms 592388 KB Output is correct
14 Correct 221 ms 186316 KB Output is correct
15 Correct 834 ms 677668 KB Output is correct
16 Correct 850 ms 651256 KB Output is correct
17 Correct 1064 ms 687132 KB Output is correct
18 Correct 863 ms 737536 KB Output is correct
19 Correct 684 ms 578452 KB Output is correct
20 Correct 210 ms 184304 KB Output is correct
21 Correct 204 ms 182212 KB Output is correct
22 Correct 329 ms 283544 KB Output is correct
23 Correct 85 ms 74572 KB Output is correct
24 Correct 140 ms 111456 KB Output is correct
25 Correct 855 ms 750780 KB Output is correct
26 Correct 1057 ms 953428 KB Output is correct
27 Correct 1055 ms 924680 KB Output is correct
28 Correct 202 ms 176816 KB Output is correct
29 Correct 1139 ms 978144 KB Output is correct
30 Correct 563 ms 398272 KB Output is correct
31 Correct 954 ms 856052 KB Output is correct
32 Correct 831 ms 674228 KB Output is correct
33 Correct 737 ms 592380 KB Output is correct
34 Correct 259 ms 186312 KB Output is correct
35 Correct 773 ms 677700 KB Output is correct
36 Correct 747 ms 651272 KB Output is correct
37 Correct 831 ms 687004 KB Output is correct
38 Correct 919 ms 737612 KB Output is correct
39 Correct 882 ms 578512 KB Output is correct
40 Correct 214 ms 184180 KB Output is correct
41 Correct 211 ms 182248 KB Output is correct
42 Correct 326 ms 283700 KB Output is correct
43 Correct 103 ms 74592 KB Output is correct
44 Correct 128 ms 111404 KB Output is correct
45 Correct 865 ms 750712 KB Output is correct
46 Correct 1061 ms 953428 KB Output is correct
47 Correct 1072 ms 924588 KB Output is correct
48 Correct 212 ms 176844 KB Output is correct
49 Correct 1107 ms 978240 KB Output is correct
50 Correct 488 ms 398268 KB Output is correct
51 Correct 960 ms 855964 KB Output is correct
52 Correct 767 ms 674324 KB Output is correct
53 Correct 738 ms 592408 KB Output is correct
54 Correct 227 ms 186320 KB Output is correct
55 Correct 802 ms 677792 KB Output is correct
56 Correct 783 ms 651308 KB Output is correct
57 Correct 777 ms 687036 KB Output is correct
58 Correct 845 ms 737500 KB Output is correct
59 Correct 786 ms 578448 KB Output is correct
60 Correct 226 ms 184140 KB Output is correct
61 Correct 208 ms 182240 KB Output is correct
62 Correct 398 ms 283600 KB Output is correct
63 Correct 89 ms 74600 KB Output is correct
64 Correct 135 ms 111416 KB Output is correct
65 Correct 895 ms 750776 KB Output is correct
66 Correct 1080 ms 953452 KB Output is correct
67 Correct 1103 ms 924644 KB Output is correct
68 Correct 262 ms 176844 KB Output is correct
69 Correct 1108 ms 978400 KB Output is correct
70 Correct 519 ms 398164 KB Output is correct
71 Correct 1002 ms 856020 KB Output is correct
72 Correct 805 ms 674356 KB Output is correct
73 Correct 785 ms 592388 KB Output is correct
74 Correct 223 ms 186232 KB Output is correct
75 Correct 914 ms 677680 KB Output is correct
76 Correct 829 ms 651244 KB Output is correct
77 Correct 815 ms 687148 KB Output is correct
78 Correct 916 ms 737504 KB Output is correct
79 Correct 733 ms 578364 KB Output is correct
80 Correct 220 ms 184352 KB Output is correct
81 Correct 214 ms 182240 KB Output is correct
82 Correct 343 ms 283652 KB Output is correct
83 Correct 90 ms 74600 KB Output is correct
84 Correct 131 ms 111332 KB Output is correct
85 Correct 914 ms 750788 KB Output is correct
86 Correct 1141 ms 953492 KB Output is correct
87 Correct 1090 ms 924680 KB Output is correct
88 Correct 243 ms 176916 KB Output is correct
89 Correct 1171 ms 978244 KB Output is correct
90 Correct 512 ms 398156 KB Output is correct
91 Correct 1088 ms 856100 KB Output is correct
92 Correct 846 ms 674212 KB Output is correct
93 Correct 884 ms 592300 KB Output is correct
94 Correct 236 ms 186356 KB Output is correct
95 Correct 936 ms 677824 KB Output is correct
96 Correct 772 ms 651340 KB Output is correct
97 Correct 894 ms 687136 KB Output is correct
98 Correct 878 ms 737548 KB Output is correct
99 Correct 737 ms 578344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Runtime error 933 ms 2097152 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1241 ms 2097156 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 2132 KB Output is correct
2 Correct 7 ms 8532 KB Output is correct
3 Correct 7 ms 8880 KB Output is correct
4 Correct 12 ms 11988 KB Output is correct
5 Correct 8 ms 9556 KB Output is correct
6 Correct 6 ms 7764 KB Output is correct
7 Correct 9 ms 10548 KB Output is correct
8 Correct 6 ms 7636 KB Output is correct
9 Correct 9 ms 9884 KB Output is correct
10 Correct 11 ms 11696 KB Output is correct
11 Correct 2 ms 1364 KB Output is correct
12 Correct 2 ms 2092 KB Output is correct
13 Correct 7 ms 8496 KB Output is correct
14 Correct 7 ms 8916 KB Output is correct
15 Correct 11 ms 11988 KB Output is correct
16 Correct 9 ms 9556 KB Output is correct
17 Correct 6 ms 7764 KB Output is correct
18 Correct 9 ms 10580 KB Output is correct
19 Correct 6 ms 7724 KB Output is correct
20 Correct 10 ms 9812 KB Output is correct
21 Correct 2 ms 2220 KB Output is correct
22 Correct 13 ms 11740 KB Output is correct
23 Correct 2 ms 2132 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 2 ms 1620 KB Output is correct
26 Correct 1 ms 1492 KB Output is correct
27 Correct 1 ms 980 KB Output is correct
28 Correct 3 ms 2004 KB Output is correct
29 Correct 2 ms 1748 KB Output is correct
30 Correct 2 ms 2004 KB Output is correct
31 Correct 2 ms 1620 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 1620 KB Output is correct
34 Correct 2 ms 1492 KB Output is correct
35 Correct 1 ms 980 KB Output is correct
36 Correct 2 ms 2004 KB Output is correct
37 Correct 2 ms 1748 KB Output is correct
38 Correct 2 ms 2132 KB Output is correct
39 Correct 2 ms 1620 KB Output is correct
40 Correct 1 ms 1364 KB Output is correct
41 Correct 2 ms 2132 KB Output is correct
42 Correct 7 ms 8532 KB Output is correct
43 Correct 7 ms 8956 KB Output is correct
44 Correct 13 ms 11988 KB Output is correct
45 Correct 8 ms 9556 KB Output is correct
46 Correct 6 ms 7764 KB Output is correct
47 Correct 9 ms 10580 KB Output is correct
48 Correct 6 ms 7636 KB Output is correct
49 Correct 9 ms 9812 KB Output is correct
50 Correct 13 ms 11732 KB Output is correct
51 Correct 2 ms 2132 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 1 ms 1620 KB Output is correct
54 Correct 2 ms 1492 KB Output is correct
55 Correct 1 ms 980 KB Output is correct
56 Correct 2 ms 2004 KB Output is correct
57 Correct 2 ms 1748 KB Output is correct
58 Correct 2 ms 2004 KB Output is correct
59 Correct 2 ms 1620 KB Output is correct
60 Correct 2 ms 1364 KB Output is correct
61 Correct 2 ms 2132 KB Output is correct
62 Correct 7 ms 8532 KB Output is correct
63 Correct 7 ms 8916 KB Output is correct
64 Correct 11 ms 12036 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 8 ms 7768 KB Output is correct
67 Correct 12 ms 10580 KB Output is correct
68 Correct 8 ms 7636 KB Output is correct
69 Correct 12 ms 9916 KB Output is correct
70 Correct 11 ms 11616 KB Output is correct
71 Correct 2 ms 2132 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 2 ms 1620 KB Output is correct
74 Correct 1 ms 1492 KB Output is correct
75 Correct 1 ms 980 KB Output is correct
76 Correct 2 ms 2004 KB Output is correct
77 Correct 2 ms 1748 KB Output is correct
78 Correct 2 ms 2004 KB Output is correct
79 Correct 2 ms 1620 KB Output is correct
80 Correct 1 ms 1364 KB Output is correct
81 Correct 2 ms 2132 KB Output is correct
82 Correct 7 ms 8532 KB Output is correct
83 Correct 7 ms 8916 KB Output is correct
84 Correct 11 ms 11988 KB Output is correct
85 Correct 10 ms 9556 KB Output is correct
86 Correct 6 ms 7764 KB Output is correct
87 Correct 9 ms 10580 KB Output is correct
88 Correct 6 ms 7636 KB Output is correct
89 Correct 9 ms 9812 KB Output is correct
90 Correct 11 ms 11732 KB Output is correct
91 Correct 2 ms 2132 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 2 ms 1620 KB Output is correct
94 Correct 1 ms 1492 KB Output is correct
95 Correct 1 ms 980 KB Output is correct
96 Correct 2 ms 2004 KB Output is correct
97 Correct 2 ms 1748 KB Output is correct
98 Correct 2 ms 2004 KB Output is correct
99 Correct 2 ms 1620 KB Output is correct
100 Correct 1 ms 1364 KB Output is correct
101 Correct 2 ms 2132 KB Output is correct
102 Correct 7 ms 8532 KB Output is correct
103 Correct 7 ms 8916 KB Output is correct
104 Correct 11 ms 11988 KB Output is correct
105 Correct 9 ms 9556 KB Output is correct
106 Correct 6 ms 7764 KB Output is correct
107 Correct 9 ms 10668 KB Output is correct
108 Correct 6 ms 7636 KB Output is correct
109 Correct 12 ms 9812 KB Output is correct
110 Correct 11 ms 11732 KB Output is correct
111 Correct 2 ms 2132 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 2 ms 1620 KB Output is correct
114 Correct 2 ms 1492 KB Output is correct
115 Correct 1 ms 980 KB Output is correct
116 Correct 2 ms 2004 KB Output is correct
117 Correct 2 ms 1748 KB Output is correct
118 Correct 2 ms 2004 KB Output is correct
119 Correct 2 ms 1492 KB Output is correct
120 Correct 11 ms 9524 KB Output is correct
121 Correct 124 ms 150520 KB Output is correct
122 Correct 129 ms 158300 KB Output is correct
123 Correct 152 ms 141048 KB Output is correct
124 Correct 157 ms 156648 KB Output is correct
125 Correct 135 ms 152904 KB Output is correct
126 Correct 147 ms 174892 KB Output is correct
127 Correct 136 ms 148584 KB Output is correct
128 Correct 202 ms 191684 KB Output is correct
129 Correct 147 ms 145404 KB Output is correct
130 Correct 6 ms 7508 KB Output is correct
131 Correct 1 ms 212 KB Output is correct
132 Correct 9 ms 10708 KB Output is correct
133 Correct 1 ms 1492 KB Output is correct
134 Correct 8 ms 6740 KB Output is correct
135 Correct 17 ms 19540 KB Output is correct
136 Correct 20 ms 20528 KB Output is correct
137 Correct 14 ms 13268 KB Output is correct
138 Correct 26 ms 22228 KB Output is correct
139 Correct 17 ms 9868 KB Output is correct
140 Correct 10 ms 9556 KB Output is correct
141 Correct 138 ms 150476 KB Output is correct
142 Correct 164 ms 158332 KB Output is correct
143 Correct 145 ms 141048 KB Output is correct
144 Correct 168 ms 156540 KB Output is correct
145 Correct 145 ms 152908 KB Output is correct
146 Correct 163 ms 174880 KB Output is correct
147 Correct 141 ms 148392 KB Output is correct
148 Correct 210 ms 191732 KB Output is correct
149 Correct 174 ms 145408 KB Output is correct
150 Correct 6 ms 7508 KB Output is correct
151 Correct 0 ms 212 KB Output is correct
152 Correct 9 ms 10708 KB Output is correct
153 Correct 2 ms 1492 KB Output is correct
154 Correct 10 ms 6740 KB Output is correct
155 Correct 18 ms 19576 KB Output is correct
156 Correct 22 ms 20472 KB Output is correct
157 Correct 16 ms 13396 KB Output is correct
158 Correct 28 ms 22228 KB Output is correct
159 Correct 12 ms 9940 KB Output is correct
160 Correct 13 ms 9584 KB Output is correct
161 Correct 159 ms 150592 KB Output is correct
162 Correct 146 ms 158352 KB Output is correct
163 Correct 149 ms 141044 KB Output is correct
164 Correct 168 ms 156536 KB Output is correct
165 Correct 126 ms 152904 KB Output is correct
166 Correct 153 ms 174928 KB Output is correct
167 Correct 159 ms 148424 KB Output is correct
168 Correct 198 ms 191688 KB Output is correct
169 Correct 188 ms 145420 KB Output is correct
170 Correct 11 ms 7496 KB Output is correct
171 Correct 1 ms 212 KB Output is correct
172 Correct 9 ms 10708 KB Output is correct
173 Correct 1 ms 1492 KB Output is correct
174 Correct 7 ms 6752 KB Output is correct
175 Correct 19 ms 19540 KB Output is correct
176 Correct 23 ms 20580 KB Output is correct
177 Correct 14 ms 13268 KB Output is correct
178 Correct 36 ms 22172 KB Output is correct
179 Correct 16 ms 9940 KB Output is correct
180 Correct 11 ms 9488 KB Output is correct
181 Correct 134 ms 150488 KB Output is correct
182 Correct 136 ms 158356 KB Output is correct
183 Correct 169 ms 141052 KB Output is correct
184 Correct 183 ms 156656 KB Output is correct
185 Correct 142 ms 152812 KB Output is correct
186 Correct 144 ms 174928 KB Output is correct
187 Correct 128 ms 148468 KB Output is correct
188 Correct 198 ms 191684 KB Output is correct
189 Correct 172 ms 145448 KB Output is correct
190 Correct 9 ms 7504 KB Output is correct
191 Correct 0 ms 212 KB Output is correct
192 Correct 10 ms 10708 KB Output is correct
193 Correct 1 ms 1364 KB Output is correct
194 Correct 7 ms 6740 KB Output is correct
195 Correct 17 ms 19540 KB Output is correct
196 Correct 25 ms 20564 KB Output is correct
197 Correct 25 ms 13268 KB Output is correct
198 Correct 26 ms 22184 KB Output is correct
199 Correct 13 ms 9940 KB Output is correct
200 Correct 11 ms 9536 KB Output is correct
201 Correct 124 ms 150476 KB Output is correct
202 Correct 133 ms 158340 KB Output is correct
203 Correct 151 ms 141052 KB Output is correct
204 Correct 165 ms 156660 KB Output is correct
205 Correct 136 ms 152780 KB Output is correct
206 Correct 145 ms 174904 KB Output is correct
207 Correct 121 ms 148432 KB Output is correct
208 Correct 195 ms 191692 KB Output is correct
209 Correct 144 ms 145416 KB Output is correct
210 Correct 7 ms 7508 KB Output is correct
211 Correct 0 ms 212 KB Output is correct
212 Correct 9 ms 10708 KB Output is correct
213 Correct 1 ms 1492 KB Output is correct
214 Correct 8 ms 6740 KB Output is correct
215 Correct 20 ms 19552 KB Output is correct
216 Correct 20 ms 20536 KB Output is correct
217 Correct 14 ms 13268 KB Output is correct
218 Correct 28 ms 22292 KB Output is correct
219 Correct 199 ms 182240 KB Output is correct
220 Correct 310 ms 283644 KB Output is correct
221 Correct 85 ms 74700 KB Output is correct
222 Correct 121 ms 111408 KB Output is correct
223 Correct 813 ms 750912 KB Output is correct
224 Correct 1028 ms 953548 KB Output is correct
225 Correct 1035 ms 924716 KB Output is correct
226 Correct 195 ms 176768 KB Output is correct
227 Correct 1084 ms 978300 KB Output is correct
228 Correct 481 ms 398268 KB Output is correct
229 Correct 975 ms 856016 KB Output is correct
230 Correct 756 ms 674304 KB Output is correct
231 Correct 812 ms 592388 KB Output is correct
232 Correct 221 ms 186316 KB Output is correct
233 Correct 834 ms 677668 KB Output is correct
234 Correct 850 ms 651256 KB Output is correct
235 Correct 1064 ms 687132 KB Output is correct
236 Correct 863 ms 737536 KB Output is correct
237 Correct 684 ms 578452 KB Output is correct
238 Correct 210 ms 184304 KB Output is correct
239 Correct 204 ms 182212 KB Output is correct
240 Correct 329 ms 283544 KB Output is correct
241 Correct 85 ms 74572 KB Output is correct
242 Correct 140 ms 111456 KB Output is correct
243 Correct 855 ms 750780 KB Output is correct
244 Correct 1057 ms 953428 KB Output is correct
245 Correct 1055 ms 924680 KB Output is correct
246 Correct 202 ms 176816 KB Output is correct
247 Correct 1139 ms 978144 KB Output is correct
248 Correct 563 ms 398272 KB Output is correct
249 Correct 954 ms 856052 KB Output is correct
250 Correct 831 ms 674228 KB Output is correct
251 Correct 737 ms 592380 KB Output is correct
252 Correct 259 ms 186312 KB Output is correct
253 Correct 773 ms 677700 KB Output is correct
254 Correct 747 ms 651272 KB Output is correct
255 Correct 831 ms 687004 KB Output is correct
256 Correct 919 ms 737612 KB Output is correct
257 Correct 882 ms 578512 KB Output is correct
258 Correct 214 ms 184180 KB Output is correct
259 Correct 211 ms 182248 KB Output is correct
260 Correct 326 ms 283700 KB Output is correct
261 Correct 103 ms 74592 KB Output is correct
262 Correct 128 ms 111404 KB Output is correct
263 Correct 865 ms 750712 KB Output is correct
264 Correct 1061 ms 953428 KB Output is correct
265 Correct 1072 ms 924588 KB Output is correct
266 Correct 212 ms 176844 KB Output is correct
267 Correct 1107 ms 978240 KB Output is correct
268 Correct 488 ms 398268 KB Output is correct
269 Correct 960 ms 855964 KB Output is correct
270 Correct 767 ms 674324 KB Output is correct
271 Correct 738 ms 592408 KB Output is correct
272 Correct 227 ms 186320 KB Output is correct
273 Correct 802 ms 677792 KB Output is correct
274 Correct 783 ms 651308 KB Output is correct
275 Correct 777 ms 687036 KB Output is correct
276 Correct 845 ms 737500 KB Output is correct
277 Correct 786 ms 578448 KB Output is correct
278 Correct 226 ms 184140 KB Output is correct
279 Correct 208 ms 182240 KB Output is correct
280 Correct 398 ms 283600 KB Output is correct
281 Correct 89 ms 74600 KB Output is correct
282 Correct 135 ms 111416 KB Output is correct
283 Correct 895 ms 750776 KB Output is correct
284 Correct 1080 ms 953452 KB Output is correct
285 Correct 1103 ms 924644 KB Output is correct
286 Correct 262 ms 176844 KB Output is correct
287 Correct 1108 ms 978400 KB Output is correct
288 Correct 519 ms 398164 KB Output is correct
289 Correct 1002 ms 856020 KB Output is correct
290 Correct 805 ms 674356 KB Output is correct
291 Correct 785 ms 592388 KB Output is correct
292 Correct 223 ms 186232 KB Output is correct
293 Correct 914 ms 677680 KB Output is correct
294 Correct 829 ms 651244 KB Output is correct
295 Correct 815 ms 687148 KB Output is correct
296 Correct 916 ms 737504 KB Output is correct
297 Correct 733 ms 578364 KB Output is correct
298 Correct 220 ms 184352 KB Output is correct
299 Correct 214 ms 182240 KB Output is correct
300 Correct 343 ms 283652 KB Output is correct
301 Correct 90 ms 74600 KB Output is correct
302 Correct 131 ms 111332 KB Output is correct
303 Correct 914 ms 750788 KB Output is correct
304 Correct 1141 ms 953492 KB Output is correct
305 Correct 1090 ms 924680 KB Output is correct
306 Correct 243 ms 176916 KB Output is correct
307 Correct 1171 ms 978244 KB Output is correct
308 Correct 512 ms 398156 KB Output is correct
309 Correct 1088 ms 856100 KB Output is correct
310 Correct 846 ms 674212 KB Output is correct
311 Correct 884 ms 592300 KB Output is correct
312 Correct 236 ms 186356 KB Output is correct
313 Correct 936 ms 677824 KB Output is correct
314 Correct 772 ms 651340 KB Output is correct
315 Correct 894 ms 687136 KB Output is correct
316 Correct 878 ms 737548 KB Output is correct
317 Correct 737 ms 578344 KB Output is correct
318 Runtime error 933 ms 2097152 KB Execution killed with signal 9
319 Halted 0 ms 0 KB -