#include <bits/stdc++.h>
using namespace std;
int find_maximum_unique(int x, int y, vector<int> a, vector<int> b) {
int n = a.size();
vector<vector<int>> dp(501,vector<int>(501,-1e9));
dp[0][0] = 0;
for(int i = 0; i < n; i++){
for(int j = 500; j >= 0; j--){
for(int k = 500; k >= 0; k--){
if(j + a[i] <= x){
dp[j + a[i]][k] = max(dp[j + a[i]][k],dp[j][k] + 1);
}
if(k + b[i] <= y){
dp[j][k + b[i]] = max(dp[j][k + b[i]],dp[j][k] + 1);
}
}
}
}
int ans = 0;
for(auto v: dp){
for(int i: v){
ans = max(ans,i);
}
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
13 ms |
1292 KB |
Output is correct |
2 |
Correct |
14 ms |
1228 KB |
Output is correct |
3 |
Correct |
14 ms |
1292 KB |
Output is correct |
4 |
Correct |
26 ms |
1228 KB |
Output is correct |
5 |
Correct |
20 ms |
1228 KB |
Output is correct |
6 |
Correct |
12 ms |
1188 KB |
Output is correct |
7 |
Correct |
17 ms |
1288 KB |
Output is correct |
8 |
Correct |
11 ms |
1228 KB |
Output is correct |
9 |
Correct |
16 ms |
1284 KB |
Output is correct |
10 |
Correct |
30 ms |
1296 KB |
Output is correct |
11 |
Correct |
15 ms |
1296 KB |
Output is correct |
12 |
Correct |
13 ms |
1196 KB |
Output is correct |
13 |
Correct |
14 ms |
1228 KB |
Output is correct |
14 |
Correct |
13 ms |
1292 KB |
Output is correct |
15 |
Correct |
27 ms |
1268 KB |
Output is correct |
16 |
Correct |
16 ms |
1228 KB |
Output is correct |
17 |
Correct |
11 ms |
1228 KB |
Output is correct |
18 |
Correct |
20 ms |
1192 KB |
Output is correct |
19 |
Correct |
10 ms |
1228 KB |
Output is correct |
20 |
Correct |
22 ms |
1228 KB |
Output is correct |
21 |
Correct |
11 ms |
1228 KB |
Output is correct |
22 |
Correct |
29 ms |
1228 KB |
Output is correct |
23 |
Correct |
12 ms |
1292 KB |
Output is correct |
24 |
Correct |
6 ms |
1228 KB |
Output is correct |
25 |
Correct |
11 ms |
1296 KB |
Output is correct |
26 |
Correct |
10 ms |
1228 KB |
Output is correct |
27 |
Correct |
10 ms |
1228 KB |
Output is correct |
28 |
Correct |
12 ms |
1228 KB |
Output is correct |
29 |
Correct |
14 ms |
1292 KB |
Output is correct |
30 |
Correct |
10 ms |
1228 KB |
Output is correct |
31 |
Correct |
20 ms |
1188 KB |
Output is correct |
32 |
Correct |
5 ms |
1228 KB |
Output is correct |
33 |
Correct |
11 ms |
1228 KB |
Output is correct |
34 |
Correct |
7 ms |
1184 KB |
Output is correct |
35 |
Correct |
10 ms |
1228 KB |
Output is correct |
36 |
Correct |
13 ms |
1228 KB |
Output is correct |
37 |
Correct |
15 ms |
1228 KB |
Output is correct |
38 |
Correct |
12 ms |
1184 KB |
Output is correct |
39 |
Correct |
17 ms |
1228 KB |
Output is correct |
40 |
Correct |
13 ms |
1228 KB |
Output is correct |
41 |
Correct |
13 ms |
1228 KB |
Output is correct |
42 |
Correct |
14 ms |
1228 KB |
Output is correct |
43 |
Correct |
10 ms |
1188 KB |
Output is correct |
44 |
Correct |
27 ms |
1228 KB |
Output is correct |
45 |
Correct |
20 ms |
1284 KB |
Output is correct |
46 |
Correct |
11 ms |
1288 KB |
Output is correct |
47 |
Correct |
17 ms |
1228 KB |
Output is correct |
48 |
Correct |
13 ms |
1288 KB |
Output is correct |
49 |
Correct |
21 ms |
1228 KB |
Output is correct |
50 |
Correct |
29 ms |
1272 KB |
Output is correct |
51 |
Correct |
12 ms |
1228 KB |
Output is correct |
52 |
Correct |
5 ms |
1228 KB |
Output is correct |
53 |
Correct |
11 ms |
1296 KB |
Output is correct |
54 |
Correct |
10 ms |
1228 KB |
Output is correct |
55 |
Correct |
10 ms |
1228 KB |
Output is correct |
56 |
Correct |
12 ms |
1228 KB |
Output is correct |
57 |
Correct |
13 ms |
1228 KB |
Output is correct |
58 |
Correct |
10 ms |
1292 KB |
Output is correct |
59 |
Correct |
17 ms |
1228 KB |
Output is correct |
60 |
Correct |
14 ms |
1292 KB |
Output is correct |
61 |
Correct |
10 ms |
1228 KB |
Output is correct |
62 |
Correct |
14 ms |
1296 KB |
Output is correct |
63 |
Correct |
18 ms |
1228 KB |
Output is correct |
64 |
Correct |
28 ms |
1228 KB |
Output is correct |
65 |
Correct |
20 ms |
1228 KB |
Output is correct |
66 |
Correct |
11 ms |
1228 KB |
Output is correct |
67 |
Correct |
17 ms |
1296 KB |
Output is correct |
68 |
Correct |
11 ms |
1228 KB |
Output is correct |
69 |
Correct |
22 ms |
1228 KB |
Output is correct |
70 |
Correct |
26 ms |
1228 KB |
Output is correct |
71 |
Correct |
11 ms |
1288 KB |
Output is correct |
72 |
Correct |
7 ms |
1228 KB |
Output is correct |
73 |
Correct |
11 ms |
1228 KB |
Output is correct |
74 |
Correct |
9 ms |
1296 KB |
Output is correct |
75 |
Correct |
10 ms |
1228 KB |
Output is correct |
76 |
Correct |
11 ms |
1228 KB |
Output is correct |
77 |
Correct |
13 ms |
1228 KB |
Output is correct |
78 |
Correct |
10 ms |
1292 KB |
Output is correct |
79 |
Correct |
18 ms |
1292 KB |
Output is correct |
80 |
Correct |
13 ms |
1228 KB |
Output is correct |
81 |
Correct |
14 ms |
1296 KB |
Output is correct |
82 |
Correct |
15 ms |
1184 KB |
Output is correct |
83 |
Correct |
14 ms |
1228 KB |
Output is correct |
84 |
Correct |
29 ms |
1188 KB |
Output is correct |
85 |
Correct |
20 ms |
1288 KB |
Output is correct |
86 |
Correct |
14 ms |
1292 KB |
Output is correct |
87 |
Correct |
20 ms |
1228 KB |
Output is correct |
88 |
Correct |
10 ms |
1288 KB |
Output is correct |
89 |
Correct |
21 ms |
1292 KB |
Output is correct |
90 |
Correct |
25 ms |
1228 KB |
Output is correct |
91 |
Correct |
11 ms |
1184 KB |
Output is correct |
92 |
Correct |
5 ms |
1228 KB |
Output is correct |
93 |
Correct |
13 ms |
1292 KB |
Output is correct |
94 |
Correct |
10 ms |
1356 KB |
Output is correct |
95 |
Correct |
11 ms |
1228 KB |
Output is correct |
96 |
Correct |
15 ms |
1228 KB |
Output is correct |
97 |
Correct |
16 ms |
1228 KB |
Output is correct |
98 |
Correct |
11 ms |
1296 KB |
Output is correct |
99 |
Correct |
18 ms |
1288 KB |
Output is correct |
100 |
Correct |
13 ms |
1292 KB |
Output is correct |
101 |
Correct |
13 ms |
1228 KB |
Output is correct |
102 |
Correct |
15 ms |
1288 KB |
Output is correct |
103 |
Correct |
14 ms |
1292 KB |
Output is correct |
104 |
Correct |
26 ms |
1264 KB |
Output is correct |
105 |
Correct |
20 ms |
1292 KB |
Output is correct |
106 |
Correct |
12 ms |
1292 KB |
Output is correct |
107 |
Correct |
18 ms |
1228 KB |
Output is correct |
108 |
Correct |
14 ms |
1228 KB |
Output is correct |
109 |
Correct |
21 ms |
1228 KB |
Output is correct |
110 |
Correct |
25 ms |
1228 KB |
Output is correct |
111 |
Correct |
11 ms |
1228 KB |
Output is correct |
112 |
Correct |
6 ms |
1228 KB |
Output is correct |
113 |
Correct |
11 ms |
1228 KB |
Output is correct |
114 |
Correct |
7 ms |
1228 KB |
Output is correct |
115 |
Correct |
9 ms |
1240 KB |
Output is correct |
116 |
Correct |
15 ms |
1184 KB |
Output is correct |
117 |
Correct |
16 ms |
1228 KB |
Output is correct |
118 |
Correct |
11 ms |
1288 KB |
Output is correct |
119 |
Correct |
18 ms |
1228 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
13 ms |
1292 KB |
Output is correct |
2 |
Correct |
14 ms |
1228 KB |
Output is correct |
3 |
Correct |
14 ms |
1292 KB |
Output is correct |
4 |
Correct |
26 ms |
1228 KB |
Output is correct |
5 |
Correct |
20 ms |
1228 KB |
Output is correct |
6 |
Correct |
12 ms |
1188 KB |
Output is correct |
7 |
Correct |
17 ms |
1288 KB |
Output is correct |
8 |
Correct |
11 ms |
1228 KB |
Output is correct |
9 |
Correct |
16 ms |
1284 KB |
Output is correct |
10 |
Correct |
30 ms |
1296 KB |
Output is correct |
11 |
Correct |
15 ms |
1296 KB |
Output is correct |
12 |
Correct |
13 ms |
1196 KB |
Output is correct |
13 |
Correct |
14 ms |
1228 KB |
Output is correct |
14 |
Correct |
13 ms |
1292 KB |
Output is correct |
15 |
Correct |
27 ms |
1268 KB |
Output is correct |
16 |
Correct |
16 ms |
1228 KB |
Output is correct |
17 |
Correct |
11 ms |
1228 KB |
Output is correct |
18 |
Correct |
20 ms |
1192 KB |
Output is correct |
19 |
Correct |
10 ms |
1228 KB |
Output is correct |
20 |
Correct |
22 ms |
1228 KB |
Output is correct |
21 |
Correct |
11 ms |
1228 KB |
Output is correct |
22 |
Correct |
29 ms |
1228 KB |
Output is correct |
23 |
Correct |
12 ms |
1292 KB |
Output is correct |
24 |
Correct |
6 ms |
1228 KB |
Output is correct |
25 |
Correct |
11 ms |
1296 KB |
Output is correct |
26 |
Correct |
10 ms |
1228 KB |
Output is correct |
27 |
Correct |
10 ms |
1228 KB |
Output is correct |
28 |
Correct |
12 ms |
1228 KB |
Output is correct |
29 |
Correct |
14 ms |
1292 KB |
Output is correct |
30 |
Correct |
10 ms |
1228 KB |
Output is correct |
31 |
Correct |
20 ms |
1188 KB |
Output is correct |
32 |
Correct |
5 ms |
1228 KB |
Output is correct |
33 |
Correct |
11 ms |
1228 KB |
Output is correct |
34 |
Correct |
7 ms |
1184 KB |
Output is correct |
35 |
Correct |
10 ms |
1228 KB |
Output is correct |
36 |
Correct |
13 ms |
1228 KB |
Output is correct |
37 |
Correct |
15 ms |
1228 KB |
Output is correct |
38 |
Correct |
12 ms |
1184 KB |
Output is correct |
39 |
Correct |
17 ms |
1228 KB |
Output is correct |
40 |
Correct |
13 ms |
1228 KB |
Output is correct |
41 |
Correct |
13 ms |
1228 KB |
Output is correct |
42 |
Correct |
14 ms |
1228 KB |
Output is correct |
43 |
Correct |
10 ms |
1188 KB |
Output is correct |
44 |
Correct |
27 ms |
1228 KB |
Output is correct |
45 |
Correct |
20 ms |
1284 KB |
Output is correct |
46 |
Correct |
11 ms |
1288 KB |
Output is correct |
47 |
Correct |
17 ms |
1228 KB |
Output is correct |
48 |
Correct |
13 ms |
1288 KB |
Output is correct |
49 |
Correct |
21 ms |
1228 KB |
Output is correct |
50 |
Correct |
29 ms |
1272 KB |
Output is correct |
51 |
Correct |
12 ms |
1228 KB |
Output is correct |
52 |
Correct |
5 ms |
1228 KB |
Output is correct |
53 |
Correct |
11 ms |
1296 KB |
Output is correct |
54 |
Correct |
10 ms |
1228 KB |
Output is correct |
55 |
Correct |
10 ms |
1228 KB |
Output is correct |
56 |
Correct |
12 ms |
1228 KB |
Output is correct |
57 |
Correct |
13 ms |
1228 KB |
Output is correct |
58 |
Correct |
10 ms |
1292 KB |
Output is correct |
59 |
Correct |
17 ms |
1228 KB |
Output is correct |
60 |
Correct |
14 ms |
1292 KB |
Output is correct |
61 |
Correct |
10 ms |
1228 KB |
Output is correct |
62 |
Correct |
14 ms |
1296 KB |
Output is correct |
63 |
Correct |
18 ms |
1228 KB |
Output is correct |
64 |
Correct |
28 ms |
1228 KB |
Output is correct |
65 |
Correct |
20 ms |
1228 KB |
Output is correct |
66 |
Correct |
11 ms |
1228 KB |
Output is correct |
67 |
Correct |
17 ms |
1296 KB |
Output is correct |
68 |
Correct |
11 ms |
1228 KB |
Output is correct |
69 |
Correct |
22 ms |
1228 KB |
Output is correct |
70 |
Correct |
26 ms |
1228 KB |
Output is correct |
71 |
Correct |
11 ms |
1288 KB |
Output is correct |
72 |
Correct |
7 ms |
1228 KB |
Output is correct |
73 |
Correct |
11 ms |
1228 KB |
Output is correct |
74 |
Correct |
9 ms |
1296 KB |
Output is correct |
75 |
Correct |
10 ms |
1228 KB |
Output is correct |
76 |
Correct |
11 ms |
1228 KB |
Output is correct |
77 |
Correct |
13 ms |
1228 KB |
Output is correct |
78 |
Correct |
10 ms |
1292 KB |
Output is correct |
79 |
Correct |
18 ms |
1292 KB |
Output is correct |
80 |
Correct |
13 ms |
1228 KB |
Output is correct |
81 |
Correct |
14 ms |
1296 KB |
Output is correct |
82 |
Correct |
15 ms |
1184 KB |
Output is correct |
83 |
Correct |
14 ms |
1228 KB |
Output is correct |
84 |
Correct |
29 ms |
1188 KB |
Output is correct |
85 |
Correct |
20 ms |
1288 KB |
Output is correct |
86 |
Correct |
14 ms |
1292 KB |
Output is correct |
87 |
Correct |
20 ms |
1228 KB |
Output is correct |
88 |
Correct |
10 ms |
1288 KB |
Output is correct |
89 |
Correct |
21 ms |
1292 KB |
Output is correct |
90 |
Correct |
25 ms |
1228 KB |
Output is correct |
91 |
Correct |
11 ms |
1184 KB |
Output is correct |
92 |
Correct |
5 ms |
1228 KB |
Output is correct |
93 |
Correct |
13 ms |
1292 KB |
Output is correct |
94 |
Correct |
10 ms |
1356 KB |
Output is correct |
95 |
Correct |
11 ms |
1228 KB |
Output is correct |
96 |
Correct |
15 ms |
1228 KB |
Output is correct |
97 |
Correct |
16 ms |
1228 KB |
Output is correct |
98 |
Correct |
11 ms |
1296 KB |
Output is correct |
99 |
Correct |
18 ms |
1288 KB |
Output is correct |
100 |
Correct |
13 ms |
1292 KB |
Output is correct |
101 |
Correct |
13 ms |
1228 KB |
Output is correct |
102 |
Correct |
15 ms |
1288 KB |
Output is correct |
103 |
Correct |
14 ms |
1292 KB |
Output is correct |
104 |
Correct |
26 ms |
1264 KB |
Output is correct |
105 |
Correct |
20 ms |
1292 KB |
Output is correct |
106 |
Correct |
12 ms |
1292 KB |
Output is correct |
107 |
Correct |
18 ms |
1228 KB |
Output is correct |
108 |
Correct |
14 ms |
1228 KB |
Output is correct |
109 |
Correct |
21 ms |
1228 KB |
Output is correct |
110 |
Correct |
25 ms |
1228 KB |
Output is correct |
111 |
Correct |
11 ms |
1228 KB |
Output is correct |
112 |
Correct |
6 ms |
1228 KB |
Output is correct |
113 |
Correct |
11 ms |
1228 KB |
Output is correct |
114 |
Correct |
7 ms |
1228 KB |
Output is correct |
115 |
Correct |
9 ms |
1240 KB |
Output is correct |
116 |
Correct |
15 ms |
1184 KB |
Output is correct |
117 |
Correct |
16 ms |
1228 KB |
Output is correct |
118 |
Correct |
11 ms |
1288 KB |
Output is correct |
119 |
Correct |
18 ms |
1228 KB |
Output is correct |
120 |
Correct |
191 ms |
1272 KB |
Output is correct |
121 |
Correct |
273 ms |
1268 KB |
Output is correct |
122 |
Correct |
275 ms |
1228 KB |
Output is correct |
123 |
Correct |
432 ms |
1228 KB |
Output is correct |
124 |
Correct |
445 ms |
1284 KB |
Output is correct |
125 |
Correct |
258 ms |
1228 KB |
Output is correct |
126 |
Correct |
274 ms |
1280 KB |
Output is correct |
127 |
Correct |
266 ms |
1280 KB |
Output is correct |
128 |
Correct |
495 ms |
1272 KB |
Output is correct |
129 |
Correct |
446 ms |
1272 KB |
Output is correct |
130 |
Correct |
149 ms |
1228 KB |
Output is correct |
131 |
Correct |
96 ms |
1228 KB |
Output is correct |
132 |
Correct |
174 ms |
1228 KB |
Output is correct |
133 |
Correct |
219 ms |
1280 KB |
Output is correct |
134 |
Correct |
218 ms |
1276 KB |
Output is correct |
135 |
Correct |
162 ms |
1188 KB |
Output is correct |
136 |
Correct |
212 ms |
1276 KB |
Output is correct |
137 |
Correct |
204 ms |
1228 KB |
Output is correct |
138 |
Correct |
341 ms |
1228 KB |
Output is correct |
139 |
Correct |
294 ms |
1228 KB |
Output is correct |
140 |
Correct |
200 ms |
1280 KB |
Output is correct |
141 |
Correct |
268 ms |
1272 KB |
Output is correct |
142 |
Correct |
277 ms |
1272 KB |
Output is correct |
143 |
Correct |
452 ms |
1272 KB |
Output is correct |
144 |
Correct |
473 ms |
1272 KB |
Output is correct |
145 |
Correct |
287 ms |
1268 KB |
Output is correct |
146 |
Correct |
272 ms |
1288 KB |
Output is correct |
147 |
Correct |
262 ms |
1276 KB |
Output is correct |
148 |
Correct |
500 ms |
1228 KB |
Output is correct |
149 |
Correct |
436 ms |
1268 KB |
Output is correct |
150 |
Correct |
167 ms |
1348 KB |
Output is correct |
151 |
Correct |
93 ms |
1228 KB |
Output is correct |
152 |
Correct |
161 ms |
1228 KB |
Output is correct |
153 |
Correct |
221 ms |
1276 KB |
Output is correct |
154 |
Correct |
239 ms |
1276 KB |
Output is correct |
155 |
Correct |
172 ms |
1188 KB |
Output is correct |
156 |
Correct |
222 ms |
1276 KB |
Output is correct |
157 |
Correct |
205 ms |
1348 KB |
Output is correct |
158 |
Correct |
315 ms |
1276 KB |
Output is correct |
159 |
Correct |
291 ms |
1228 KB |
Output is correct |
160 |
Correct |
194 ms |
1228 KB |
Output is correct |
161 |
Correct |
278 ms |
1276 KB |
Output is correct |
162 |
Correct |
292 ms |
1292 KB |
Output is correct |
163 |
Correct |
433 ms |
1352 KB |
Output is correct |
164 |
Correct |
462 ms |
1276 KB |
Output is correct |
165 |
Correct |
273 ms |
1276 KB |
Output is correct |
166 |
Correct |
279 ms |
1288 KB |
Output is correct |
167 |
Correct |
260 ms |
1276 KB |
Output is correct |
168 |
Correct |
522 ms |
1228 KB |
Output is correct |
169 |
Correct |
434 ms |
1268 KB |
Output is correct |
170 |
Correct |
165 ms |
1272 KB |
Output is correct |
171 |
Correct |
105 ms |
1228 KB |
Output is correct |
172 |
Correct |
158 ms |
1188 KB |
Output is correct |
173 |
Correct |
252 ms |
1228 KB |
Output is correct |
174 |
Correct |
229 ms |
1348 KB |
Output is correct |
175 |
Correct |
186 ms |
1276 KB |
Output is correct |
176 |
Correct |
230 ms |
1288 KB |
Output is correct |
177 |
Correct |
199 ms |
1348 KB |
Output is correct |
178 |
Correct |
343 ms |
1272 KB |
Output is correct |
179 |
Correct |
288 ms |
1228 KB |
Output is correct |
180 |
Correct |
195 ms |
1276 KB |
Output is correct |
181 |
Correct |
261 ms |
1228 KB |
Output is correct |
182 |
Correct |
278 ms |
1228 KB |
Output is correct |
183 |
Correct |
437 ms |
1268 KB |
Output is correct |
184 |
Correct |
453 ms |
1348 KB |
Output is correct |
185 |
Correct |
253 ms |
1348 KB |
Output is correct |
186 |
Correct |
272 ms |
1228 KB |
Output is correct |
187 |
Correct |
260 ms |
1228 KB |
Output is correct |
188 |
Correct |
506 ms |
1228 KB |
Output is correct |
189 |
Correct |
434 ms |
1272 KB |
Output is correct |
190 |
Correct |
153 ms |
1348 KB |
Output is correct |
191 |
Correct |
95 ms |
1228 KB |
Output is correct |
192 |
Correct |
156 ms |
1288 KB |
Output is correct |
193 |
Correct |
229 ms |
1348 KB |
Output is correct |
194 |
Correct |
223 ms |
1228 KB |
Output is correct |
195 |
Correct |
181 ms |
1280 KB |
Output is correct |
196 |
Correct |
209 ms |
1228 KB |
Output is correct |
197 |
Correct |
201 ms |
1288 KB |
Output is correct |
198 |
Correct |
313 ms |
1228 KB |
Output is correct |
199 |
Correct |
286 ms |
1276 KB |
Output is correct |
200 |
Correct |
193 ms |
1276 KB |
Output is correct |
201 |
Correct |
267 ms |
1272 KB |
Output is correct |
202 |
Correct |
274 ms |
1268 KB |
Output is correct |
203 |
Correct |
423 ms |
1228 KB |
Output is correct |
204 |
Correct |
442 ms |
1276 KB |
Output is correct |
205 |
Correct |
255 ms |
1228 KB |
Output is correct |
206 |
Correct |
271 ms |
1284 KB |
Output is correct |
207 |
Correct |
261 ms |
1276 KB |
Output is correct |
208 |
Correct |
509 ms |
1268 KB |
Output is correct |
209 |
Correct |
441 ms |
1228 KB |
Output is correct |
210 |
Correct |
148 ms |
1228 KB |
Output is correct |
211 |
Correct |
92 ms |
1348 KB |
Output is correct |
212 |
Correct |
155 ms |
1228 KB |
Output is correct |
213 |
Correct |
231 ms |
1272 KB |
Output is correct |
214 |
Correct |
227 ms |
1228 KB |
Output is correct |
215 |
Correct |
162 ms |
1228 KB |
Output is correct |
216 |
Correct |
214 ms |
1228 KB |
Output is correct |
217 |
Correct |
199 ms |
1228 KB |
Output is correct |
218 |
Correct |
317 ms |
1268 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
3 ms |
2380 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
3 ms |
2380 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
3 ms |
2448 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
13 ms |
1292 KB |
Output is correct |
2 |
Correct |
14 ms |
1228 KB |
Output is correct |
3 |
Correct |
14 ms |
1292 KB |
Output is correct |
4 |
Correct |
26 ms |
1228 KB |
Output is correct |
5 |
Correct |
20 ms |
1228 KB |
Output is correct |
6 |
Correct |
12 ms |
1188 KB |
Output is correct |
7 |
Correct |
17 ms |
1288 KB |
Output is correct |
8 |
Correct |
11 ms |
1228 KB |
Output is correct |
9 |
Correct |
16 ms |
1284 KB |
Output is correct |
10 |
Correct |
30 ms |
1296 KB |
Output is correct |
11 |
Correct |
15 ms |
1296 KB |
Output is correct |
12 |
Correct |
13 ms |
1196 KB |
Output is correct |
13 |
Correct |
14 ms |
1228 KB |
Output is correct |
14 |
Correct |
13 ms |
1292 KB |
Output is correct |
15 |
Correct |
27 ms |
1268 KB |
Output is correct |
16 |
Correct |
16 ms |
1228 KB |
Output is correct |
17 |
Correct |
11 ms |
1228 KB |
Output is correct |
18 |
Correct |
20 ms |
1192 KB |
Output is correct |
19 |
Correct |
10 ms |
1228 KB |
Output is correct |
20 |
Correct |
22 ms |
1228 KB |
Output is correct |
21 |
Correct |
11 ms |
1228 KB |
Output is correct |
22 |
Correct |
29 ms |
1228 KB |
Output is correct |
23 |
Correct |
12 ms |
1292 KB |
Output is correct |
24 |
Correct |
6 ms |
1228 KB |
Output is correct |
25 |
Correct |
11 ms |
1296 KB |
Output is correct |
26 |
Correct |
10 ms |
1228 KB |
Output is correct |
27 |
Correct |
10 ms |
1228 KB |
Output is correct |
28 |
Correct |
12 ms |
1228 KB |
Output is correct |
29 |
Correct |
14 ms |
1292 KB |
Output is correct |
30 |
Correct |
10 ms |
1228 KB |
Output is correct |
31 |
Correct |
20 ms |
1188 KB |
Output is correct |
32 |
Correct |
5 ms |
1228 KB |
Output is correct |
33 |
Correct |
11 ms |
1228 KB |
Output is correct |
34 |
Correct |
7 ms |
1184 KB |
Output is correct |
35 |
Correct |
10 ms |
1228 KB |
Output is correct |
36 |
Correct |
13 ms |
1228 KB |
Output is correct |
37 |
Correct |
15 ms |
1228 KB |
Output is correct |
38 |
Correct |
12 ms |
1184 KB |
Output is correct |
39 |
Correct |
17 ms |
1228 KB |
Output is correct |
40 |
Correct |
13 ms |
1228 KB |
Output is correct |
41 |
Correct |
13 ms |
1228 KB |
Output is correct |
42 |
Correct |
14 ms |
1228 KB |
Output is correct |
43 |
Correct |
10 ms |
1188 KB |
Output is correct |
44 |
Correct |
27 ms |
1228 KB |
Output is correct |
45 |
Correct |
20 ms |
1284 KB |
Output is correct |
46 |
Correct |
11 ms |
1288 KB |
Output is correct |
47 |
Correct |
17 ms |
1228 KB |
Output is correct |
48 |
Correct |
13 ms |
1288 KB |
Output is correct |
49 |
Correct |
21 ms |
1228 KB |
Output is correct |
50 |
Correct |
29 ms |
1272 KB |
Output is correct |
51 |
Correct |
12 ms |
1228 KB |
Output is correct |
52 |
Correct |
5 ms |
1228 KB |
Output is correct |
53 |
Correct |
11 ms |
1296 KB |
Output is correct |
54 |
Correct |
10 ms |
1228 KB |
Output is correct |
55 |
Correct |
10 ms |
1228 KB |
Output is correct |
56 |
Correct |
12 ms |
1228 KB |
Output is correct |
57 |
Correct |
13 ms |
1228 KB |
Output is correct |
58 |
Correct |
10 ms |
1292 KB |
Output is correct |
59 |
Correct |
17 ms |
1228 KB |
Output is correct |
60 |
Correct |
14 ms |
1292 KB |
Output is correct |
61 |
Correct |
10 ms |
1228 KB |
Output is correct |
62 |
Correct |
14 ms |
1296 KB |
Output is correct |
63 |
Correct |
18 ms |
1228 KB |
Output is correct |
64 |
Correct |
28 ms |
1228 KB |
Output is correct |
65 |
Correct |
20 ms |
1228 KB |
Output is correct |
66 |
Correct |
11 ms |
1228 KB |
Output is correct |
67 |
Correct |
17 ms |
1296 KB |
Output is correct |
68 |
Correct |
11 ms |
1228 KB |
Output is correct |
69 |
Correct |
22 ms |
1228 KB |
Output is correct |
70 |
Correct |
26 ms |
1228 KB |
Output is correct |
71 |
Correct |
11 ms |
1288 KB |
Output is correct |
72 |
Correct |
7 ms |
1228 KB |
Output is correct |
73 |
Correct |
11 ms |
1228 KB |
Output is correct |
74 |
Correct |
9 ms |
1296 KB |
Output is correct |
75 |
Correct |
10 ms |
1228 KB |
Output is correct |
76 |
Correct |
11 ms |
1228 KB |
Output is correct |
77 |
Correct |
13 ms |
1228 KB |
Output is correct |
78 |
Correct |
10 ms |
1292 KB |
Output is correct |
79 |
Correct |
18 ms |
1292 KB |
Output is correct |
80 |
Correct |
13 ms |
1228 KB |
Output is correct |
81 |
Correct |
14 ms |
1296 KB |
Output is correct |
82 |
Correct |
15 ms |
1184 KB |
Output is correct |
83 |
Correct |
14 ms |
1228 KB |
Output is correct |
84 |
Correct |
29 ms |
1188 KB |
Output is correct |
85 |
Correct |
20 ms |
1288 KB |
Output is correct |
86 |
Correct |
14 ms |
1292 KB |
Output is correct |
87 |
Correct |
20 ms |
1228 KB |
Output is correct |
88 |
Correct |
10 ms |
1288 KB |
Output is correct |
89 |
Correct |
21 ms |
1292 KB |
Output is correct |
90 |
Correct |
25 ms |
1228 KB |
Output is correct |
91 |
Correct |
11 ms |
1184 KB |
Output is correct |
92 |
Correct |
5 ms |
1228 KB |
Output is correct |
93 |
Correct |
13 ms |
1292 KB |
Output is correct |
94 |
Correct |
10 ms |
1356 KB |
Output is correct |
95 |
Correct |
11 ms |
1228 KB |
Output is correct |
96 |
Correct |
15 ms |
1228 KB |
Output is correct |
97 |
Correct |
16 ms |
1228 KB |
Output is correct |
98 |
Correct |
11 ms |
1296 KB |
Output is correct |
99 |
Correct |
18 ms |
1288 KB |
Output is correct |
100 |
Correct |
13 ms |
1292 KB |
Output is correct |
101 |
Correct |
13 ms |
1228 KB |
Output is correct |
102 |
Correct |
15 ms |
1288 KB |
Output is correct |
103 |
Correct |
14 ms |
1292 KB |
Output is correct |
104 |
Correct |
26 ms |
1264 KB |
Output is correct |
105 |
Correct |
20 ms |
1292 KB |
Output is correct |
106 |
Correct |
12 ms |
1292 KB |
Output is correct |
107 |
Correct |
18 ms |
1228 KB |
Output is correct |
108 |
Correct |
14 ms |
1228 KB |
Output is correct |
109 |
Correct |
21 ms |
1228 KB |
Output is correct |
110 |
Correct |
25 ms |
1228 KB |
Output is correct |
111 |
Correct |
11 ms |
1228 KB |
Output is correct |
112 |
Correct |
6 ms |
1228 KB |
Output is correct |
113 |
Correct |
11 ms |
1228 KB |
Output is correct |
114 |
Correct |
7 ms |
1228 KB |
Output is correct |
115 |
Correct |
9 ms |
1240 KB |
Output is correct |
116 |
Correct |
15 ms |
1184 KB |
Output is correct |
117 |
Correct |
16 ms |
1228 KB |
Output is correct |
118 |
Correct |
11 ms |
1288 KB |
Output is correct |
119 |
Correct |
18 ms |
1228 KB |
Output is correct |
120 |
Correct |
191 ms |
1272 KB |
Output is correct |
121 |
Correct |
273 ms |
1268 KB |
Output is correct |
122 |
Correct |
275 ms |
1228 KB |
Output is correct |
123 |
Correct |
432 ms |
1228 KB |
Output is correct |
124 |
Correct |
445 ms |
1284 KB |
Output is correct |
125 |
Correct |
258 ms |
1228 KB |
Output is correct |
126 |
Correct |
274 ms |
1280 KB |
Output is correct |
127 |
Correct |
266 ms |
1280 KB |
Output is correct |
128 |
Correct |
495 ms |
1272 KB |
Output is correct |
129 |
Correct |
446 ms |
1272 KB |
Output is correct |
130 |
Correct |
149 ms |
1228 KB |
Output is correct |
131 |
Correct |
96 ms |
1228 KB |
Output is correct |
132 |
Correct |
174 ms |
1228 KB |
Output is correct |
133 |
Correct |
219 ms |
1280 KB |
Output is correct |
134 |
Correct |
218 ms |
1276 KB |
Output is correct |
135 |
Correct |
162 ms |
1188 KB |
Output is correct |
136 |
Correct |
212 ms |
1276 KB |
Output is correct |
137 |
Correct |
204 ms |
1228 KB |
Output is correct |
138 |
Correct |
341 ms |
1228 KB |
Output is correct |
139 |
Correct |
294 ms |
1228 KB |
Output is correct |
140 |
Correct |
200 ms |
1280 KB |
Output is correct |
141 |
Correct |
268 ms |
1272 KB |
Output is correct |
142 |
Correct |
277 ms |
1272 KB |
Output is correct |
143 |
Correct |
452 ms |
1272 KB |
Output is correct |
144 |
Correct |
473 ms |
1272 KB |
Output is correct |
145 |
Correct |
287 ms |
1268 KB |
Output is correct |
146 |
Correct |
272 ms |
1288 KB |
Output is correct |
147 |
Correct |
262 ms |
1276 KB |
Output is correct |
148 |
Correct |
500 ms |
1228 KB |
Output is correct |
149 |
Correct |
436 ms |
1268 KB |
Output is correct |
150 |
Correct |
167 ms |
1348 KB |
Output is correct |
151 |
Correct |
93 ms |
1228 KB |
Output is correct |
152 |
Correct |
161 ms |
1228 KB |
Output is correct |
153 |
Correct |
221 ms |
1276 KB |
Output is correct |
154 |
Correct |
239 ms |
1276 KB |
Output is correct |
155 |
Correct |
172 ms |
1188 KB |
Output is correct |
156 |
Correct |
222 ms |
1276 KB |
Output is correct |
157 |
Correct |
205 ms |
1348 KB |
Output is correct |
158 |
Correct |
315 ms |
1276 KB |
Output is correct |
159 |
Correct |
291 ms |
1228 KB |
Output is correct |
160 |
Correct |
194 ms |
1228 KB |
Output is correct |
161 |
Correct |
278 ms |
1276 KB |
Output is correct |
162 |
Correct |
292 ms |
1292 KB |
Output is correct |
163 |
Correct |
433 ms |
1352 KB |
Output is correct |
164 |
Correct |
462 ms |
1276 KB |
Output is correct |
165 |
Correct |
273 ms |
1276 KB |
Output is correct |
166 |
Correct |
279 ms |
1288 KB |
Output is correct |
167 |
Correct |
260 ms |
1276 KB |
Output is correct |
168 |
Correct |
522 ms |
1228 KB |
Output is correct |
169 |
Correct |
434 ms |
1268 KB |
Output is correct |
170 |
Correct |
165 ms |
1272 KB |
Output is correct |
171 |
Correct |
105 ms |
1228 KB |
Output is correct |
172 |
Correct |
158 ms |
1188 KB |
Output is correct |
173 |
Correct |
252 ms |
1228 KB |
Output is correct |
174 |
Correct |
229 ms |
1348 KB |
Output is correct |
175 |
Correct |
186 ms |
1276 KB |
Output is correct |
176 |
Correct |
230 ms |
1288 KB |
Output is correct |
177 |
Correct |
199 ms |
1348 KB |
Output is correct |
178 |
Correct |
343 ms |
1272 KB |
Output is correct |
179 |
Correct |
288 ms |
1228 KB |
Output is correct |
180 |
Correct |
195 ms |
1276 KB |
Output is correct |
181 |
Correct |
261 ms |
1228 KB |
Output is correct |
182 |
Correct |
278 ms |
1228 KB |
Output is correct |
183 |
Correct |
437 ms |
1268 KB |
Output is correct |
184 |
Correct |
453 ms |
1348 KB |
Output is correct |
185 |
Correct |
253 ms |
1348 KB |
Output is correct |
186 |
Correct |
272 ms |
1228 KB |
Output is correct |
187 |
Correct |
260 ms |
1228 KB |
Output is correct |
188 |
Correct |
506 ms |
1228 KB |
Output is correct |
189 |
Correct |
434 ms |
1272 KB |
Output is correct |
190 |
Correct |
153 ms |
1348 KB |
Output is correct |
191 |
Correct |
95 ms |
1228 KB |
Output is correct |
192 |
Correct |
156 ms |
1288 KB |
Output is correct |
193 |
Correct |
229 ms |
1348 KB |
Output is correct |
194 |
Correct |
223 ms |
1228 KB |
Output is correct |
195 |
Correct |
181 ms |
1280 KB |
Output is correct |
196 |
Correct |
209 ms |
1228 KB |
Output is correct |
197 |
Correct |
201 ms |
1288 KB |
Output is correct |
198 |
Correct |
313 ms |
1228 KB |
Output is correct |
199 |
Correct |
286 ms |
1276 KB |
Output is correct |
200 |
Correct |
193 ms |
1276 KB |
Output is correct |
201 |
Correct |
267 ms |
1272 KB |
Output is correct |
202 |
Correct |
274 ms |
1268 KB |
Output is correct |
203 |
Correct |
423 ms |
1228 KB |
Output is correct |
204 |
Correct |
442 ms |
1276 KB |
Output is correct |
205 |
Correct |
255 ms |
1228 KB |
Output is correct |
206 |
Correct |
271 ms |
1284 KB |
Output is correct |
207 |
Correct |
261 ms |
1276 KB |
Output is correct |
208 |
Correct |
509 ms |
1268 KB |
Output is correct |
209 |
Correct |
441 ms |
1228 KB |
Output is correct |
210 |
Correct |
148 ms |
1228 KB |
Output is correct |
211 |
Correct |
92 ms |
1348 KB |
Output is correct |
212 |
Correct |
155 ms |
1228 KB |
Output is correct |
213 |
Correct |
231 ms |
1272 KB |
Output is correct |
214 |
Correct |
227 ms |
1228 KB |
Output is correct |
215 |
Correct |
162 ms |
1228 KB |
Output is correct |
216 |
Correct |
214 ms |
1228 KB |
Output is correct |
217 |
Correct |
199 ms |
1228 KB |
Output is correct |
218 |
Correct |
317 ms |
1268 KB |
Output is correct |
219 |
Runtime error |
3 ms |
2380 KB |
Execution killed with signal 11 |
220 |
Halted |
0 ms |
0 KB |
- |