# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
672911 |
2022-12-19T01:44:59 Z |
mmk |
Jelly Flavours (IOI20_jelly) |
C++14 |
|
876 ms |
1046604 KB |
#include "jelly.h"
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 510;
const int INF = 0x3f3f3f3f;
int dp[MAXN][MAXN][MAXN];
int n, a[MAXN], b[MAXN];
int calc(int i, int x, int y) {
if (i == 0) return 0;
if (dp[i][x][y] != -1) return dp[i][x][y];
int uga = 0, buga = 0, duga = 0;
if (x >= a[i])
uga = calc(i - 1, x - a[i], y) + 1;
if (y >= b[i])
buga = calc(i - 1, x, y - b[i]) + 1;
duga = calc(i - 1, x, y);
return dp[i][x][y] = max(uga, max(buga, duga));
}
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];
}
memset(dp, -1, sizeof(dp));
if(_y == 0)
{
sort(a+1,a+(n+1));
int aux = _x;
int resp = 0;
int i = 1;
while(aux > 0)
{
if(aux >= a[i])
{
resp ++;
aux -= a[i];
i++;
}
else
break;
}
return resp;
}
return calc(n, _x, _y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
195 ms |
519444 KB |
Output is correct |
2 |
Correct |
204 ms |
519476 KB |
Output is correct |
3 |
Correct |
186 ms |
519504 KB |
Output is correct |
4 |
Correct |
189 ms |
519344 KB |
Output is correct |
5 |
Correct |
183 ms |
519372 KB |
Output is correct |
6 |
Correct |
200 ms |
519408 KB |
Output is correct |
7 |
Correct |
187 ms |
519452 KB |
Output is correct |
8 |
Correct |
193 ms |
519472 KB |
Output is correct |
9 |
Correct |
191 ms |
519456 KB |
Output is correct |
10 |
Correct |
196 ms |
519468 KB |
Output is correct |
11 |
Correct |
219 ms |
519460 KB |
Output is correct |
12 |
Correct |
190 ms |
519468 KB |
Output is correct |
13 |
Correct |
195 ms |
519344 KB |
Output is correct |
14 |
Correct |
216 ms |
519352 KB |
Output is correct |
15 |
Correct |
187 ms |
519368 KB |
Output is correct |
16 |
Correct |
190 ms |
519456 KB |
Output is correct |
17 |
Correct |
190 ms |
519472 KB |
Output is correct |
18 |
Correct |
192 ms |
519436 KB |
Output is correct |
19 |
Correct |
186 ms |
519444 KB |
Output is correct |
20 |
Correct |
190 ms |
519436 KB |
Output is correct |
21 |
Correct |
185 ms |
519424 KB |
Output is correct |
22 |
Correct |
187 ms |
519488 KB |
Output is correct |
23 |
Correct |
191 ms |
519472 KB |
Output is correct |
24 |
Correct |
181 ms |
519408 KB |
Output is correct |
25 |
Correct |
205 ms |
519372 KB |
Output is correct |
26 |
Correct |
198 ms |
519396 KB |
Output is correct |
27 |
Correct |
182 ms |
519372 KB |
Output is correct |
28 |
Correct |
182 ms |
519356 KB |
Output is correct |
29 |
Correct |
204 ms |
519424 KB |
Output is correct |
30 |
Correct |
186 ms |
519372 KB |
Output is correct |
31 |
Correct |
197 ms |
519456 KB |
Output is correct |
32 |
Correct |
183 ms |
519472 KB |
Output is correct |
33 |
Correct |
186 ms |
519400 KB |
Output is correct |
34 |
Correct |
209 ms |
519404 KB |
Output is correct |
35 |
Correct |
194 ms |
519472 KB |
Output is correct |
36 |
Correct |
187 ms |
519376 KB |
Output is correct |
37 |
Correct |
197 ms |
519400 KB |
Output is correct |
38 |
Correct |
182 ms |
519416 KB |
Output is correct |
39 |
Correct |
195 ms |
519412 KB |
Output is correct |
40 |
Correct |
183 ms |
519412 KB |
Output is correct |
41 |
Correct |
184 ms |
519372 KB |
Output is correct |
42 |
Correct |
189 ms |
519384 KB |
Output is correct |
43 |
Correct |
184 ms |
519404 KB |
Output is correct |
44 |
Correct |
206 ms |
519456 KB |
Output is correct |
45 |
Correct |
180 ms |
519424 KB |
Output is correct |
46 |
Correct |
191 ms |
519460 KB |
Output is correct |
47 |
Correct |
180 ms |
519416 KB |
Output is correct |
48 |
Correct |
225 ms |
519404 KB |
Output is correct |
49 |
Correct |
184 ms |
519396 KB |
Output is correct |
50 |
Correct |
183 ms |
519364 KB |
Output is correct |
51 |
Correct |
182 ms |
519368 KB |
Output is correct |
52 |
Correct |
189 ms |
519424 KB |
Output is correct |
53 |
Correct |
193 ms |
519500 KB |
Output is correct |
54 |
Correct |
188 ms |
519392 KB |
Output is correct |
55 |
Correct |
189 ms |
519356 KB |
Output is correct |
56 |
Correct |
188 ms |
519428 KB |
Output is correct |
57 |
Correct |
183 ms |
519428 KB |
Output is correct |
58 |
Correct |
200 ms |
519452 KB |
Output is correct |
59 |
Correct |
186 ms |
519424 KB |
Output is correct |
60 |
Correct |
185 ms |
519372 KB |
Output is correct |
61 |
Correct |
184 ms |
519348 KB |
Output is correct |
62 |
Correct |
189 ms |
519376 KB |
Output is correct |
63 |
Correct |
189 ms |
519628 KB |
Output is correct |
64 |
Correct |
185 ms |
519372 KB |
Output is correct |
65 |
Correct |
185 ms |
519412 KB |
Output is correct |
66 |
Correct |
190 ms |
519404 KB |
Output is correct |
67 |
Correct |
182 ms |
519472 KB |
Output is correct |
68 |
Correct |
206 ms |
519396 KB |
Output is correct |
69 |
Correct |
188 ms |
519436 KB |
Output is correct |
70 |
Correct |
186 ms |
519364 KB |
Output is correct |
71 |
Correct |
190 ms |
519412 KB |
Output is correct |
72 |
Correct |
184 ms |
519376 KB |
Output is correct |
73 |
Correct |
211 ms |
519560 KB |
Output is correct |
74 |
Correct |
188 ms |
519388 KB |
Output is correct |
75 |
Correct |
223 ms |
519396 KB |
Output is correct |
76 |
Correct |
188 ms |
519348 KB |
Output is correct |
77 |
Correct |
202 ms |
519388 KB |
Output is correct |
78 |
Correct |
190 ms |
519428 KB |
Output is correct |
79 |
Correct |
204 ms |
519544 KB |
Output is correct |
80 |
Correct |
212 ms |
519372 KB |
Output is correct |
81 |
Correct |
202 ms |
519372 KB |
Output is correct |
82 |
Correct |
190 ms |
519396 KB |
Output is correct |
83 |
Correct |
186 ms |
519440 KB |
Output is correct |
84 |
Correct |
206 ms |
519444 KB |
Output is correct |
85 |
Correct |
204 ms |
519460 KB |
Output is correct |
86 |
Correct |
200 ms |
519392 KB |
Output is correct |
87 |
Correct |
210 ms |
519468 KB |
Output is correct |
88 |
Correct |
206 ms |
519412 KB |
Output is correct |
89 |
Correct |
230 ms |
519472 KB |
Output is correct |
90 |
Correct |
213 ms |
519368 KB |
Output is correct |
91 |
Correct |
188 ms |
519372 KB |
Output is correct |
92 |
Correct |
195 ms |
519416 KB |
Output is correct |
93 |
Correct |
219 ms |
519364 KB |
Output is correct |
94 |
Correct |
186 ms |
519424 KB |
Output is correct |
95 |
Correct |
188 ms |
519444 KB |
Output is correct |
96 |
Correct |
185 ms |
519408 KB |
Output is correct |
97 |
Correct |
187 ms |
519440 KB |
Output is correct |
98 |
Correct |
187 ms |
519364 KB |
Output is correct |
99 |
Correct |
185 ms |
519444 KB |
Output is correct |
100 |
Correct |
182 ms |
519396 KB |
Output is correct |
101 |
Correct |
186 ms |
519380 KB |
Output is correct |
102 |
Correct |
209 ms |
519420 KB |
Output is correct |
103 |
Correct |
186 ms |
519460 KB |
Output is correct |
104 |
Correct |
186 ms |
519416 KB |
Output is correct |
105 |
Correct |
194 ms |
519420 KB |
Output is correct |
106 |
Correct |
186 ms |
519352 KB |
Output is correct |
107 |
Correct |
185 ms |
519456 KB |
Output is correct |
108 |
Correct |
186 ms |
519368 KB |
Output is correct |
109 |
Correct |
183 ms |
519372 KB |
Output is correct |
110 |
Correct |
186 ms |
519444 KB |
Output is correct |
111 |
Correct |
185 ms |
519420 KB |
Output is correct |
112 |
Correct |
197 ms |
519416 KB |
Output is correct |
113 |
Correct |
185 ms |
519352 KB |
Output is correct |
114 |
Correct |
183 ms |
519372 KB |
Output is correct |
115 |
Correct |
184 ms |
519528 KB |
Output is correct |
116 |
Correct |
184 ms |
519348 KB |
Output is correct |
117 |
Correct |
195 ms |
519456 KB |
Output is correct |
118 |
Correct |
188 ms |
519496 KB |
Output is correct |
119 |
Correct |
182 ms |
519440 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
195 ms |
519444 KB |
Output is correct |
2 |
Correct |
204 ms |
519476 KB |
Output is correct |
3 |
Correct |
186 ms |
519504 KB |
Output is correct |
4 |
Correct |
189 ms |
519344 KB |
Output is correct |
5 |
Correct |
183 ms |
519372 KB |
Output is correct |
6 |
Correct |
200 ms |
519408 KB |
Output is correct |
7 |
Correct |
187 ms |
519452 KB |
Output is correct |
8 |
Correct |
193 ms |
519472 KB |
Output is correct |
9 |
Correct |
191 ms |
519456 KB |
Output is correct |
10 |
Correct |
196 ms |
519468 KB |
Output is correct |
11 |
Correct |
219 ms |
519460 KB |
Output is correct |
12 |
Correct |
190 ms |
519468 KB |
Output is correct |
13 |
Correct |
195 ms |
519344 KB |
Output is correct |
14 |
Correct |
216 ms |
519352 KB |
Output is correct |
15 |
Correct |
187 ms |
519368 KB |
Output is correct |
16 |
Correct |
190 ms |
519456 KB |
Output is correct |
17 |
Correct |
190 ms |
519472 KB |
Output is correct |
18 |
Correct |
192 ms |
519436 KB |
Output is correct |
19 |
Correct |
186 ms |
519444 KB |
Output is correct |
20 |
Correct |
190 ms |
519436 KB |
Output is correct |
21 |
Correct |
185 ms |
519424 KB |
Output is correct |
22 |
Correct |
187 ms |
519488 KB |
Output is correct |
23 |
Correct |
191 ms |
519472 KB |
Output is correct |
24 |
Correct |
181 ms |
519408 KB |
Output is correct |
25 |
Correct |
205 ms |
519372 KB |
Output is correct |
26 |
Correct |
198 ms |
519396 KB |
Output is correct |
27 |
Correct |
182 ms |
519372 KB |
Output is correct |
28 |
Correct |
182 ms |
519356 KB |
Output is correct |
29 |
Correct |
204 ms |
519424 KB |
Output is correct |
30 |
Correct |
186 ms |
519372 KB |
Output is correct |
31 |
Correct |
197 ms |
519456 KB |
Output is correct |
32 |
Correct |
183 ms |
519472 KB |
Output is correct |
33 |
Correct |
186 ms |
519400 KB |
Output is correct |
34 |
Correct |
209 ms |
519404 KB |
Output is correct |
35 |
Correct |
194 ms |
519472 KB |
Output is correct |
36 |
Correct |
187 ms |
519376 KB |
Output is correct |
37 |
Correct |
197 ms |
519400 KB |
Output is correct |
38 |
Correct |
182 ms |
519416 KB |
Output is correct |
39 |
Correct |
195 ms |
519412 KB |
Output is correct |
40 |
Correct |
183 ms |
519412 KB |
Output is correct |
41 |
Correct |
184 ms |
519372 KB |
Output is correct |
42 |
Correct |
189 ms |
519384 KB |
Output is correct |
43 |
Correct |
184 ms |
519404 KB |
Output is correct |
44 |
Correct |
206 ms |
519456 KB |
Output is correct |
45 |
Correct |
180 ms |
519424 KB |
Output is correct |
46 |
Correct |
191 ms |
519460 KB |
Output is correct |
47 |
Correct |
180 ms |
519416 KB |
Output is correct |
48 |
Correct |
225 ms |
519404 KB |
Output is correct |
49 |
Correct |
184 ms |
519396 KB |
Output is correct |
50 |
Correct |
183 ms |
519364 KB |
Output is correct |
51 |
Correct |
182 ms |
519368 KB |
Output is correct |
52 |
Correct |
189 ms |
519424 KB |
Output is correct |
53 |
Correct |
193 ms |
519500 KB |
Output is correct |
54 |
Correct |
188 ms |
519392 KB |
Output is correct |
55 |
Correct |
189 ms |
519356 KB |
Output is correct |
56 |
Correct |
188 ms |
519428 KB |
Output is correct |
57 |
Correct |
183 ms |
519428 KB |
Output is correct |
58 |
Correct |
200 ms |
519452 KB |
Output is correct |
59 |
Correct |
186 ms |
519424 KB |
Output is correct |
60 |
Correct |
185 ms |
519372 KB |
Output is correct |
61 |
Correct |
184 ms |
519348 KB |
Output is correct |
62 |
Correct |
189 ms |
519376 KB |
Output is correct |
63 |
Correct |
189 ms |
519628 KB |
Output is correct |
64 |
Correct |
185 ms |
519372 KB |
Output is correct |
65 |
Correct |
185 ms |
519412 KB |
Output is correct |
66 |
Correct |
190 ms |
519404 KB |
Output is correct |
67 |
Correct |
182 ms |
519472 KB |
Output is correct |
68 |
Correct |
206 ms |
519396 KB |
Output is correct |
69 |
Correct |
188 ms |
519436 KB |
Output is correct |
70 |
Correct |
186 ms |
519364 KB |
Output is correct |
71 |
Correct |
190 ms |
519412 KB |
Output is correct |
72 |
Correct |
184 ms |
519376 KB |
Output is correct |
73 |
Correct |
211 ms |
519560 KB |
Output is correct |
74 |
Correct |
188 ms |
519388 KB |
Output is correct |
75 |
Correct |
223 ms |
519396 KB |
Output is correct |
76 |
Correct |
188 ms |
519348 KB |
Output is correct |
77 |
Correct |
202 ms |
519388 KB |
Output is correct |
78 |
Correct |
190 ms |
519428 KB |
Output is correct |
79 |
Correct |
204 ms |
519544 KB |
Output is correct |
80 |
Correct |
212 ms |
519372 KB |
Output is correct |
81 |
Correct |
202 ms |
519372 KB |
Output is correct |
82 |
Correct |
190 ms |
519396 KB |
Output is correct |
83 |
Correct |
186 ms |
519440 KB |
Output is correct |
84 |
Correct |
206 ms |
519444 KB |
Output is correct |
85 |
Correct |
204 ms |
519460 KB |
Output is correct |
86 |
Correct |
200 ms |
519392 KB |
Output is correct |
87 |
Correct |
210 ms |
519468 KB |
Output is correct |
88 |
Correct |
206 ms |
519412 KB |
Output is correct |
89 |
Correct |
230 ms |
519472 KB |
Output is correct |
90 |
Correct |
213 ms |
519368 KB |
Output is correct |
91 |
Correct |
188 ms |
519372 KB |
Output is correct |
92 |
Correct |
195 ms |
519416 KB |
Output is correct |
93 |
Correct |
219 ms |
519364 KB |
Output is correct |
94 |
Correct |
186 ms |
519424 KB |
Output is correct |
95 |
Correct |
188 ms |
519444 KB |
Output is correct |
96 |
Correct |
185 ms |
519408 KB |
Output is correct |
97 |
Correct |
187 ms |
519440 KB |
Output is correct |
98 |
Correct |
187 ms |
519364 KB |
Output is correct |
99 |
Correct |
185 ms |
519444 KB |
Output is correct |
100 |
Correct |
182 ms |
519396 KB |
Output is correct |
101 |
Correct |
186 ms |
519380 KB |
Output is correct |
102 |
Correct |
209 ms |
519420 KB |
Output is correct |
103 |
Correct |
186 ms |
519460 KB |
Output is correct |
104 |
Correct |
186 ms |
519416 KB |
Output is correct |
105 |
Correct |
194 ms |
519420 KB |
Output is correct |
106 |
Correct |
186 ms |
519352 KB |
Output is correct |
107 |
Correct |
185 ms |
519456 KB |
Output is correct |
108 |
Correct |
186 ms |
519368 KB |
Output is correct |
109 |
Correct |
183 ms |
519372 KB |
Output is correct |
110 |
Correct |
186 ms |
519444 KB |
Output is correct |
111 |
Correct |
185 ms |
519420 KB |
Output is correct |
112 |
Correct |
197 ms |
519416 KB |
Output is correct |
113 |
Correct |
185 ms |
519352 KB |
Output is correct |
114 |
Correct |
183 ms |
519372 KB |
Output is correct |
115 |
Correct |
184 ms |
519528 KB |
Output is correct |
116 |
Correct |
184 ms |
519348 KB |
Output is correct |
117 |
Correct |
195 ms |
519456 KB |
Output is correct |
118 |
Correct |
188 ms |
519496 KB |
Output is correct |
119 |
Correct |
182 ms |
519440 KB |
Output is correct |
120 |
Correct |
215 ms |
519376 KB |
Output is correct |
121 |
Correct |
784 ms |
519476 KB |
Output is correct |
122 |
Correct |
849 ms |
519560 KB |
Output is correct |
123 |
Correct |
531 ms |
519476 KB |
Output is correct |
124 |
Correct |
531 ms |
519372 KB |
Output is correct |
125 |
Correct |
846 ms |
519564 KB |
Output is correct |
126 |
Correct |
852 ms |
519476 KB |
Output is correct |
127 |
Correct |
760 ms |
519480 KB |
Output is correct |
128 |
Correct |
635 ms |
519388 KB |
Output is correct |
129 |
Correct |
533 ms |
519472 KB |
Output is correct |
130 |
Correct |
204 ms |
519500 KB |
Output is correct |
131 |
Correct |
203 ms |
519352 KB |
Output is correct |
132 |
Correct |
209 ms |
519436 KB |
Output is correct |
133 |
Correct |
193 ms |
519396 KB |
Output is correct |
134 |
Correct |
211 ms |
519456 KB |
Output is correct |
135 |
Correct |
271 ms |
519408 KB |
Output is correct |
136 |
Correct |
274 ms |
519476 KB |
Output is correct |
137 |
Correct |
241 ms |
519424 KB |
Output is correct |
138 |
Correct |
252 ms |
519384 KB |
Output is correct |
139 |
Correct |
203 ms |
519460 KB |
Output is correct |
140 |
Correct |
215 ms |
519436 KB |
Output is correct |
141 |
Correct |
815 ms |
519584 KB |
Output is correct |
142 |
Correct |
852 ms |
519472 KB |
Output is correct |
143 |
Correct |
585 ms |
519552 KB |
Output is correct |
144 |
Correct |
574 ms |
519480 KB |
Output is correct |
145 |
Correct |
816 ms |
519380 KB |
Output is correct |
146 |
Correct |
784 ms |
519544 KB |
Output is correct |
147 |
Correct |
735 ms |
519540 KB |
Output is correct |
148 |
Correct |
598 ms |
519416 KB |
Output is correct |
149 |
Correct |
554 ms |
519472 KB |
Output is correct |
150 |
Correct |
203 ms |
519372 KB |
Output is correct |
151 |
Correct |
188 ms |
519416 KB |
Output is correct |
152 |
Correct |
222 ms |
519480 KB |
Output is correct |
153 |
Correct |
185 ms |
519360 KB |
Output is correct |
154 |
Correct |
221 ms |
519480 KB |
Output is correct |
155 |
Correct |
267 ms |
519476 KB |
Output is correct |
156 |
Correct |
292 ms |
519372 KB |
Output is correct |
157 |
Correct |
258 ms |
519372 KB |
Output is correct |
158 |
Correct |
244 ms |
519500 KB |
Output is correct |
159 |
Correct |
201 ms |
519440 KB |
Output is correct |
160 |
Correct |
218 ms |
519452 KB |
Output is correct |
161 |
Correct |
744 ms |
519604 KB |
Output is correct |
162 |
Correct |
825 ms |
519500 KB |
Output is correct |
163 |
Correct |
508 ms |
519500 KB |
Output is correct |
164 |
Correct |
523 ms |
519476 KB |
Output is correct |
165 |
Correct |
817 ms |
519472 KB |
Output is correct |
166 |
Correct |
794 ms |
519396 KB |
Output is correct |
167 |
Correct |
838 ms |
519476 KB |
Output is correct |
168 |
Correct |
589 ms |
519424 KB |
Output is correct |
169 |
Correct |
499 ms |
519476 KB |
Output is correct |
170 |
Correct |
202 ms |
519400 KB |
Output is correct |
171 |
Correct |
183 ms |
519428 KB |
Output is correct |
172 |
Correct |
215 ms |
519432 KB |
Output is correct |
173 |
Correct |
189 ms |
519436 KB |
Output is correct |
174 |
Correct |
226 ms |
519372 KB |
Output is correct |
175 |
Correct |
291 ms |
519476 KB |
Output is correct |
176 |
Correct |
278 ms |
519480 KB |
Output is correct |
177 |
Correct |
334 ms |
519472 KB |
Output is correct |
178 |
Correct |
239 ms |
519476 KB |
Output is correct |
179 |
Correct |
215 ms |
519464 KB |
Output is correct |
180 |
Correct |
256 ms |
519440 KB |
Output is correct |
181 |
Correct |
832 ms |
519376 KB |
Output is correct |
182 |
Correct |
868 ms |
519376 KB |
Output is correct |
183 |
Correct |
617 ms |
519476 KB |
Output is correct |
184 |
Correct |
653 ms |
519476 KB |
Output is correct |
185 |
Correct |
814 ms |
519476 KB |
Output is correct |
186 |
Correct |
793 ms |
519472 KB |
Output is correct |
187 |
Correct |
743 ms |
519448 KB |
Output is correct |
188 |
Correct |
588 ms |
519476 KB |
Output is correct |
189 |
Correct |
498 ms |
519560 KB |
Output is correct |
190 |
Correct |
204 ms |
519360 KB |
Output is correct |
191 |
Correct |
190 ms |
519384 KB |
Output is correct |
192 |
Correct |
215 ms |
519368 KB |
Output is correct |
193 |
Correct |
184 ms |
519440 KB |
Output is correct |
194 |
Correct |
222 ms |
519372 KB |
Output is correct |
195 |
Correct |
301 ms |
519368 KB |
Output is correct |
196 |
Correct |
266 ms |
519360 KB |
Output is correct |
197 |
Correct |
237 ms |
519640 KB |
Output is correct |
198 |
Correct |
240 ms |
519372 KB |
Output is correct |
199 |
Correct |
203 ms |
519452 KB |
Output is correct |
200 |
Correct |
226 ms |
519536 KB |
Output is correct |
201 |
Correct |
738 ms |
519436 KB |
Output is correct |
202 |
Correct |
798 ms |
519372 KB |
Output is correct |
203 |
Correct |
501 ms |
519420 KB |
Output is correct |
204 |
Correct |
533 ms |
519480 KB |
Output is correct |
205 |
Correct |
876 ms |
519496 KB |
Output is correct |
206 |
Correct |
867 ms |
519400 KB |
Output is correct |
207 |
Correct |
729 ms |
519500 KB |
Output is correct |
208 |
Correct |
608 ms |
519372 KB |
Output is correct |
209 |
Correct |
508 ms |
519624 KB |
Output is correct |
210 |
Correct |
202 ms |
519372 KB |
Output is correct |
211 |
Correct |
182 ms |
519480 KB |
Output is correct |
212 |
Correct |
221 ms |
519420 KB |
Output is correct |
213 |
Correct |
202 ms |
519412 KB |
Output is correct |
214 |
Correct |
207 ms |
519364 KB |
Output is correct |
215 |
Correct |
249 ms |
519448 KB |
Output is correct |
216 |
Correct |
271 ms |
519456 KB |
Output is correct |
217 |
Correct |
237 ms |
519424 KB |
Output is correct |
218 |
Correct |
244 ms |
519372 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
252 ms |
519492 KB |
1st lines differ - on the 1st token, expected: '689', found: '132651515' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
580 ms |
1046584 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
579 ms |
1046604 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
195 ms |
519444 KB |
Output is correct |
2 |
Correct |
204 ms |
519476 KB |
Output is correct |
3 |
Correct |
186 ms |
519504 KB |
Output is correct |
4 |
Correct |
189 ms |
519344 KB |
Output is correct |
5 |
Correct |
183 ms |
519372 KB |
Output is correct |
6 |
Correct |
200 ms |
519408 KB |
Output is correct |
7 |
Correct |
187 ms |
519452 KB |
Output is correct |
8 |
Correct |
193 ms |
519472 KB |
Output is correct |
9 |
Correct |
191 ms |
519456 KB |
Output is correct |
10 |
Correct |
196 ms |
519468 KB |
Output is correct |
11 |
Correct |
219 ms |
519460 KB |
Output is correct |
12 |
Correct |
190 ms |
519468 KB |
Output is correct |
13 |
Correct |
195 ms |
519344 KB |
Output is correct |
14 |
Correct |
216 ms |
519352 KB |
Output is correct |
15 |
Correct |
187 ms |
519368 KB |
Output is correct |
16 |
Correct |
190 ms |
519456 KB |
Output is correct |
17 |
Correct |
190 ms |
519472 KB |
Output is correct |
18 |
Correct |
192 ms |
519436 KB |
Output is correct |
19 |
Correct |
186 ms |
519444 KB |
Output is correct |
20 |
Correct |
190 ms |
519436 KB |
Output is correct |
21 |
Correct |
185 ms |
519424 KB |
Output is correct |
22 |
Correct |
187 ms |
519488 KB |
Output is correct |
23 |
Correct |
191 ms |
519472 KB |
Output is correct |
24 |
Correct |
181 ms |
519408 KB |
Output is correct |
25 |
Correct |
205 ms |
519372 KB |
Output is correct |
26 |
Correct |
198 ms |
519396 KB |
Output is correct |
27 |
Correct |
182 ms |
519372 KB |
Output is correct |
28 |
Correct |
182 ms |
519356 KB |
Output is correct |
29 |
Correct |
204 ms |
519424 KB |
Output is correct |
30 |
Correct |
186 ms |
519372 KB |
Output is correct |
31 |
Correct |
197 ms |
519456 KB |
Output is correct |
32 |
Correct |
183 ms |
519472 KB |
Output is correct |
33 |
Correct |
186 ms |
519400 KB |
Output is correct |
34 |
Correct |
209 ms |
519404 KB |
Output is correct |
35 |
Correct |
194 ms |
519472 KB |
Output is correct |
36 |
Correct |
187 ms |
519376 KB |
Output is correct |
37 |
Correct |
197 ms |
519400 KB |
Output is correct |
38 |
Correct |
182 ms |
519416 KB |
Output is correct |
39 |
Correct |
195 ms |
519412 KB |
Output is correct |
40 |
Correct |
183 ms |
519412 KB |
Output is correct |
41 |
Correct |
184 ms |
519372 KB |
Output is correct |
42 |
Correct |
189 ms |
519384 KB |
Output is correct |
43 |
Correct |
184 ms |
519404 KB |
Output is correct |
44 |
Correct |
206 ms |
519456 KB |
Output is correct |
45 |
Correct |
180 ms |
519424 KB |
Output is correct |
46 |
Correct |
191 ms |
519460 KB |
Output is correct |
47 |
Correct |
180 ms |
519416 KB |
Output is correct |
48 |
Correct |
225 ms |
519404 KB |
Output is correct |
49 |
Correct |
184 ms |
519396 KB |
Output is correct |
50 |
Correct |
183 ms |
519364 KB |
Output is correct |
51 |
Correct |
182 ms |
519368 KB |
Output is correct |
52 |
Correct |
189 ms |
519424 KB |
Output is correct |
53 |
Correct |
193 ms |
519500 KB |
Output is correct |
54 |
Correct |
188 ms |
519392 KB |
Output is correct |
55 |
Correct |
189 ms |
519356 KB |
Output is correct |
56 |
Correct |
188 ms |
519428 KB |
Output is correct |
57 |
Correct |
183 ms |
519428 KB |
Output is correct |
58 |
Correct |
200 ms |
519452 KB |
Output is correct |
59 |
Correct |
186 ms |
519424 KB |
Output is correct |
60 |
Correct |
185 ms |
519372 KB |
Output is correct |
61 |
Correct |
184 ms |
519348 KB |
Output is correct |
62 |
Correct |
189 ms |
519376 KB |
Output is correct |
63 |
Correct |
189 ms |
519628 KB |
Output is correct |
64 |
Correct |
185 ms |
519372 KB |
Output is correct |
65 |
Correct |
185 ms |
519412 KB |
Output is correct |
66 |
Correct |
190 ms |
519404 KB |
Output is correct |
67 |
Correct |
182 ms |
519472 KB |
Output is correct |
68 |
Correct |
206 ms |
519396 KB |
Output is correct |
69 |
Correct |
188 ms |
519436 KB |
Output is correct |
70 |
Correct |
186 ms |
519364 KB |
Output is correct |
71 |
Correct |
190 ms |
519412 KB |
Output is correct |
72 |
Correct |
184 ms |
519376 KB |
Output is correct |
73 |
Correct |
211 ms |
519560 KB |
Output is correct |
74 |
Correct |
188 ms |
519388 KB |
Output is correct |
75 |
Correct |
223 ms |
519396 KB |
Output is correct |
76 |
Correct |
188 ms |
519348 KB |
Output is correct |
77 |
Correct |
202 ms |
519388 KB |
Output is correct |
78 |
Correct |
190 ms |
519428 KB |
Output is correct |
79 |
Correct |
204 ms |
519544 KB |
Output is correct |
80 |
Correct |
212 ms |
519372 KB |
Output is correct |
81 |
Correct |
202 ms |
519372 KB |
Output is correct |
82 |
Correct |
190 ms |
519396 KB |
Output is correct |
83 |
Correct |
186 ms |
519440 KB |
Output is correct |
84 |
Correct |
206 ms |
519444 KB |
Output is correct |
85 |
Correct |
204 ms |
519460 KB |
Output is correct |
86 |
Correct |
200 ms |
519392 KB |
Output is correct |
87 |
Correct |
210 ms |
519468 KB |
Output is correct |
88 |
Correct |
206 ms |
519412 KB |
Output is correct |
89 |
Correct |
230 ms |
519472 KB |
Output is correct |
90 |
Correct |
213 ms |
519368 KB |
Output is correct |
91 |
Correct |
188 ms |
519372 KB |
Output is correct |
92 |
Correct |
195 ms |
519416 KB |
Output is correct |
93 |
Correct |
219 ms |
519364 KB |
Output is correct |
94 |
Correct |
186 ms |
519424 KB |
Output is correct |
95 |
Correct |
188 ms |
519444 KB |
Output is correct |
96 |
Correct |
185 ms |
519408 KB |
Output is correct |
97 |
Correct |
187 ms |
519440 KB |
Output is correct |
98 |
Correct |
187 ms |
519364 KB |
Output is correct |
99 |
Correct |
185 ms |
519444 KB |
Output is correct |
100 |
Correct |
182 ms |
519396 KB |
Output is correct |
101 |
Correct |
186 ms |
519380 KB |
Output is correct |
102 |
Correct |
209 ms |
519420 KB |
Output is correct |
103 |
Correct |
186 ms |
519460 KB |
Output is correct |
104 |
Correct |
186 ms |
519416 KB |
Output is correct |
105 |
Correct |
194 ms |
519420 KB |
Output is correct |
106 |
Correct |
186 ms |
519352 KB |
Output is correct |
107 |
Correct |
185 ms |
519456 KB |
Output is correct |
108 |
Correct |
186 ms |
519368 KB |
Output is correct |
109 |
Correct |
183 ms |
519372 KB |
Output is correct |
110 |
Correct |
186 ms |
519444 KB |
Output is correct |
111 |
Correct |
185 ms |
519420 KB |
Output is correct |
112 |
Correct |
197 ms |
519416 KB |
Output is correct |
113 |
Correct |
185 ms |
519352 KB |
Output is correct |
114 |
Correct |
183 ms |
519372 KB |
Output is correct |
115 |
Correct |
184 ms |
519528 KB |
Output is correct |
116 |
Correct |
184 ms |
519348 KB |
Output is correct |
117 |
Correct |
195 ms |
519456 KB |
Output is correct |
118 |
Correct |
188 ms |
519496 KB |
Output is correct |
119 |
Correct |
182 ms |
519440 KB |
Output is correct |
120 |
Correct |
215 ms |
519376 KB |
Output is correct |
121 |
Correct |
784 ms |
519476 KB |
Output is correct |
122 |
Correct |
849 ms |
519560 KB |
Output is correct |
123 |
Correct |
531 ms |
519476 KB |
Output is correct |
124 |
Correct |
531 ms |
519372 KB |
Output is correct |
125 |
Correct |
846 ms |
519564 KB |
Output is correct |
126 |
Correct |
852 ms |
519476 KB |
Output is correct |
127 |
Correct |
760 ms |
519480 KB |
Output is correct |
128 |
Correct |
635 ms |
519388 KB |
Output is correct |
129 |
Correct |
533 ms |
519472 KB |
Output is correct |
130 |
Correct |
204 ms |
519500 KB |
Output is correct |
131 |
Correct |
203 ms |
519352 KB |
Output is correct |
132 |
Correct |
209 ms |
519436 KB |
Output is correct |
133 |
Correct |
193 ms |
519396 KB |
Output is correct |
134 |
Correct |
211 ms |
519456 KB |
Output is correct |
135 |
Correct |
271 ms |
519408 KB |
Output is correct |
136 |
Correct |
274 ms |
519476 KB |
Output is correct |
137 |
Correct |
241 ms |
519424 KB |
Output is correct |
138 |
Correct |
252 ms |
519384 KB |
Output is correct |
139 |
Correct |
203 ms |
519460 KB |
Output is correct |
140 |
Correct |
215 ms |
519436 KB |
Output is correct |
141 |
Correct |
815 ms |
519584 KB |
Output is correct |
142 |
Correct |
852 ms |
519472 KB |
Output is correct |
143 |
Correct |
585 ms |
519552 KB |
Output is correct |
144 |
Correct |
574 ms |
519480 KB |
Output is correct |
145 |
Correct |
816 ms |
519380 KB |
Output is correct |
146 |
Correct |
784 ms |
519544 KB |
Output is correct |
147 |
Correct |
735 ms |
519540 KB |
Output is correct |
148 |
Correct |
598 ms |
519416 KB |
Output is correct |
149 |
Correct |
554 ms |
519472 KB |
Output is correct |
150 |
Correct |
203 ms |
519372 KB |
Output is correct |
151 |
Correct |
188 ms |
519416 KB |
Output is correct |
152 |
Correct |
222 ms |
519480 KB |
Output is correct |
153 |
Correct |
185 ms |
519360 KB |
Output is correct |
154 |
Correct |
221 ms |
519480 KB |
Output is correct |
155 |
Correct |
267 ms |
519476 KB |
Output is correct |
156 |
Correct |
292 ms |
519372 KB |
Output is correct |
157 |
Correct |
258 ms |
519372 KB |
Output is correct |
158 |
Correct |
244 ms |
519500 KB |
Output is correct |
159 |
Correct |
201 ms |
519440 KB |
Output is correct |
160 |
Correct |
218 ms |
519452 KB |
Output is correct |
161 |
Correct |
744 ms |
519604 KB |
Output is correct |
162 |
Correct |
825 ms |
519500 KB |
Output is correct |
163 |
Correct |
508 ms |
519500 KB |
Output is correct |
164 |
Correct |
523 ms |
519476 KB |
Output is correct |
165 |
Correct |
817 ms |
519472 KB |
Output is correct |
166 |
Correct |
794 ms |
519396 KB |
Output is correct |
167 |
Correct |
838 ms |
519476 KB |
Output is correct |
168 |
Correct |
589 ms |
519424 KB |
Output is correct |
169 |
Correct |
499 ms |
519476 KB |
Output is correct |
170 |
Correct |
202 ms |
519400 KB |
Output is correct |
171 |
Correct |
183 ms |
519428 KB |
Output is correct |
172 |
Correct |
215 ms |
519432 KB |
Output is correct |
173 |
Correct |
189 ms |
519436 KB |
Output is correct |
174 |
Correct |
226 ms |
519372 KB |
Output is correct |
175 |
Correct |
291 ms |
519476 KB |
Output is correct |
176 |
Correct |
278 ms |
519480 KB |
Output is correct |
177 |
Correct |
334 ms |
519472 KB |
Output is correct |
178 |
Correct |
239 ms |
519476 KB |
Output is correct |
179 |
Correct |
215 ms |
519464 KB |
Output is correct |
180 |
Correct |
256 ms |
519440 KB |
Output is correct |
181 |
Correct |
832 ms |
519376 KB |
Output is correct |
182 |
Correct |
868 ms |
519376 KB |
Output is correct |
183 |
Correct |
617 ms |
519476 KB |
Output is correct |
184 |
Correct |
653 ms |
519476 KB |
Output is correct |
185 |
Correct |
814 ms |
519476 KB |
Output is correct |
186 |
Correct |
793 ms |
519472 KB |
Output is correct |
187 |
Correct |
743 ms |
519448 KB |
Output is correct |
188 |
Correct |
588 ms |
519476 KB |
Output is correct |
189 |
Correct |
498 ms |
519560 KB |
Output is correct |
190 |
Correct |
204 ms |
519360 KB |
Output is correct |
191 |
Correct |
190 ms |
519384 KB |
Output is correct |
192 |
Correct |
215 ms |
519368 KB |
Output is correct |
193 |
Correct |
184 ms |
519440 KB |
Output is correct |
194 |
Correct |
222 ms |
519372 KB |
Output is correct |
195 |
Correct |
301 ms |
519368 KB |
Output is correct |
196 |
Correct |
266 ms |
519360 KB |
Output is correct |
197 |
Correct |
237 ms |
519640 KB |
Output is correct |
198 |
Correct |
240 ms |
519372 KB |
Output is correct |
199 |
Correct |
203 ms |
519452 KB |
Output is correct |
200 |
Correct |
226 ms |
519536 KB |
Output is correct |
201 |
Correct |
738 ms |
519436 KB |
Output is correct |
202 |
Correct |
798 ms |
519372 KB |
Output is correct |
203 |
Correct |
501 ms |
519420 KB |
Output is correct |
204 |
Correct |
533 ms |
519480 KB |
Output is correct |
205 |
Correct |
876 ms |
519496 KB |
Output is correct |
206 |
Correct |
867 ms |
519400 KB |
Output is correct |
207 |
Correct |
729 ms |
519500 KB |
Output is correct |
208 |
Correct |
608 ms |
519372 KB |
Output is correct |
209 |
Correct |
508 ms |
519624 KB |
Output is correct |
210 |
Correct |
202 ms |
519372 KB |
Output is correct |
211 |
Correct |
182 ms |
519480 KB |
Output is correct |
212 |
Correct |
221 ms |
519420 KB |
Output is correct |
213 |
Correct |
202 ms |
519412 KB |
Output is correct |
214 |
Correct |
207 ms |
519364 KB |
Output is correct |
215 |
Correct |
249 ms |
519448 KB |
Output is correct |
216 |
Correct |
271 ms |
519456 KB |
Output is correct |
217 |
Correct |
237 ms |
519424 KB |
Output is correct |
218 |
Correct |
244 ms |
519372 KB |
Output is correct |
219 |
Incorrect |
252 ms |
519492 KB |
1st lines differ - on the 1st token, expected: '689', found: '132651515' |
220 |
Halted |
0 ms |
0 KB |
- |