#include <bits/stdc++.h>
#include "jelly.h"
//#include "grader.cpp"
#include <vector>
using namespace std;
int N;
vector<int> A;
vector<int> B;
int memo[202][502][502];
int dp(int pos, int remx, int remy){
if(pos == 0) return 0;
if(memo[pos][remx][remy] != -1) return memo[pos][remx][remy];
int ret = dp(pos-1, remx, remy);
if(remx >= A[pos-1]){
ret = max(ret, dp(pos-1, remx-A[pos-1], remy) + 1);
}
if(remy >= B[pos-1]){
ret = max(ret, dp(pos-1, remx, remy-B[pos-1]) + 1);
}
memo[pos][remx][remy] = ret;
return ret;
}
int find_maximum_unique(int x, int y, std::vector<int> a, std::vector<int> b) {
memset(memo, -1, sizeof(memo));
N = a.size();
A = a;
B = b;
return dp(N, x, y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
92 ms |
199488 KB |
Output is correct |
2 |
Correct |
86 ms |
199504 KB |
Output is correct |
3 |
Correct |
84 ms |
199460 KB |
Output is correct |
4 |
Correct |
87 ms |
199488 KB |
Output is correct |
5 |
Correct |
88 ms |
199444 KB |
Output is correct |
6 |
Correct |
96 ms |
199500 KB |
Output is correct |
7 |
Correct |
87 ms |
199412 KB |
Output is correct |
8 |
Correct |
83 ms |
199388 KB |
Output is correct |
9 |
Correct |
86 ms |
199516 KB |
Output is correct |
10 |
Correct |
89 ms |
199420 KB |
Output is correct |
11 |
Correct |
85 ms |
199480 KB |
Output is correct |
12 |
Correct |
87 ms |
199460 KB |
Output is correct |
13 |
Correct |
86 ms |
199496 KB |
Output is correct |
14 |
Correct |
87 ms |
199484 KB |
Output is correct |
15 |
Correct |
90 ms |
199452 KB |
Output is correct |
16 |
Correct |
89 ms |
199436 KB |
Output is correct |
17 |
Correct |
89 ms |
199392 KB |
Output is correct |
18 |
Correct |
87 ms |
199400 KB |
Output is correct |
19 |
Correct |
85 ms |
199500 KB |
Output is correct |
20 |
Correct |
85 ms |
199408 KB |
Output is correct |
21 |
Correct |
85 ms |
199484 KB |
Output is correct |
22 |
Correct |
95 ms |
199448 KB |
Output is correct |
23 |
Correct |
86 ms |
199504 KB |
Output is correct |
24 |
Correct |
86 ms |
199408 KB |
Output is correct |
25 |
Correct |
85 ms |
199420 KB |
Output is correct |
26 |
Correct |
87 ms |
199492 KB |
Output is correct |
27 |
Correct |
85 ms |
199516 KB |
Output is correct |
28 |
Correct |
85 ms |
199492 KB |
Output is correct |
29 |
Correct |
85 ms |
199536 KB |
Output is correct |
30 |
Correct |
91 ms |
199408 KB |
Output is correct |
31 |
Correct |
85 ms |
199492 KB |
Output is correct |
32 |
Correct |
88 ms |
199396 KB |
Output is correct |
33 |
Correct |
86 ms |
199424 KB |
Output is correct |
34 |
Correct |
86 ms |
199444 KB |
Output is correct |
35 |
Correct |
86 ms |
199488 KB |
Output is correct |
36 |
Correct |
85 ms |
199436 KB |
Output is correct |
37 |
Correct |
86 ms |
199420 KB |
Output is correct |
38 |
Correct |
88 ms |
199424 KB |
Output is correct |
39 |
Correct |
88 ms |
199464 KB |
Output is correct |
40 |
Correct |
90 ms |
199492 KB |
Output is correct |
41 |
Correct |
87 ms |
199476 KB |
Output is correct |
42 |
Correct |
88 ms |
199616 KB |
Output is correct |
43 |
Correct |
97 ms |
199492 KB |
Output is correct |
44 |
Correct |
91 ms |
199512 KB |
Output is correct |
45 |
Correct |
86 ms |
199452 KB |
Output is correct |
46 |
Correct |
88 ms |
199492 KB |
Output is correct |
47 |
Correct |
87 ms |
199412 KB |
Output is correct |
48 |
Correct |
89 ms |
199440 KB |
Output is correct |
49 |
Correct |
96 ms |
199492 KB |
Output is correct |
50 |
Correct |
97 ms |
199416 KB |
Output is correct |
51 |
Correct |
97 ms |
199460 KB |
Output is correct |
52 |
Correct |
86 ms |
199544 KB |
Output is correct |
53 |
Correct |
91 ms |
199480 KB |
Output is correct |
54 |
Correct |
86 ms |
199392 KB |
Output is correct |
55 |
Correct |
84 ms |
199492 KB |
Output is correct |
56 |
Correct |
87 ms |
199420 KB |
Output is correct |
57 |
Correct |
87 ms |
199408 KB |
Output is correct |
58 |
Correct |
98 ms |
199524 KB |
Output is correct |
59 |
Correct |
97 ms |
199428 KB |
Output is correct |
60 |
Correct |
85 ms |
199392 KB |
Output is correct |
61 |
Correct |
94 ms |
199400 KB |
Output is correct |
62 |
Correct |
86 ms |
199496 KB |
Output is correct |
63 |
Correct |
89 ms |
199396 KB |
Output is correct |
64 |
Correct |
93 ms |
199440 KB |
Output is correct |
65 |
Correct |
85 ms |
199416 KB |
Output is correct |
66 |
Correct |
95 ms |
199492 KB |
Output is correct |
67 |
Correct |
85 ms |
199440 KB |
Output is correct |
68 |
Correct |
95 ms |
199432 KB |
Output is correct |
69 |
Correct |
86 ms |
199504 KB |
Output is correct |
70 |
Correct |
88 ms |
199488 KB |
Output is correct |
71 |
Correct |
86 ms |
199408 KB |
Output is correct |
72 |
Correct |
84 ms |
199420 KB |
Output is correct |
73 |
Correct |
86 ms |
199472 KB |
Output is correct |
74 |
Correct |
87 ms |
199468 KB |
Output is correct |
75 |
Correct |
94 ms |
199436 KB |
Output is correct |
76 |
Correct |
84 ms |
199476 KB |
Output is correct |
77 |
Correct |
84 ms |
199432 KB |
Output is correct |
78 |
Correct |
95 ms |
199488 KB |
Output is correct |
79 |
Correct |
95 ms |
199492 KB |
Output is correct |
80 |
Correct |
88 ms |
199480 KB |
Output is correct |
81 |
Correct |
90 ms |
199488 KB |
Output is correct |
82 |
Correct |
86 ms |
199492 KB |
Output is correct |
83 |
Correct |
86 ms |
199460 KB |
Output is correct |
84 |
Correct |
89 ms |
199620 KB |
Output is correct |
85 |
Correct |
88 ms |
199432 KB |
Output is correct |
86 |
Correct |
84 ms |
199428 KB |
Output is correct |
87 |
Correct |
94 ms |
199400 KB |
Output is correct |
88 |
Correct |
89 ms |
199432 KB |
Output is correct |
89 |
Correct |
86 ms |
199452 KB |
Output is correct |
90 |
Correct |
87 ms |
199472 KB |
Output is correct |
91 |
Correct |
86 ms |
199436 KB |
Output is correct |
92 |
Correct |
89 ms |
199448 KB |
Output is correct |
93 |
Correct |
86 ms |
199492 KB |
Output is correct |
94 |
Correct |
86 ms |
199496 KB |
Output is correct |
95 |
Correct |
87 ms |
199404 KB |
Output is correct |
96 |
Correct |
84 ms |
199460 KB |
Output is correct |
97 |
Correct |
86 ms |
199500 KB |
Output is correct |
98 |
Correct |
85 ms |
199484 KB |
Output is correct |
99 |
Correct |
90 ms |
199492 KB |
Output is correct |
100 |
Correct |
100 ms |
199492 KB |
Output is correct |
101 |
Correct |
84 ms |
199424 KB |
Output is correct |
102 |
Correct |
86 ms |
199516 KB |
Output is correct |
103 |
Correct |
99 ms |
199428 KB |
Output is correct |
104 |
Correct |
91 ms |
199436 KB |
Output is correct |
105 |
Correct |
96 ms |
199492 KB |
Output is correct |
106 |
Correct |
88 ms |
199508 KB |
Output is correct |
107 |
Correct |
85 ms |
199596 KB |
Output is correct |
108 |
Correct |
93 ms |
199476 KB |
Output is correct |
109 |
Correct |
104 ms |
199504 KB |
Output is correct |
110 |
Correct |
97 ms |
199440 KB |
Output is correct |
111 |
Correct |
92 ms |
199476 KB |
Output is correct |
112 |
Correct |
95 ms |
199484 KB |
Output is correct |
113 |
Correct |
102 ms |
199444 KB |
Output is correct |
114 |
Correct |
112 ms |
199460 KB |
Output is correct |
115 |
Correct |
100 ms |
199492 KB |
Output is correct |
116 |
Correct |
90 ms |
199448 KB |
Output is correct |
117 |
Correct |
89 ms |
199424 KB |
Output is correct |
118 |
Correct |
92 ms |
199492 KB |
Output is correct |
119 |
Correct |
92 ms |
199504 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
92 ms |
199488 KB |
Output is correct |
2 |
Correct |
86 ms |
199504 KB |
Output is correct |
3 |
Correct |
84 ms |
199460 KB |
Output is correct |
4 |
Correct |
87 ms |
199488 KB |
Output is correct |
5 |
Correct |
88 ms |
199444 KB |
Output is correct |
6 |
Correct |
96 ms |
199500 KB |
Output is correct |
7 |
Correct |
87 ms |
199412 KB |
Output is correct |
8 |
Correct |
83 ms |
199388 KB |
Output is correct |
9 |
Correct |
86 ms |
199516 KB |
Output is correct |
10 |
Correct |
89 ms |
199420 KB |
Output is correct |
11 |
Correct |
85 ms |
199480 KB |
Output is correct |
12 |
Correct |
87 ms |
199460 KB |
Output is correct |
13 |
Correct |
86 ms |
199496 KB |
Output is correct |
14 |
Correct |
87 ms |
199484 KB |
Output is correct |
15 |
Correct |
90 ms |
199452 KB |
Output is correct |
16 |
Correct |
89 ms |
199436 KB |
Output is correct |
17 |
Correct |
89 ms |
199392 KB |
Output is correct |
18 |
Correct |
87 ms |
199400 KB |
Output is correct |
19 |
Correct |
85 ms |
199500 KB |
Output is correct |
20 |
Correct |
85 ms |
199408 KB |
Output is correct |
21 |
Correct |
85 ms |
199484 KB |
Output is correct |
22 |
Correct |
95 ms |
199448 KB |
Output is correct |
23 |
Correct |
86 ms |
199504 KB |
Output is correct |
24 |
Correct |
86 ms |
199408 KB |
Output is correct |
25 |
Correct |
85 ms |
199420 KB |
Output is correct |
26 |
Correct |
87 ms |
199492 KB |
Output is correct |
27 |
Correct |
85 ms |
199516 KB |
Output is correct |
28 |
Correct |
85 ms |
199492 KB |
Output is correct |
29 |
Correct |
85 ms |
199536 KB |
Output is correct |
30 |
Correct |
91 ms |
199408 KB |
Output is correct |
31 |
Correct |
85 ms |
199492 KB |
Output is correct |
32 |
Correct |
88 ms |
199396 KB |
Output is correct |
33 |
Correct |
86 ms |
199424 KB |
Output is correct |
34 |
Correct |
86 ms |
199444 KB |
Output is correct |
35 |
Correct |
86 ms |
199488 KB |
Output is correct |
36 |
Correct |
85 ms |
199436 KB |
Output is correct |
37 |
Correct |
86 ms |
199420 KB |
Output is correct |
38 |
Correct |
88 ms |
199424 KB |
Output is correct |
39 |
Correct |
88 ms |
199464 KB |
Output is correct |
40 |
Correct |
90 ms |
199492 KB |
Output is correct |
41 |
Correct |
87 ms |
199476 KB |
Output is correct |
42 |
Correct |
88 ms |
199616 KB |
Output is correct |
43 |
Correct |
97 ms |
199492 KB |
Output is correct |
44 |
Correct |
91 ms |
199512 KB |
Output is correct |
45 |
Correct |
86 ms |
199452 KB |
Output is correct |
46 |
Correct |
88 ms |
199492 KB |
Output is correct |
47 |
Correct |
87 ms |
199412 KB |
Output is correct |
48 |
Correct |
89 ms |
199440 KB |
Output is correct |
49 |
Correct |
96 ms |
199492 KB |
Output is correct |
50 |
Correct |
97 ms |
199416 KB |
Output is correct |
51 |
Correct |
97 ms |
199460 KB |
Output is correct |
52 |
Correct |
86 ms |
199544 KB |
Output is correct |
53 |
Correct |
91 ms |
199480 KB |
Output is correct |
54 |
Correct |
86 ms |
199392 KB |
Output is correct |
55 |
Correct |
84 ms |
199492 KB |
Output is correct |
56 |
Correct |
87 ms |
199420 KB |
Output is correct |
57 |
Correct |
87 ms |
199408 KB |
Output is correct |
58 |
Correct |
98 ms |
199524 KB |
Output is correct |
59 |
Correct |
97 ms |
199428 KB |
Output is correct |
60 |
Correct |
85 ms |
199392 KB |
Output is correct |
61 |
Correct |
94 ms |
199400 KB |
Output is correct |
62 |
Correct |
86 ms |
199496 KB |
Output is correct |
63 |
Correct |
89 ms |
199396 KB |
Output is correct |
64 |
Correct |
93 ms |
199440 KB |
Output is correct |
65 |
Correct |
85 ms |
199416 KB |
Output is correct |
66 |
Correct |
95 ms |
199492 KB |
Output is correct |
67 |
Correct |
85 ms |
199440 KB |
Output is correct |
68 |
Correct |
95 ms |
199432 KB |
Output is correct |
69 |
Correct |
86 ms |
199504 KB |
Output is correct |
70 |
Correct |
88 ms |
199488 KB |
Output is correct |
71 |
Correct |
86 ms |
199408 KB |
Output is correct |
72 |
Correct |
84 ms |
199420 KB |
Output is correct |
73 |
Correct |
86 ms |
199472 KB |
Output is correct |
74 |
Correct |
87 ms |
199468 KB |
Output is correct |
75 |
Correct |
94 ms |
199436 KB |
Output is correct |
76 |
Correct |
84 ms |
199476 KB |
Output is correct |
77 |
Correct |
84 ms |
199432 KB |
Output is correct |
78 |
Correct |
95 ms |
199488 KB |
Output is correct |
79 |
Correct |
95 ms |
199492 KB |
Output is correct |
80 |
Correct |
88 ms |
199480 KB |
Output is correct |
81 |
Correct |
90 ms |
199488 KB |
Output is correct |
82 |
Correct |
86 ms |
199492 KB |
Output is correct |
83 |
Correct |
86 ms |
199460 KB |
Output is correct |
84 |
Correct |
89 ms |
199620 KB |
Output is correct |
85 |
Correct |
88 ms |
199432 KB |
Output is correct |
86 |
Correct |
84 ms |
199428 KB |
Output is correct |
87 |
Correct |
94 ms |
199400 KB |
Output is correct |
88 |
Correct |
89 ms |
199432 KB |
Output is correct |
89 |
Correct |
86 ms |
199452 KB |
Output is correct |
90 |
Correct |
87 ms |
199472 KB |
Output is correct |
91 |
Correct |
86 ms |
199436 KB |
Output is correct |
92 |
Correct |
89 ms |
199448 KB |
Output is correct |
93 |
Correct |
86 ms |
199492 KB |
Output is correct |
94 |
Correct |
86 ms |
199496 KB |
Output is correct |
95 |
Correct |
87 ms |
199404 KB |
Output is correct |
96 |
Correct |
84 ms |
199460 KB |
Output is correct |
97 |
Correct |
86 ms |
199500 KB |
Output is correct |
98 |
Correct |
85 ms |
199484 KB |
Output is correct |
99 |
Correct |
90 ms |
199492 KB |
Output is correct |
100 |
Correct |
100 ms |
199492 KB |
Output is correct |
101 |
Correct |
84 ms |
199424 KB |
Output is correct |
102 |
Correct |
86 ms |
199516 KB |
Output is correct |
103 |
Correct |
99 ms |
199428 KB |
Output is correct |
104 |
Correct |
91 ms |
199436 KB |
Output is correct |
105 |
Correct |
96 ms |
199492 KB |
Output is correct |
106 |
Correct |
88 ms |
199508 KB |
Output is correct |
107 |
Correct |
85 ms |
199596 KB |
Output is correct |
108 |
Correct |
93 ms |
199476 KB |
Output is correct |
109 |
Correct |
104 ms |
199504 KB |
Output is correct |
110 |
Correct |
97 ms |
199440 KB |
Output is correct |
111 |
Correct |
92 ms |
199476 KB |
Output is correct |
112 |
Correct |
95 ms |
199484 KB |
Output is correct |
113 |
Correct |
102 ms |
199444 KB |
Output is correct |
114 |
Correct |
112 ms |
199460 KB |
Output is correct |
115 |
Correct |
100 ms |
199492 KB |
Output is correct |
116 |
Correct |
90 ms |
199448 KB |
Output is correct |
117 |
Correct |
89 ms |
199424 KB |
Output is correct |
118 |
Correct |
92 ms |
199492 KB |
Output is correct |
119 |
Correct |
92 ms |
199504 KB |
Output is correct |
120 |
Correct |
127 ms |
199516 KB |
Output is correct |
121 |
Correct |
1231 ms |
199452 KB |
Output is correct |
122 |
Correct |
1405 ms |
199524 KB |
Output is correct |
123 |
Correct |
920 ms |
199520 KB |
Output is correct |
124 |
Correct |
942 ms |
199524 KB |
Output is correct |
125 |
Correct |
1415 ms |
199524 KB |
Output is correct |
126 |
Correct |
1589 ms |
199524 KB |
Output is correct |
127 |
Correct |
1365 ms |
199524 KB |
Output is correct |
128 |
Correct |
1122 ms |
199564 KB |
Output is correct |
129 |
Correct |
900 ms |
199528 KB |
Output is correct |
130 |
Correct |
134 ms |
199620 KB |
Output is correct |
131 |
Correct |
86 ms |
199464 KB |
Output is correct |
132 |
Correct |
148 ms |
199444 KB |
Output is correct |
133 |
Correct |
90 ms |
199432 KB |
Output is correct |
134 |
Correct |
127 ms |
199572 KB |
Output is correct |
135 |
Correct |
229 ms |
199568 KB |
Output is correct |
136 |
Correct |
211 ms |
199520 KB |
Output is correct |
137 |
Correct |
159 ms |
199608 KB |
Output is correct |
138 |
Correct |
195 ms |
199452 KB |
Output is correct |
139 |
Correct |
121 ms |
199516 KB |
Output is correct |
140 |
Correct |
127 ms |
199520 KB |
Output is correct |
141 |
Correct |
1321 ms |
199520 KB |
Output is correct |
142 |
Correct |
1468 ms |
199492 KB |
Output is correct |
143 |
Correct |
949 ms |
199520 KB |
Output is correct |
144 |
Correct |
1060 ms |
199528 KB |
Output is correct |
145 |
Correct |
1477 ms |
199524 KB |
Output is correct |
146 |
Correct |
1756 ms |
199520 KB |
Output is correct |
147 |
Correct |
1501 ms |
199528 KB |
Output is correct |
148 |
Correct |
1108 ms |
199560 KB |
Output is correct |
149 |
Correct |
818 ms |
199496 KB |
Output is correct |
150 |
Correct |
121 ms |
199572 KB |
Output is correct |
151 |
Correct |
86 ms |
199488 KB |
Output is correct |
152 |
Correct |
146 ms |
199516 KB |
Output is correct |
153 |
Correct |
92 ms |
199492 KB |
Output is correct |
154 |
Correct |
113 ms |
199416 KB |
Output is correct |
155 |
Correct |
200 ms |
199460 KB |
Output is correct |
156 |
Correct |
208 ms |
199504 KB |
Output is correct |
157 |
Correct |
147 ms |
199620 KB |
Output is correct |
158 |
Correct |
193 ms |
199492 KB |
Output is correct |
159 |
Correct |
122 ms |
199476 KB |
Output is correct |
160 |
Correct |
126 ms |
199464 KB |
Output is correct |
161 |
Correct |
1206 ms |
199520 KB |
Output is correct |
162 |
Correct |
1319 ms |
199528 KB |
Output is correct |
163 |
Correct |
893 ms |
199520 KB |
Output is correct |
164 |
Correct |
945 ms |
199524 KB |
Output is correct |
165 |
Correct |
1338 ms |
199524 KB |
Output is correct |
166 |
Correct |
1573 ms |
199524 KB |
Output is correct |
167 |
Correct |
1414 ms |
199524 KB |
Output is correct |
168 |
Correct |
1186 ms |
199524 KB |
Output is correct |
169 |
Correct |
895 ms |
199524 KB |
Output is correct |
170 |
Correct |
121 ms |
199532 KB |
Output is correct |
171 |
Correct |
87 ms |
199476 KB |
Output is correct |
172 |
Correct |
150 ms |
199408 KB |
Output is correct |
173 |
Correct |
90 ms |
199440 KB |
Output is correct |
174 |
Correct |
134 ms |
199436 KB |
Output is correct |
175 |
Correct |
207 ms |
199620 KB |
Output is correct |
176 |
Correct |
222 ms |
199520 KB |
Output is correct |
177 |
Correct |
148 ms |
199452 KB |
Output is correct |
178 |
Correct |
186 ms |
199492 KB |
Output is correct |
179 |
Correct |
117 ms |
199532 KB |
Output is correct |
180 |
Correct |
125 ms |
199492 KB |
Output is correct |
181 |
Correct |
1082 ms |
199524 KB |
Output is correct |
182 |
Correct |
1361 ms |
199520 KB |
Output is correct |
183 |
Correct |
859 ms |
199520 KB |
Output is correct |
184 |
Correct |
1029 ms |
199524 KB |
Output is correct |
185 |
Correct |
1347 ms |
199524 KB |
Output is correct |
186 |
Correct |
1550 ms |
199524 KB |
Output is correct |
187 |
Correct |
1401 ms |
199524 KB |
Output is correct |
188 |
Correct |
1083 ms |
199524 KB |
Output is correct |
189 |
Correct |
894 ms |
199520 KB |
Output is correct |
190 |
Correct |
134 ms |
199520 KB |
Output is correct |
191 |
Correct |
89 ms |
199492 KB |
Output is correct |
192 |
Correct |
148 ms |
199552 KB |
Output is correct |
193 |
Correct |
89 ms |
199480 KB |
Output is correct |
194 |
Correct |
111 ms |
199536 KB |
Output is correct |
195 |
Correct |
217 ms |
199524 KB |
Output is correct |
196 |
Correct |
209 ms |
199492 KB |
Output is correct |
197 |
Correct |
149 ms |
199500 KB |
Output is correct |
198 |
Correct |
180 ms |
199596 KB |
Output is correct |
199 |
Correct |
121 ms |
199516 KB |
Output is correct |
200 |
Correct |
121 ms |
199596 KB |
Output is correct |
201 |
Correct |
1180 ms |
199528 KB |
Output is correct |
202 |
Correct |
1354 ms |
199528 KB |
Output is correct |
203 |
Correct |
975 ms |
199524 KB |
Output is correct |
204 |
Correct |
944 ms |
199524 KB |
Output is correct |
205 |
Correct |
1301 ms |
199520 KB |
Output is correct |
206 |
Correct |
1532 ms |
199520 KB |
Output is correct |
207 |
Correct |
1349 ms |
199524 KB |
Output is correct |
208 |
Correct |
1146 ms |
199640 KB |
Output is correct |
209 |
Correct |
871 ms |
199540 KB |
Output is correct |
210 |
Correct |
122 ms |
199492 KB |
Output is correct |
211 |
Correct |
89 ms |
199512 KB |
Output is correct |
212 |
Correct |
144 ms |
199540 KB |
Output is correct |
213 |
Correct |
89 ms |
199524 KB |
Output is correct |
214 |
Correct |
123 ms |
199636 KB |
Output is correct |
215 |
Correct |
198 ms |
199508 KB |
Output is correct |
216 |
Correct |
217 ms |
199616 KB |
Output is correct |
217 |
Correct |
164 ms |
199524 KB |
Output is correct |
218 |
Correct |
192 ms |
199520 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
279 ms |
404396 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
278 ms |
404420 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
280 ms |
404488 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
92 ms |
199488 KB |
Output is correct |
2 |
Correct |
86 ms |
199504 KB |
Output is correct |
3 |
Correct |
84 ms |
199460 KB |
Output is correct |
4 |
Correct |
87 ms |
199488 KB |
Output is correct |
5 |
Correct |
88 ms |
199444 KB |
Output is correct |
6 |
Correct |
96 ms |
199500 KB |
Output is correct |
7 |
Correct |
87 ms |
199412 KB |
Output is correct |
8 |
Correct |
83 ms |
199388 KB |
Output is correct |
9 |
Correct |
86 ms |
199516 KB |
Output is correct |
10 |
Correct |
89 ms |
199420 KB |
Output is correct |
11 |
Correct |
85 ms |
199480 KB |
Output is correct |
12 |
Correct |
87 ms |
199460 KB |
Output is correct |
13 |
Correct |
86 ms |
199496 KB |
Output is correct |
14 |
Correct |
87 ms |
199484 KB |
Output is correct |
15 |
Correct |
90 ms |
199452 KB |
Output is correct |
16 |
Correct |
89 ms |
199436 KB |
Output is correct |
17 |
Correct |
89 ms |
199392 KB |
Output is correct |
18 |
Correct |
87 ms |
199400 KB |
Output is correct |
19 |
Correct |
85 ms |
199500 KB |
Output is correct |
20 |
Correct |
85 ms |
199408 KB |
Output is correct |
21 |
Correct |
85 ms |
199484 KB |
Output is correct |
22 |
Correct |
95 ms |
199448 KB |
Output is correct |
23 |
Correct |
86 ms |
199504 KB |
Output is correct |
24 |
Correct |
86 ms |
199408 KB |
Output is correct |
25 |
Correct |
85 ms |
199420 KB |
Output is correct |
26 |
Correct |
87 ms |
199492 KB |
Output is correct |
27 |
Correct |
85 ms |
199516 KB |
Output is correct |
28 |
Correct |
85 ms |
199492 KB |
Output is correct |
29 |
Correct |
85 ms |
199536 KB |
Output is correct |
30 |
Correct |
91 ms |
199408 KB |
Output is correct |
31 |
Correct |
85 ms |
199492 KB |
Output is correct |
32 |
Correct |
88 ms |
199396 KB |
Output is correct |
33 |
Correct |
86 ms |
199424 KB |
Output is correct |
34 |
Correct |
86 ms |
199444 KB |
Output is correct |
35 |
Correct |
86 ms |
199488 KB |
Output is correct |
36 |
Correct |
85 ms |
199436 KB |
Output is correct |
37 |
Correct |
86 ms |
199420 KB |
Output is correct |
38 |
Correct |
88 ms |
199424 KB |
Output is correct |
39 |
Correct |
88 ms |
199464 KB |
Output is correct |
40 |
Correct |
90 ms |
199492 KB |
Output is correct |
41 |
Correct |
87 ms |
199476 KB |
Output is correct |
42 |
Correct |
88 ms |
199616 KB |
Output is correct |
43 |
Correct |
97 ms |
199492 KB |
Output is correct |
44 |
Correct |
91 ms |
199512 KB |
Output is correct |
45 |
Correct |
86 ms |
199452 KB |
Output is correct |
46 |
Correct |
88 ms |
199492 KB |
Output is correct |
47 |
Correct |
87 ms |
199412 KB |
Output is correct |
48 |
Correct |
89 ms |
199440 KB |
Output is correct |
49 |
Correct |
96 ms |
199492 KB |
Output is correct |
50 |
Correct |
97 ms |
199416 KB |
Output is correct |
51 |
Correct |
97 ms |
199460 KB |
Output is correct |
52 |
Correct |
86 ms |
199544 KB |
Output is correct |
53 |
Correct |
91 ms |
199480 KB |
Output is correct |
54 |
Correct |
86 ms |
199392 KB |
Output is correct |
55 |
Correct |
84 ms |
199492 KB |
Output is correct |
56 |
Correct |
87 ms |
199420 KB |
Output is correct |
57 |
Correct |
87 ms |
199408 KB |
Output is correct |
58 |
Correct |
98 ms |
199524 KB |
Output is correct |
59 |
Correct |
97 ms |
199428 KB |
Output is correct |
60 |
Correct |
85 ms |
199392 KB |
Output is correct |
61 |
Correct |
94 ms |
199400 KB |
Output is correct |
62 |
Correct |
86 ms |
199496 KB |
Output is correct |
63 |
Correct |
89 ms |
199396 KB |
Output is correct |
64 |
Correct |
93 ms |
199440 KB |
Output is correct |
65 |
Correct |
85 ms |
199416 KB |
Output is correct |
66 |
Correct |
95 ms |
199492 KB |
Output is correct |
67 |
Correct |
85 ms |
199440 KB |
Output is correct |
68 |
Correct |
95 ms |
199432 KB |
Output is correct |
69 |
Correct |
86 ms |
199504 KB |
Output is correct |
70 |
Correct |
88 ms |
199488 KB |
Output is correct |
71 |
Correct |
86 ms |
199408 KB |
Output is correct |
72 |
Correct |
84 ms |
199420 KB |
Output is correct |
73 |
Correct |
86 ms |
199472 KB |
Output is correct |
74 |
Correct |
87 ms |
199468 KB |
Output is correct |
75 |
Correct |
94 ms |
199436 KB |
Output is correct |
76 |
Correct |
84 ms |
199476 KB |
Output is correct |
77 |
Correct |
84 ms |
199432 KB |
Output is correct |
78 |
Correct |
95 ms |
199488 KB |
Output is correct |
79 |
Correct |
95 ms |
199492 KB |
Output is correct |
80 |
Correct |
88 ms |
199480 KB |
Output is correct |
81 |
Correct |
90 ms |
199488 KB |
Output is correct |
82 |
Correct |
86 ms |
199492 KB |
Output is correct |
83 |
Correct |
86 ms |
199460 KB |
Output is correct |
84 |
Correct |
89 ms |
199620 KB |
Output is correct |
85 |
Correct |
88 ms |
199432 KB |
Output is correct |
86 |
Correct |
84 ms |
199428 KB |
Output is correct |
87 |
Correct |
94 ms |
199400 KB |
Output is correct |
88 |
Correct |
89 ms |
199432 KB |
Output is correct |
89 |
Correct |
86 ms |
199452 KB |
Output is correct |
90 |
Correct |
87 ms |
199472 KB |
Output is correct |
91 |
Correct |
86 ms |
199436 KB |
Output is correct |
92 |
Correct |
89 ms |
199448 KB |
Output is correct |
93 |
Correct |
86 ms |
199492 KB |
Output is correct |
94 |
Correct |
86 ms |
199496 KB |
Output is correct |
95 |
Correct |
87 ms |
199404 KB |
Output is correct |
96 |
Correct |
84 ms |
199460 KB |
Output is correct |
97 |
Correct |
86 ms |
199500 KB |
Output is correct |
98 |
Correct |
85 ms |
199484 KB |
Output is correct |
99 |
Correct |
90 ms |
199492 KB |
Output is correct |
100 |
Correct |
100 ms |
199492 KB |
Output is correct |
101 |
Correct |
84 ms |
199424 KB |
Output is correct |
102 |
Correct |
86 ms |
199516 KB |
Output is correct |
103 |
Correct |
99 ms |
199428 KB |
Output is correct |
104 |
Correct |
91 ms |
199436 KB |
Output is correct |
105 |
Correct |
96 ms |
199492 KB |
Output is correct |
106 |
Correct |
88 ms |
199508 KB |
Output is correct |
107 |
Correct |
85 ms |
199596 KB |
Output is correct |
108 |
Correct |
93 ms |
199476 KB |
Output is correct |
109 |
Correct |
104 ms |
199504 KB |
Output is correct |
110 |
Correct |
97 ms |
199440 KB |
Output is correct |
111 |
Correct |
92 ms |
199476 KB |
Output is correct |
112 |
Correct |
95 ms |
199484 KB |
Output is correct |
113 |
Correct |
102 ms |
199444 KB |
Output is correct |
114 |
Correct |
112 ms |
199460 KB |
Output is correct |
115 |
Correct |
100 ms |
199492 KB |
Output is correct |
116 |
Correct |
90 ms |
199448 KB |
Output is correct |
117 |
Correct |
89 ms |
199424 KB |
Output is correct |
118 |
Correct |
92 ms |
199492 KB |
Output is correct |
119 |
Correct |
92 ms |
199504 KB |
Output is correct |
120 |
Correct |
127 ms |
199516 KB |
Output is correct |
121 |
Correct |
1231 ms |
199452 KB |
Output is correct |
122 |
Correct |
1405 ms |
199524 KB |
Output is correct |
123 |
Correct |
920 ms |
199520 KB |
Output is correct |
124 |
Correct |
942 ms |
199524 KB |
Output is correct |
125 |
Correct |
1415 ms |
199524 KB |
Output is correct |
126 |
Correct |
1589 ms |
199524 KB |
Output is correct |
127 |
Correct |
1365 ms |
199524 KB |
Output is correct |
128 |
Correct |
1122 ms |
199564 KB |
Output is correct |
129 |
Correct |
900 ms |
199528 KB |
Output is correct |
130 |
Correct |
134 ms |
199620 KB |
Output is correct |
131 |
Correct |
86 ms |
199464 KB |
Output is correct |
132 |
Correct |
148 ms |
199444 KB |
Output is correct |
133 |
Correct |
90 ms |
199432 KB |
Output is correct |
134 |
Correct |
127 ms |
199572 KB |
Output is correct |
135 |
Correct |
229 ms |
199568 KB |
Output is correct |
136 |
Correct |
211 ms |
199520 KB |
Output is correct |
137 |
Correct |
159 ms |
199608 KB |
Output is correct |
138 |
Correct |
195 ms |
199452 KB |
Output is correct |
139 |
Correct |
121 ms |
199516 KB |
Output is correct |
140 |
Correct |
127 ms |
199520 KB |
Output is correct |
141 |
Correct |
1321 ms |
199520 KB |
Output is correct |
142 |
Correct |
1468 ms |
199492 KB |
Output is correct |
143 |
Correct |
949 ms |
199520 KB |
Output is correct |
144 |
Correct |
1060 ms |
199528 KB |
Output is correct |
145 |
Correct |
1477 ms |
199524 KB |
Output is correct |
146 |
Correct |
1756 ms |
199520 KB |
Output is correct |
147 |
Correct |
1501 ms |
199528 KB |
Output is correct |
148 |
Correct |
1108 ms |
199560 KB |
Output is correct |
149 |
Correct |
818 ms |
199496 KB |
Output is correct |
150 |
Correct |
121 ms |
199572 KB |
Output is correct |
151 |
Correct |
86 ms |
199488 KB |
Output is correct |
152 |
Correct |
146 ms |
199516 KB |
Output is correct |
153 |
Correct |
92 ms |
199492 KB |
Output is correct |
154 |
Correct |
113 ms |
199416 KB |
Output is correct |
155 |
Correct |
200 ms |
199460 KB |
Output is correct |
156 |
Correct |
208 ms |
199504 KB |
Output is correct |
157 |
Correct |
147 ms |
199620 KB |
Output is correct |
158 |
Correct |
193 ms |
199492 KB |
Output is correct |
159 |
Correct |
122 ms |
199476 KB |
Output is correct |
160 |
Correct |
126 ms |
199464 KB |
Output is correct |
161 |
Correct |
1206 ms |
199520 KB |
Output is correct |
162 |
Correct |
1319 ms |
199528 KB |
Output is correct |
163 |
Correct |
893 ms |
199520 KB |
Output is correct |
164 |
Correct |
945 ms |
199524 KB |
Output is correct |
165 |
Correct |
1338 ms |
199524 KB |
Output is correct |
166 |
Correct |
1573 ms |
199524 KB |
Output is correct |
167 |
Correct |
1414 ms |
199524 KB |
Output is correct |
168 |
Correct |
1186 ms |
199524 KB |
Output is correct |
169 |
Correct |
895 ms |
199524 KB |
Output is correct |
170 |
Correct |
121 ms |
199532 KB |
Output is correct |
171 |
Correct |
87 ms |
199476 KB |
Output is correct |
172 |
Correct |
150 ms |
199408 KB |
Output is correct |
173 |
Correct |
90 ms |
199440 KB |
Output is correct |
174 |
Correct |
134 ms |
199436 KB |
Output is correct |
175 |
Correct |
207 ms |
199620 KB |
Output is correct |
176 |
Correct |
222 ms |
199520 KB |
Output is correct |
177 |
Correct |
148 ms |
199452 KB |
Output is correct |
178 |
Correct |
186 ms |
199492 KB |
Output is correct |
179 |
Correct |
117 ms |
199532 KB |
Output is correct |
180 |
Correct |
125 ms |
199492 KB |
Output is correct |
181 |
Correct |
1082 ms |
199524 KB |
Output is correct |
182 |
Correct |
1361 ms |
199520 KB |
Output is correct |
183 |
Correct |
859 ms |
199520 KB |
Output is correct |
184 |
Correct |
1029 ms |
199524 KB |
Output is correct |
185 |
Correct |
1347 ms |
199524 KB |
Output is correct |
186 |
Correct |
1550 ms |
199524 KB |
Output is correct |
187 |
Correct |
1401 ms |
199524 KB |
Output is correct |
188 |
Correct |
1083 ms |
199524 KB |
Output is correct |
189 |
Correct |
894 ms |
199520 KB |
Output is correct |
190 |
Correct |
134 ms |
199520 KB |
Output is correct |
191 |
Correct |
89 ms |
199492 KB |
Output is correct |
192 |
Correct |
148 ms |
199552 KB |
Output is correct |
193 |
Correct |
89 ms |
199480 KB |
Output is correct |
194 |
Correct |
111 ms |
199536 KB |
Output is correct |
195 |
Correct |
217 ms |
199524 KB |
Output is correct |
196 |
Correct |
209 ms |
199492 KB |
Output is correct |
197 |
Correct |
149 ms |
199500 KB |
Output is correct |
198 |
Correct |
180 ms |
199596 KB |
Output is correct |
199 |
Correct |
121 ms |
199516 KB |
Output is correct |
200 |
Correct |
121 ms |
199596 KB |
Output is correct |
201 |
Correct |
1180 ms |
199528 KB |
Output is correct |
202 |
Correct |
1354 ms |
199528 KB |
Output is correct |
203 |
Correct |
975 ms |
199524 KB |
Output is correct |
204 |
Correct |
944 ms |
199524 KB |
Output is correct |
205 |
Correct |
1301 ms |
199520 KB |
Output is correct |
206 |
Correct |
1532 ms |
199520 KB |
Output is correct |
207 |
Correct |
1349 ms |
199524 KB |
Output is correct |
208 |
Correct |
1146 ms |
199640 KB |
Output is correct |
209 |
Correct |
871 ms |
199540 KB |
Output is correct |
210 |
Correct |
122 ms |
199492 KB |
Output is correct |
211 |
Correct |
89 ms |
199512 KB |
Output is correct |
212 |
Correct |
144 ms |
199540 KB |
Output is correct |
213 |
Correct |
89 ms |
199524 KB |
Output is correct |
214 |
Correct |
123 ms |
199636 KB |
Output is correct |
215 |
Correct |
198 ms |
199508 KB |
Output is correct |
216 |
Correct |
217 ms |
199616 KB |
Output is correct |
217 |
Correct |
164 ms |
199524 KB |
Output is correct |
218 |
Correct |
192 ms |
199520 KB |
Output is correct |
219 |
Runtime error |
279 ms |
404396 KB |
Execution killed with signal 11 |
220 |
Halted |
0 ms |
0 KB |
- |