답안 #673031

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
673031 2022-12-19T12:31:03 Z Hacv16 Jelly Flavours (IOI20_jelly) C++17
44 / 100
2000 ms 2097152 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();
	
	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<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 8916 KB Output is correct
4 Correct 12 ms 11988 KB Output is correct
5 Correct 9 ms 9620 KB Output is correct
6 Correct 6 ms 7832 KB Output is correct
7 Correct 9 ms 10580 KB Output is correct
8 Correct 6 ms 7636 KB Output is correct
9 Correct 10 ms 9812 KB Output is correct
10 Correct 11 ms 11732 KB Output is correct
11 Correct 2 ms 1364 KB Output is correct
12 Correct 2 ms 2132 KB Output is correct
13 Correct 7 ms 8532 KB Output is correct
14 Correct 8 ms 8916 KB Output is correct
15 Correct 11 ms 11988 KB Output is correct
16 Correct 8 ms 9556 KB Output is correct
17 Correct 6 ms 7764 KB Output is correct
18 Correct 11 ms 10648 KB Output is correct
19 Correct 7 ms 7636 KB Output is correct
20 Correct 8 ms 9908 KB Output is correct
21 Correct 2 ms 2132 KB Output is correct
22 Correct 11 ms 11732 KB Output is correct
23 Correct 2 ms 2132 KB Output is correct
24 Correct 0 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 2 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 2 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 2004 KB Output is correct
39 Correct 2 ms 1620 KB Output is correct
40 Correct 2 ms 1364 KB Output is correct
41 Correct 2 ms 2132 KB Output is correct
42 Correct 7 ms 8460 KB Output is correct
43 Correct 7 ms 8952 KB Output is correct
44 Correct 11 ms 12052 KB Output is correct
45 Correct 9 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 11 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 2 ms 1620 KB Output is correct
54 Correct 1 ms 1492 KB Output is correct
55 Correct 2 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 8 ms 8916 KB Output is correct
64 Correct 11 ms 11988 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 7 ms 7764 KB Output is correct
67 Correct 9 ms 10564 KB Output is correct
68 Correct 6 ms 7636 KB Output is correct
69 Correct 10 ms 9812 KB Output is correct
70 Correct 10 ms 11648 KB Output is correct
71 Correct 2 ms 2144 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 1 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 8856 KB Output is correct
84 Correct 11 ms 11988 KB Output is correct
85 Correct 11 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 11 ms 9812 KB Output is correct
90 Correct 11 ms 11604 KB Output is correct
91 Correct 2 ms 2132 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 1 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 2 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 10 ms 8916 KB Output is correct
104 Correct 14 ms 11988 KB Output is correct
105 Correct 8 ms 9556 KB Output is correct
106 Correct 6 ms 7764 KB Output is correct
107 Correct 9 ms 10580 KB Output is correct
108 Correct 6 ms 7636 KB Output is correct
109 Correct 12 ms 9940 KB Output is correct
110 Correct 10 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 2008 KB Output is correct
119 Correct 2 ms 1620 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 8916 KB Output is correct
4 Correct 12 ms 11988 KB Output is correct
5 Correct 9 ms 9620 KB Output is correct
6 Correct 6 ms 7832 KB Output is correct
7 Correct 9 ms 10580 KB Output is correct
8 Correct 6 ms 7636 KB Output is correct
9 Correct 10 ms 9812 KB Output is correct
10 Correct 11 ms 11732 KB Output is correct
11 Correct 2 ms 1364 KB Output is correct
12 Correct 2 ms 2132 KB Output is correct
13 Correct 7 ms 8532 KB Output is correct
14 Correct 8 ms 8916 KB Output is correct
15 Correct 11 ms 11988 KB Output is correct
16 Correct 8 ms 9556 KB Output is correct
17 Correct 6 ms 7764 KB Output is correct
18 Correct 11 ms 10648 KB Output is correct
19 Correct 7 ms 7636 KB Output is correct
20 Correct 8 ms 9908 KB Output is correct
21 Correct 2 ms 2132 KB Output is correct
22 Correct 11 ms 11732 KB Output is correct
23 Correct 2 ms 2132 KB Output is correct
24 Correct 0 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 2 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 2 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 2004 KB Output is correct
39 Correct 2 ms 1620 KB Output is correct
40 Correct 2 ms 1364 KB Output is correct
41 Correct 2 ms 2132 KB Output is correct
42 Correct 7 ms 8460 KB Output is correct
43 Correct 7 ms 8952 KB Output is correct
44 Correct 11 ms 12052 KB Output is correct
45 Correct 9 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 11 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 2 ms 1620 KB Output is correct
54 Correct 1 ms 1492 KB Output is correct
55 Correct 2 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 8 ms 8916 KB Output is correct
64 Correct 11 ms 11988 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 7 ms 7764 KB Output is correct
67 Correct 9 ms 10564 KB Output is correct
68 Correct 6 ms 7636 KB Output is correct
69 Correct 10 ms 9812 KB Output is correct
70 Correct 10 ms 11648 KB Output is correct
71 Correct 2 ms 2144 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 1 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 8856 KB Output is correct
84 Correct 11 ms 11988 KB Output is correct
85 Correct 11 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 11 ms 9812 KB Output is correct
90 Correct 11 ms 11604 KB Output is correct
91 Correct 2 ms 2132 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 1 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 2 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 10 ms 8916 KB Output is correct
104 Correct 14 ms 11988 KB Output is correct
105 Correct 8 ms 9556 KB Output is correct
106 Correct 6 ms 7764 KB Output is correct
107 Correct 9 ms 10580 KB Output is correct
108 Correct 6 ms 7636 KB Output is correct
109 Correct 12 ms 9940 KB Output is correct
110 Correct 10 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 2008 KB Output is correct
119 Correct 2 ms 1620 KB Output is correct
120 Correct 11 ms 9560 KB Output is correct
121 Correct 126 ms 150684 KB Output is correct
122 Correct 133 ms 158424 KB Output is correct
123 Correct 151 ms 141048 KB Output is correct
124 Correct 162 ms 156620 KB Output is correct
125 Correct 124 ms 152860 KB Output is correct
126 Correct 142 ms 174896 KB Output is correct
127 Correct 135 ms 148384 KB Output is correct
128 Correct 190 ms 191756 KB Output is correct
129 Correct 184 ms 145364 KB Output is correct
130 Correct 7 ms 7508 KB Output is correct
131 Correct 0 ms 212 KB Output is correct
132 Correct 10 ms 10816 KB Output is correct
133 Correct 1 ms 1492 KB Output is correct
134 Correct 7 ms 6740 KB Output is correct
135 Correct 17 ms 19540 KB Output is correct
136 Correct 21 ms 20500 KB Output is correct
137 Correct 13 ms 13388 KB Output is correct
138 Correct 34 ms 22228 KB Output is correct
139 Correct 12 ms 9908 KB Output is correct
140 Correct 10 ms 9556 KB Output is correct
141 Correct 133 ms 150628 KB Output is correct
142 Correct 129 ms 158348 KB Output is correct
143 Correct 149 ms 141132 KB Output is correct
144 Correct 156 ms 156612 KB Output is correct
145 Correct 129 ms 152956 KB Output is correct
146 Correct 143 ms 174928 KB Output is correct
147 Correct 146 ms 148392 KB Output is correct
148 Correct 198 ms 191744 KB Output is correct
149 Correct 142 ms 145416 KB Output is correct
150 Correct 6 ms 7508 KB Output is correct
151 Correct 0 ms 212 KB Output is correct
152 Correct 10 ms 10708 KB Output is correct
153 Correct 2 ms 1492 KB Output is correct
154 Correct 6 ms 6740 KB Output is correct
155 Correct 17 ms 19540 KB Output is correct
156 Correct 21 ms 20508 KB Output is correct
157 Correct 14 ms 13268 KB Output is correct
158 Correct 26 ms 22280 KB Output is correct
159 Correct 12 ms 9940 KB Output is correct
160 Correct 10 ms 9524 KB Output is correct
161 Correct 127 ms 150560 KB Output is correct
162 Correct 139 ms 158356 KB Output is correct
163 Correct 147 ms 140928 KB Output is correct
164 Correct 164 ms 156676 KB Output is correct
165 Correct 127 ms 152804 KB Output is correct
166 Correct 148 ms 174948 KB Output is correct
167 Correct 130 ms 148428 KB Output is correct
168 Correct 201 ms 191728 KB Output is correct
169 Correct 151 ms 145416 KB Output is correct
170 Correct 9 ms 7508 KB Output is correct
171 Correct 0 ms 212 KB Output is correct
172 Correct 9 ms 10708 KB Output is correct
173 Correct 2 ms 1388 KB Output is correct
174 Correct 7 ms 6740 KB Output is correct
175 Correct 17 ms 19540 KB Output is correct
176 Correct 21 ms 20596 KB Output is correct
177 Correct 15 ms 13384 KB Output is correct
178 Correct 28 ms 22356 KB Output is correct
179 Correct 13 ms 10068 KB Output is correct
180 Correct 10 ms 9556 KB Output is correct
181 Correct 128 ms 150596 KB Output is correct
182 Correct 131 ms 158284 KB Output is correct
183 Correct 145 ms 141092 KB Output is correct
184 Correct 155 ms 156652 KB Output is correct
185 Correct 127 ms 152820 KB Output is correct
186 Correct 143 ms 174896 KB Output is correct
187 Correct 121 ms 148476 KB Output is correct
188 Correct 198 ms 191764 KB Output is correct
189 Correct 148 ms 145336 KB Output is correct
190 Correct 7 ms 7584 KB Output is correct
191 Correct 0 ms 212 KB Output is correct
192 Correct 11 ms 10836 KB Output is correct
193 Correct 1 ms 1492 KB Output is correct
194 Correct 7 ms 6740 KB Output is correct
195 Correct 22 ms 19532 KB Output is correct
196 Correct 21 ms 20512 KB Output is correct
197 Correct 13 ms 13284 KB Output is correct
198 Correct 26 ms 22188 KB Output is correct
199 Correct 11 ms 9940 KB Output is correct
200 Correct 11 ms 9556 KB Output is correct
201 Correct 126 ms 150516 KB Output is correct
202 Correct 134 ms 158304 KB Output is correct
203 Correct 142 ms 141004 KB Output is correct
204 Correct 158 ms 156572 KB Output is correct
205 Correct 125 ms 152780 KB Output is correct
206 Correct 146 ms 174908 KB Output is correct
207 Correct 124 ms 148344 KB Output is correct
208 Correct 220 ms 191684 KB Output is correct
209 Correct 153 ms 145420 KB Output is correct
210 Correct 7 ms 7508 KB Output is correct
211 Correct 1 ms 212 KB Output is correct
212 Correct 14 ms 10776 KB Output is correct
213 Correct 2 ms 1492 KB Output is correct
214 Correct 8 ms 6696 KB Output is correct
215 Correct 21 ms 19656 KB Output is correct
216 Correct 20 ms 20564 KB Output is correct
217 Correct 14 ms 13276 KB Output is correct
218 Correct 27 ms 22228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 204 ms 182188 KB Output is correct
2 Correct 371 ms 283636 KB Output is correct
3 Correct 82 ms 74536 KB Output is correct
4 Correct 129 ms 111400 KB Output is correct
5 Correct 940 ms 750792 KB Output is correct
6 Correct 1243 ms 953388 KB Output is correct
7 Correct 1220 ms 924876 KB Output is correct
8 Correct 218 ms 176856 KB Output is correct
9 Correct 1130 ms 978172 KB Output is correct
10 Correct 468 ms 398264 KB Output is correct
11 Correct 934 ms 856152 KB Output is correct
12 Correct 801 ms 674192 KB Output is correct
13 Correct 717 ms 592480 KB Output is correct
14 Correct 232 ms 186348 KB Output is correct
15 Correct 741 ms 677712 KB Output is correct
16 Correct 714 ms 651260 KB Output is correct
17 Correct 809 ms 687016 KB Output is correct
18 Correct 869 ms 737452 KB Output is correct
19 Correct 673 ms 578444 KB Output is correct
20 Correct 216 ms 184172 KB Output is correct
21 Correct 215 ms 182292 KB Output is correct
22 Correct 318 ms 283632 KB Output is correct
23 Correct 87 ms 74564 KB Output is correct
24 Correct 126 ms 111512 KB Output is correct
25 Correct 861 ms 750708 KB Output is correct
26 Correct 1087 ms 953528 KB Output is correct
27 Correct 1014 ms 924616 KB Output is correct
28 Correct 195 ms 176844 KB Output is correct
29 Correct 1065 ms 978184 KB Output is correct
30 Correct 479 ms 398276 KB Output is correct
31 Correct 934 ms 856084 KB Output is correct
32 Correct 765 ms 674296 KB Output is correct
33 Correct 724 ms 592380 KB Output is correct
34 Correct 224 ms 186336 KB Output is correct
35 Correct 815 ms 677688 KB Output is correct
36 Correct 719 ms 651248 KB Output is correct
37 Correct 757 ms 687028 KB Output is correct
38 Correct 796 ms 737484 KB Output is correct
39 Correct 670 ms 578444 KB Output is correct
40 Correct 202 ms 184156 KB Output is correct
41 Correct 204 ms 182160 KB Output is correct
42 Correct 309 ms 283540 KB Output is correct
43 Correct 86 ms 74480 KB Output is correct
44 Correct 130 ms 111352 KB Output is correct
45 Correct 844 ms 750940 KB Output is correct
46 Correct 1035 ms 953460 KB Output is correct
47 Correct 1016 ms 924736 KB Output is correct
48 Correct 195 ms 176824 KB Output is correct
49 Correct 1044 ms 978168 KB Output is correct
50 Correct 470 ms 398172 KB Output is correct
51 Correct 940 ms 856036 KB Output is correct
52 Correct 739 ms 674256 KB Output is correct
53 Correct 714 ms 592356 KB Output is correct
54 Correct 205 ms 186300 KB Output is correct
55 Correct 744 ms 677752 KB Output is correct
56 Correct 740 ms 651368 KB Output is correct
57 Correct 752 ms 687036 KB Output is correct
58 Correct 822 ms 737600 KB Output is correct
59 Correct 664 ms 578708 KB Output is correct
60 Correct 199 ms 184168 KB Output is correct
61 Correct 202 ms 182296 KB Output is correct
62 Correct 307 ms 283684 KB Output is correct
63 Correct 88 ms 74588 KB Output is correct
64 Correct 127 ms 111412 KB Output is correct
65 Correct 823 ms 750724 KB Output is correct
66 Correct 1040 ms 953500 KB Output is correct
67 Correct 990 ms 924692 KB Output is correct
68 Correct 194 ms 176828 KB Output is correct
69 Correct 1227 ms 978132 KB Output is correct
70 Correct 470 ms 398316 KB Output is correct
71 Correct 930 ms 856140 KB Output is correct
72 Correct 757 ms 674392 KB Output is correct
73 Correct 722 ms 592332 KB Output is correct
74 Correct 205 ms 186340 KB Output is correct
75 Correct 752 ms 677736 KB Output is correct
76 Correct 720 ms 651268 KB Output is correct
77 Correct 753 ms 686984 KB Output is correct
78 Correct 822 ms 737448 KB Output is correct
79 Correct 684 ms 578468 KB Output is correct
80 Correct 210 ms 184088 KB Output is correct
81 Correct 199 ms 182228 KB Output is correct
82 Correct 308 ms 283524 KB Output is correct
83 Correct 85 ms 74516 KB Output is correct
84 Correct 125 ms 111308 KB Output is correct
85 Correct 817 ms 750864 KB Output is correct
86 Correct 1077 ms 953488 KB Output is correct
87 Correct 1053 ms 924688 KB Output is correct
88 Correct 196 ms 176760 KB Output is correct
89 Correct 1050 ms 978128 KB Output is correct
90 Correct 477 ms 398320 KB Output is correct
91 Correct 998 ms 856052 KB Output is correct
92 Correct 782 ms 674276 KB Output is correct
93 Correct 713 ms 592468 KB Output is correct
94 Correct 202 ms 186340 KB Output is correct
95 Correct 820 ms 677744 KB Output is correct
96 Correct 785 ms 651244 KB Output is correct
97 Correct 752 ms 686924 KB Output is correct
98 Correct 824 ms 737516 KB Output is correct
99 Correct 669 ms 578448 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Runtime error 859 ms 2097152 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1188 ms 1112424 KB Output is correct
2 Execution timed out 2137 ms 1980488 KB Time limit exceeded
3 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 8916 KB Output is correct
4 Correct 12 ms 11988 KB Output is correct
5 Correct 9 ms 9620 KB Output is correct
6 Correct 6 ms 7832 KB Output is correct
7 Correct 9 ms 10580 KB Output is correct
8 Correct 6 ms 7636 KB Output is correct
9 Correct 10 ms 9812 KB Output is correct
10 Correct 11 ms 11732 KB Output is correct
11 Correct 2 ms 1364 KB Output is correct
12 Correct 2 ms 2132 KB Output is correct
13 Correct 7 ms 8532 KB Output is correct
14 Correct 8 ms 8916 KB Output is correct
15 Correct 11 ms 11988 KB Output is correct
16 Correct 8 ms 9556 KB Output is correct
17 Correct 6 ms 7764 KB Output is correct
18 Correct 11 ms 10648 KB Output is correct
19 Correct 7 ms 7636 KB Output is correct
20 Correct 8 ms 9908 KB Output is correct
21 Correct 2 ms 2132 KB Output is correct
22 Correct 11 ms 11732 KB Output is correct
23 Correct 2 ms 2132 KB Output is correct
24 Correct 0 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 2 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 2 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 2004 KB Output is correct
39 Correct 2 ms 1620 KB Output is correct
40 Correct 2 ms 1364 KB Output is correct
41 Correct 2 ms 2132 KB Output is correct
42 Correct 7 ms 8460 KB Output is correct
43 Correct 7 ms 8952 KB Output is correct
44 Correct 11 ms 12052 KB Output is correct
45 Correct 9 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 11 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 2 ms 1620 KB Output is correct
54 Correct 1 ms 1492 KB Output is correct
55 Correct 2 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 8 ms 8916 KB Output is correct
64 Correct 11 ms 11988 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 7 ms 7764 KB Output is correct
67 Correct 9 ms 10564 KB Output is correct
68 Correct 6 ms 7636 KB Output is correct
69 Correct 10 ms 9812 KB Output is correct
70 Correct 10 ms 11648 KB Output is correct
71 Correct 2 ms 2144 KB Output is correct
72 Correct 0 ms 212 KB Output is correct
73 Correct 1 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 8856 KB Output is correct
84 Correct 11 ms 11988 KB Output is correct
85 Correct 11 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 11 ms 9812 KB Output is correct
90 Correct 11 ms 11604 KB Output is correct
91 Correct 2 ms 2132 KB Output is correct
92 Correct 0 ms 212 KB Output is correct
93 Correct 1 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 2 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 10 ms 8916 KB Output is correct
104 Correct 14 ms 11988 KB Output is correct
105 Correct 8 ms 9556 KB Output is correct
106 Correct 6 ms 7764 KB Output is correct
107 Correct 9 ms 10580 KB Output is correct
108 Correct 6 ms 7636 KB Output is correct
109 Correct 12 ms 9940 KB Output is correct
110 Correct 10 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 2008 KB Output is correct
119 Correct 2 ms 1620 KB Output is correct
120 Correct 11 ms 9560 KB Output is correct
121 Correct 126 ms 150684 KB Output is correct
122 Correct 133 ms 158424 KB Output is correct
123 Correct 151 ms 141048 KB Output is correct
124 Correct 162 ms 156620 KB Output is correct
125 Correct 124 ms 152860 KB Output is correct
126 Correct 142 ms 174896 KB Output is correct
127 Correct 135 ms 148384 KB Output is correct
128 Correct 190 ms 191756 KB Output is correct
129 Correct 184 ms 145364 KB Output is correct
130 Correct 7 ms 7508 KB Output is correct
131 Correct 0 ms 212 KB Output is correct
132 Correct 10 ms 10816 KB Output is correct
133 Correct 1 ms 1492 KB Output is correct
134 Correct 7 ms 6740 KB Output is correct
135 Correct 17 ms 19540 KB Output is correct
136 Correct 21 ms 20500 KB Output is correct
137 Correct 13 ms 13388 KB Output is correct
138 Correct 34 ms 22228 KB Output is correct
139 Correct 12 ms 9908 KB Output is correct
140 Correct 10 ms 9556 KB Output is correct
141 Correct 133 ms 150628 KB Output is correct
142 Correct 129 ms 158348 KB Output is correct
143 Correct 149 ms 141132 KB Output is correct
144 Correct 156 ms 156612 KB Output is correct
145 Correct 129 ms 152956 KB Output is correct
146 Correct 143 ms 174928 KB Output is correct
147 Correct 146 ms 148392 KB Output is correct
148 Correct 198 ms 191744 KB Output is correct
149 Correct 142 ms 145416 KB Output is correct
150 Correct 6 ms 7508 KB Output is correct
151 Correct 0 ms 212 KB Output is correct
152 Correct 10 ms 10708 KB Output is correct
153 Correct 2 ms 1492 KB Output is correct
154 Correct 6 ms 6740 KB Output is correct
155 Correct 17 ms 19540 KB Output is correct
156 Correct 21 ms 20508 KB Output is correct
157 Correct 14 ms 13268 KB Output is correct
158 Correct 26 ms 22280 KB Output is correct
159 Correct 12 ms 9940 KB Output is correct
160 Correct 10 ms 9524 KB Output is correct
161 Correct 127 ms 150560 KB Output is correct
162 Correct 139 ms 158356 KB Output is correct
163 Correct 147 ms 140928 KB Output is correct
164 Correct 164 ms 156676 KB Output is correct
165 Correct 127 ms 152804 KB Output is correct
166 Correct 148 ms 174948 KB Output is correct
167 Correct 130 ms 148428 KB Output is correct
168 Correct 201 ms 191728 KB Output is correct
169 Correct 151 ms 145416 KB Output is correct
170 Correct 9 ms 7508 KB Output is correct
171 Correct 0 ms 212 KB Output is correct
172 Correct 9 ms 10708 KB Output is correct
173 Correct 2 ms 1388 KB Output is correct
174 Correct 7 ms 6740 KB Output is correct
175 Correct 17 ms 19540 KB Output is correct
176 Correct 21 ms 20596 KB Output is correct
177 Correct 15 ms 13384 KB Output is correct
178 Correct 28 ms 22356 KB Output is correct
179 Correct 13 ms 10068 KB Output is correct
180 Correct 10 ms 9556 KB Output is correct
181 Correct 128 ms 150596 KB Output is correct
182 Correct 131 ms 158284 KB Output is correct
183 Correct 145 ms 141092 KB Output is correct
184 Correct 155 ms 156652 KB Output is correct
185 Correct 127 ms 152820 KB Output is correct
186 Correct 143 ms 174896 KB Output is correct
187 Correct 121 ms 148476 KB Output is correct
188 Correct 198 ms 191764 KB Output is correct
189 Correct 148 ms 145336 KB Output is correct
190 Correct 7 ms 7584 KB Output is correct
191 Correct 0 ms 212 KB Output is correct
192 Correct 11 ms 10836 KB Output is correct
193 Correct 1 ms 1492 KB Output is correct
194 Correct 7 ms 6740 KB Output is correct
195 Correct 22 ms 19532 KB Output is correct
196 Correct 21 ms 20512 KB Output is correct
197 Correct 13 ms 13284 KB Output is correct
198 Correct 26 ms 22188 KB Output is correct
199 Correct 11 ms 9940 KB Output is correct
200 Correct 11 ms 9556 KB Output is correct
201 Correct 126 ms 150516 KB Output is correct
202 Correct 134 ms 158304 KB Output is correct
203 Correct 142 ms 141004 KB Output is correct
204 Correct 158 ms 156572 KB Output is correct
205 Correct 125 ms 152780 KB Output is correct
206 Correct 146 ms 174908 KB Output is correct
207 Correct 124 ms 148344 KB Output is correct
208 Correct 220 ms 191684 KB Output is correct
209 Correct 153 ms 145420 KB Output is correct
210 Correct 7 ms 7508 KB Output is correct
211 Correct 1 ms 212 KB Output is correct
212 Correct 14 ms 10776 KB Output is correct
213 Correct 2 ms 1492 KB Output is correct
214 Correct 8 ms 6696 KB Output is correct
215 Correct 21 ms 19656 KB Output is correct
216 Correct 20 ms 20564 KB Output is correct
217 Correct 14 ms 13276 KB Output is correct
218 Correct 27 ms 22228 KB Output is correct
219 Correct 204 ms 182188 KB Output is correct
220 Correct 371 ms 283636 KB Output is correct
221 Correct 82 ms 74536 KB Output is correct
222 Correct 129 ms 111400 KB Output is correct
223 Correct 940 ms 750792 KB Output is correct
224 Correct 1243 ms 953388 KB Output is correct
225 Correct 1220 ms 924876 KB Output is correct
226 Correct 218 ms 176856 KB Output is correct
227 Correct 1130 ms 978172 KB Output is correct
228 Correct 468 ms 398264 KB Output is correct
229 Correct 934 ms 856152 KB Output is correct
230 Correct 801 ms 674192 KB Output is correct
231 Correct 717 ms 592480 KB Output is correct
232 Correct 232 ms 186348 KB Output is correct
233 Correct 741 ms 677712 KB Output is correct
234 Correct 714 ms 651260 KB Output is correct
235 Correct 809 ms 687016 KB Output is correct
236 Correct 869 ms 737452 KB Output is correct
237 Correct 673 ms 578444 KB Output is correct
238 Correct 216 ms 184172 KB Output is correct
239 Correct 215 ms 182292 KB Output is correct
240 Correct 318 ms 283632 KB Output is correct
241 Correct 87 ms 74564 KB Output is correct
242 Correct 126 ms 111512 KB Output is correct
243 Correct 861 ms 750708 KB Output is correct
244 Correct 1087 ms 953528 KB Output is correct
245 Correct 1014 ms 924616 KB Output is correct
246 Correct 195 ms 176844 KB Output is correct
247 Correct 1065 ms 978184 KB Output is correct
248 Correct 479 ms 398276 KB Output is correct
249 Correct 934 ms 856084 KB Output is correct
250 Correct 765 ms 674296 KB Output is correct
251 Correct 724 ms 592380 KB Output is correct
252 Correct 224 ms 186336 KB Output is correct
253 Correct 815 ms 677688 KB Output is correct
254 Correct 719 ms 651248 KB Output is correct
255 Correct 757 ms 687028 KB Output is correct
256 Correct 796 ms 737484 KB Output is correct
257 Correct 670 ms 578444 KB Output is correct
258 Correct 202 ms 184156 KB Output is correct
259 Correct 204 ms 182160 KB Output is correct
260 Correct 309 ms 283540 KB Output is correct
261 Correct 86 ms 74480 KB Output is correct
262 Correct 130 ms 111352 KB Output is correct
263 Correct 844 ms 750940 KB Output is correct
264 Correct 1035 ms 953460 KB Output is correct
265 Correct 1016 ms 924736 KB Output is correct
266 Correct 195 ms 176824 KB Output is correct
267 Correct 1044 ms 978168 KB Output is correct
268 Correct 470 ms 398172 KB Output is correct
269 Correct 940 ms 856036 KB Output is correct
270 Correct 739 ms 674256 KB Output is correct
271 Correct 714 ms 592356 KB Output is correct
272 Correct 205 ms 186300 KB Output is correct
273 Correct 744 ms 677752 KB Output is correct
274 Correct 740 ms 651368 KB Output is correct
275 Correct 752 ms 687036 KB Output is correct
276 Correct 822 ms 737600 KB Output is correct
277 Correct 664 ms 578708 KB Output is correct
278 Correct 199 ms 184168 KB Output is correct
279 Correct 202 ms 182296 KB Output is correct
280 Correct 307 ms 283684 KB Output is correct
281 Correct 88 ms 74588 KB Output is correct
282 Correct 127 ms 111412 KB Output is correct
283 Correct 823 ms 750724 KB Output is correct
284 Correct 1040 ms 953500 KB Output is correct
285 Correct 990 ms 924692 KB Output is correct
286 Correct 194 ms 176828 KB Output is correct
287 Correct 1227 ms 978132 KB Output is correct
288 Correct 470 ms 398316 KB Output is correct
289 Correct 930 ms 856140 KB Output is correct
290 Correct 757 ms 674392 KB Output is correct
291 Correct 722 ms 592332 KB Output is correct
292 Correct 205 ms 186340 KB Output is correct
293 Correct 752 ms 677736 KB Output is correct
294 Correct 720 ms 651268 KB Output is correct
295 Correct 753 ms 686984 KB Output is correct
296 Correct 822 ms 737448 KB Output is correct
297 Correct 684 ms 578468 KB Output is correct
298 Correct 210 ms 184088 KB Output is correct
299 Correct 199 ms 182228 KB Output is correct
300 Correct 308 ms 283524 KB Output is correct
301 Correct 85 ms 74516 KB Output is correct
302 Correct 125 ms 111308 KB Output is correct
303 Correct 817 ms 750864 KB Output is correct
304 Correct 1077 ms 953488 KB Output is correct
305 Correct 1053 ms 924688 KB Output is correct
306 Correct 196 ms 176760 KB Output is correct
307 Correct 1050 ms 978128 KB Output is correct
308 Correct 477 ms 398320 KB Output is correct
309 Correct 998 ms 856052 KB Output is correct
310 Correct 782 ms 674276 KB Output is correct
311 Correct 713 ms 592468 KB Output is correct
312 Correct 202 ms 186340 KB Output is correct
313 Correct 820 ms 677744 KB Output is correct
314 Correct 785 ms 651244 KB Output is correct
315 Correct 752 ms 686924 KB Output is correct
316 Correct 824 ms 737516 KB Output is correct
317 Correct 669 ms 578448 KB Output is correct
318 Runtime error 859 ms 2097152 KB Execution killed with signal 9
319 Halted 0 ms 0 KB -