# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
983677 |
2024-05-15T22:36:16 Z |
mmk |
Jelly Flavours (IOI20_jelly) |
C++14 |
|
754 ms |
1046868 KB |
#include "jelly.h"
#include <vector>
#include<bits/stdc++.h>
using namespace std;
const int MAXN = 510;
int dp[MAXN][MAXN][MAXN];
int calc(int i, int x, int y, int N, vector<int> &a, vector<int> &b)
{
if(x < 0 || y < 0) return -1;
if(dp[i][x][y] != 0) return dp[i][x][y];
if(i > N) return 0;
int op1 = calc(i + 1, x - a[i - 1], y, N, a, b) + 1;
int op2 = calc(i + 1, x, y - b[i - 1], N, a, b) + 1;
int op3 = calc(i + 1, x , y , N, a, b);
dp[i][x][y] = max(max(op1,op2),op3);
// cerr << dp[i][x][y] << " " << i << " " << x << " " << y << "\n";
return dp[i][x][y];
}
int find_maximum_unique(int x, int y, std::vector<int> a, std::vector<int> b) {
int N = a.size();
for(int i = 0; i <= N + 5; i++)
{
for(int j = 0; j <= N + 5; j ++)
{
for(int k = 0; k <= N + 5; k++)
dp[i][j][k] = 0;
}
}
return calc(1,x,y,N,a,b);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
14684 KB |
Output is correct |
2 |
Correct |
3 ms |
16728 KB |
Output is correct |
3 |
Correct |
2 ms |
14684 KB |
Output is correct |
4 |
Correct |
5 ms |
18872 KB |
Output is correct |
5 |
Correct |
2 ms |
14684 KB |
Output is correct |
6 |
Correct |
2 ms |
14936 KB |
Output is correct |
7 |
Correct |
2 ms |
16732 KB |
Output is correct |
8 |
Correct |
2 ms |
14684 KB |
Output is correct |
9 |
Correct |
2 ms |
16732 KB |
Output is correct |
10 |
Correct |
4 ms |
18780 KB |
Output is correct |
11 |
Correct |
2 ms |
14820 KB |
Output is correct |
12 |
Correct |
2 ms |
14680 KB |
Output is correct |
13 |
Correct |
2 ms |
16732 KB |
Output is correct |
14 |
Correct |
2 ms |
14684 KB |
Output is correct |
15 |
Correct |
4 ms |
18780 KB |
Output is correct |
16 |
Correct |
2 ms |
14680 KB |
Output is correct |
17 |
Correct |
2 ms |
14684 KB |
Output is correct |
18 |
Correct |
2 ms |
16732 KB |
Output is correct |
19 |
Correct |
2 ms |
14680 KB |
Output is correct |
20 |
Correct |
2 ms |
16732 KB |
Output is correct |
21 |
Correct |
3 ms |
16732 KB |
Output is correct |
22 |
Correct |
4 ms |
18780 KB |
Output is correct |
23 |
Correct |
2 ms |
17080 KB |
Output is correct |
24 |
Correct |
2 ms |
14684 KB |
Output is correct |
25 |
Correct |
2 ms |
16732 KB |
Output is correct |
26 |
Correct |
2 ms |
12636 KB |
Output is correct |
27 |
Correct |
2 ms |
12636 KB |
Output is correct |
28 |
Correct |
2 ms |
18780 KB |
Output is correct |
29 |
Correct |
2 ms |
18780 KB |
Output is correct |
30 |
Correct |
2 ms |
14684 KB |
Output is correct |
31 |
Correct |
2 ms |
16728 KB |
Output is correct |
32 |
Correct |
2 ms |
14684 KB |
Output is correct |
33 |
Correct |
2 ms |
16732 KB |
Output is correct |
34 |
Correct |
2 ms |
12632 KB |
Output is correct |
35 |
Correct |
2 ms |
12636 KB |
Output is correct |
36 |
Correct |
3 ms |
18780 KB |
Output is correct |
37 |
Correct |
3 ms |
18776 KB |
Output is correct |
38 |
Correct |
2 ms |
14684 KB |
Output is correct |
39 |
Correct |
3 ms |
16732 KB |
Output is correct |
40 |
Correct |
3 ms |
14680 KB |
Output is correct |
41 |
Correct |
2 ms |
14684 KB |
Output is correct |
42 |
Correct |
2 ms |
16732 KB |
Output is correct |
43 |
Correct |
2 ms |
14680 KB |
Output is correct |
44 |
Correct |
5 ms |
18780 KB |
Output is correct |
45 |
Correct |
2 ms |
14684 KB |
Output is correct |
46 |
Correct |
2 ms |
14684 KB |
Output is correct |
47 |
Correct |
2 ms |
16728 KB |
Output is correct |
48 |
Correct |
2 ms |
14940 KB |
Output is correct |
49 |
Correct |
2 ms |
16732 KB |
Output is correct |
50 |
Correct |
6 ms |
18780 KB |
Output is correct |
51 |
Correct |
3 ms |
16732 KB |
Output is correct |
52 |
Correct |
2 ms |
14684 KB |
Output is correct |
53 |
Correct |
2 ms |
16732 KB |
Output is correct |
54 |
Correct |
2 ms |
12632 KB |
Output is correct |
55 |
Correct |
2 ms |
12636 KB |
Output is correct |
56 |
Correct |
3 ms |
18952 KB |
Output is correct |
57 |
Correct |
3 ms |
18776 KB |
Output is correct |
58 |
Correct |
2 ms |
14684 KB |
Output is correct |
59 |
Correct |
3 ms |
16732 KB |
Output is correct |
60 |
Correct |
2 ms |
14684 KB |
Output is correct |
61 |
Correct |
2 ms |
14680 KB |
Output is correct |
62 |
Correct |
2 ms |
16732 KB |
Output is correct |
63 |
Correct |
2 ms |
14684 KB |
Output is correct |
64 |
Correct |
4 ms |
18780 KB |
Output is correct |
65 |
Correct |
2 ms |
14684 KB |
Output is correct |
66 |
Correct |
2 ms |
14684 KB |
Output is correct |
67 |
Correct |
3 ms |
16732 KB |
Output is correct |
68 |
Correct |
3 ms |
14680 KB |
Output is correct |
69 |
Correct |
3 ms |
16732 KB |
Output is correct |
70 |
Correct |
4 ms |
18780 KB |
Output is correct |
71 |
Correct |
2 ms |
16732 KB |
Output is correct |
72 |
Correct |
2 ms |
14684 KB |
Output is correct |
73 |
Correct |
2 ms |
16732 KB |
Output is correct |
74 |
Correct |
2 ms |
12636 KB |
Output is correct |
75 |
Correct |
2 ms |
12636 KB |
Output is correct |
76 |
Correct |
3 ms |
18780 KB |
Output is correct |
77 |
Correct |
3 ms |
18780 KB |
Output is correct |
78 |
Correct |
2 ms |
14684 KB |
Output is correct |
79 |
Correct |
3 ms |
16732 KB |
Output is correct |
80 |
Correct |
3 ms |
14692 KB |
Output is correct |
81 |
Correct |
2 ms |
14680 KB |
Output is correct |
82 |
Correct |
2 ms |
16824 KB |
Output is correct |
83 |
Correct |
2 ms |
14680 KB |
Output is correct |
84 |
Correct |
4 ms |
18776 KB |
Output is correct |
85 |
Correct |
2 ms |
14684 KB |
Output is correct |
86 |
Correct |
2 ms |
14684 KB |
Output is correct |
87 |
Correct |
2 ms |
16732 KB |
Output is correct |
88 |
Correct |
2 ms |
14684 KB |
Output is correct |
89 |
Correct |
3 ms |
16732 KB |
Output is correct |
90 |
Correct |
4 ms |
18780 KB |
Output is correct |
91 |
Correct |
2 ms |
16732 KB |
Output is correct |
92 |
Correct |
2 ms |
14684 KB |
Output is correct |
93 |
Correct |
2 ms |
16732 KB |
Output is correct |
94 |
Correct |
2 ms |
12636 KB |
Output is correct |
95 |
Correct |
2 ms |
12636 KB |
Output is correct |
96 |
Correct |
2 ms |
18780 KB |
Output is correct |
97 |
Correct |
3 ms |
18780 KB |
Output is correct |
98 |
Correct |
2 ms |
14684 KB |
Output is correct |
99 |
Correct |
2 ms |
16732 KB |
Output is correct |
100 |
Correct |
2 ms |
14680 KB |
Output is correct |
101 |
Correct |
2 ms |
14684 KB |
Output is correct |
102 |
Correct |
2 ms |
16732 KB |
Output is correct |
103 |
Correct |
2 ms |
14684 KB |
Output is correct |
104 |
Correct |
4 ms |
18780 KB |
Output is correct |
105 |
Correct |
2 ms |
14684 KB |
Output is correct |
106 |
Correct |
2 ms |
14684 KB |
Output is correct |
107 |
Correct |
2 ms |
16732 KB |
Output is correct |
108 |
Correct |
2 ms |
14684 KB |
Output is correct |
109 |
Correct |
3 ms |
16728 KB |
Output is correct |
110 |
Correct |
4 ms |
18780 KB |
Output is correct |
111 |
Correct |
3 ms |
16988 KB |
Output is correct |
112 |
Correct |
2 ms |
14696 KB |
Output is correct |
113 |
Correct |
2 ms |
16732 KB |
Output is correct |
114 |
Correct |
2 ms |
12636 KB |
Output is correct |
115 |
Correct |
2 ms |
12636 KB |
Output is correct |
116 |
Correct |
2 ms |
18780 KB |
Output is correct |
117 |
Correct |
3 ms |
18780 KB |
Output is correct |
118 |
Correct |
2 ms |
14680 KB |
Output is correct |
119 |
Correct |
3 ms |
16728 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
14684 KB |
Output is correct |
2 |
Correct |
3 ms |
16728 KB |
Output is correct |
3 |
Correct |
2 ms |
14684 KB |
Output is correct |
4 |
Correct |
5 ms |
18872 KB |
Output is correct |
5 |
Correct |
2 ms |
14684 KB |
Output is correct |
6 |
Correct |
2 ms |
14936 KB |
Output is correct |
7 |
Correct |
2 ms |
16732 KB |
Output is correct |
8 |
Correct |
2 ms |
14684 KB |
Output is correct |
9 |
Correct |
2 ms |
16732 KB |
Output is correct |
10 |
Correct |
4 ms |
18780 KB |
Output is correct |
11 |
Correct |
2 ms |
14820 KB |
Output is correct |
12 |
Correct |
2 ms |
14680 KB |
Output is correct |
13 |
Correct |
2 ms |
16732 KB |
Output is correct |
14 |
Correct |
2 ms |
14684 KB |
Output is correct |
15 |
Correct |
4 ms |
18780 KB |
Output is correct |
16 |
Correct |
2 ms |
14680 KB |
Output is correct |
17 |
Correct |
2 ms |
14684 KB |
Output is correct |
18 |
Correct |
2 ms |
16732 KB |
Output is correct |
19 |
Correct |
2 ms |
14680 KB |
Output is correct |
20 |
Correct |
2 ms |
16732 KB |
Output is correct |
21 |
Correct |
3 ms |
16732 KB |
Output is correct |
22 |
Correct |
4 ms |
18780 KB |
Output is correct |
23 |
Correct |
2 ms |
17080 KB |
Output is correct |
24 |
Correct |
2 ms |
14684 KB |
Output is correct |
25 |
Correct |
2 ms |
16732 KB |
Output is correct |
26 |
Correct |
2 ms |
12636 KB |
Output is correct |
27 |
Correct |
2 ms |
12636 KB |
Output is correct |
28 |
Correct |
2 ms |
18780 KB |
Output is correct |
29 |
Correct |
2 ms |
18780 KB |
Output is correct |
30 |
Correct |
2 ms |
14684 KB |
Output is correct |
31 |
Correct |
2 ms |
16728 KB |
Output is correct |
32 |
Correct |
2 ms |
14684 KB |
Output is correct |
33 |
Correct |
2 ms |
16732 KB |
Output is correct |
34 |
Correct |
2 ms |
12632 KB |
Output is correct |
35 |
Correct |
2 ms |
12636 KB |
Output is correct |
36 |
Correct |
3 ms |
18780 KB |
Output is correct |
37 |
Correct |
3 ms |
18776 KB |
Output is correct |
38 |
Correct |
2 ms |
14684 KB |
Output is correct |
39 |
Correct |
3 ms |
16732 KB |
Output is correct |
40 |
Correct |
3 ms |
14680 KB |
Output is correct |
41 |
Correct |
2 ms |
14684 KB |
Output is correct |
42 |
Correct |
2 ms |
16732 KB |
Output is correct |
43 |
Correct |
2 ms |
14680 KB |
Output is correct |
44 |
Correct |
5 ms |
18780 KB |
Output is correct |
45 |
Correct |
2 ms |
14684 KB |
Output is correct |
46 |
Correct |
2 ms |
14684 KB |
Output is correct |
47 |
Correct |
2 ms |
16728 KB |
Output is correct |
48 |
Correct |
2 ms |
14940 KB |
Output is correct |
49 |
Correct |
2 ms |
16732 KB |
Output is correct |
50 |
Correct |
6 ms |
18780 KB |
Output is correct |
51 |
Correct |
3 ms |
16732 KB |
Output is correct |
52 |
Correct |
2 ms |
14684 KB |
Output is correct |
53 |
Correct |
2 ms |
16732 KB |
Output is correct |
54 |
Correct |
2 ms |
12632 KB |
Output is correct |
55 |
Correct |
2 ms |
12636 KB |
Output is correct |
56 |
Correct |
3 ms |
18952 KB |
Output is correct |
57 |
Correct |
3 ms |
18776 KB |
Output is correct |
58 |
Correct |
2 ms |
14684 KB |
Output is correct |
59 |
Correct |
3 ms |
16732 KB |
Output is correct |
60 |
Correct |
2 ms |
14684 KB |
Output is correct |
61 |
Correct |
2 ms |
14680 KB |
Output is correct |
62 |
Correct |
2 ms |
16732 KB |
Output is correct |
63 |
Correct |
2 ms |
14684 KB |
Output is correct |
64 |
Correct |
4 ms |
18780 KB |
Output is correct |
65 |
Correct |
2 ms |
14684 KB |
Output is correct |
66 |
Correct |
2 ms |
14684 KB |
Output is correct |
67 |
Correct |
3 ms |
16732 KB |
Output is correct |
68 |
Correct |
3 ms |
14680 KB |
Output is correct |
69 |
Correct |
3 ms |
16732 KB |
Output is correct |
70 |
Correct |
4 ms |
18780 KB |
Output is correct |
71 |
Correct |
2 ms |
16732 KB |
Output is correct |
72 |
Correct |
2 ms |
14684 KB |
Output is correct |
73 |
Correct |
2 ms |
16732 KB |
Output is correct |
74 |
Correct |
2 ms |
12636 KB |
Output is correct |
75 |
Correct |
2 ms |
12636 KB |
Output is correct |
76 |
Correct |
3 ms |
18780 KB |
Output is correct |
77 |
Correct |
3 ms |
18780 KB |
Output is correct |
78 |
Correct |
2 ms |
14684 KB |
Output is correct |
79 |
Correct |
3 ms |
16732 KB |
Output is correct |
80 |
Correct |
3 ms |
14692 KB |
Output is correct |
81 |
Correct |
2 ms |
14680 KB |
Output is correct |
82 |
Correct |
2 ms |
16824 KB |
Output is correct |
83 |
Correct |
2 ms |
14680 KB |
Output is correct |
84 |
Correct |
4 ms |
18776 KB |
Output is correct |
85 |
Correct |
2 ms |
14684 KB |
Output is correct |
86 |
Correct |
2 ms |
14684 KB |
Output is correct |
87 |
Correct |
2 ms |
16732 KB |
Output is correct |
88 |
Correct |
2 ms |
14684 KB |
Output is correct |
89 |
Correct |
3 ms |
16732 KB |
Output is correct |
90 |
Correct |
4 ms |
18780 KB |
Output is correct |
91 |
Correct |
2 ms |
16732 KB |
Output is correct |
92 |
Correct |
2 ms |
14684 KB |
Output is correct |
93 |
Correct |
2 ms |
16732 KB |
Output is correct |
94 |
Correct |
2 ms |
12636 KB |
Output is correct |
95 |
Correct |
2 ms |
12636 KB |
Output is correct |
96 |
Correct |
2 ms |
18780 KB |
Output is correct |
97 |
Correct |
3 ms |
18780 KB |
Output is correct |
98 |
Correct |
2 ms |
14684 KB |
Output is correct |
99 |
Correct |
2 ms |
16732 KB |
Output is correct |
100 |
Correct |
2 ms |
14680 KB |
Output is correct |
101 |
Correct |
2 ms |
14684 KB |
Output is correct |
102 |
Correct |
2 ms |
16732 KB |
Output is correct |
103 |
Correct |
2 ms |
14684 KB |
Output is correct |
104 |
Correct |
4 ms |
18780 KB |
Output is correct |
105 |
Correct |
2 ms |
14684 KB |
Output is correct |
106 |
Correct |
2 ms |
14684 KB |
Output is correct |
107 |
Correct |
2 ms |
16732 KB |
Output is correct |
108 |
Correct |
2 ms |
14684 KB |
Output is correct |
109 |
Correct |
3 ms |
16728 KB |
Output is correct |
110 |
Correct |
4 ms |
18780 KB |
Output is correct |
111 |
Correct |
3 ms |
16988 KB |
Output is correct |
112 |
Correct |
2 ms |
14696 KB |
Output is correct |
113 |
Correct |
2 ms |
16732 KB |
Output is correct |
114 |
Correct |
2 ms |
12636 KB |
Output is correct |
115 |
Correct |
2 ms |
12636 KB |
Output is correct |
116 |
Correct |
2 ms |
18780 KB |
Output is correct |
117 |
Correct |
3 ms |
18780 KB |
Output is correct |
118 |
Correct |
2 ms |
14680 KB |
Output is correct |
119 |
Correct |
3 ms |
16728 KB |
Output is correct |
120 |
Correct |
104 ms |
185684 KB |
Output is correct |
121 |
Correct |
684 ms |
198108 KB |
Output is correct |
122 |
Correct |
632 ms |
193264 KB |
Output is correct |
123 |
Correct |
298 ms |
188752 KB |
Output is correct |
124 |
Correct |
361 ms |
192532 KB |
Output is correct |
125 |
Correct |
619 ms |
189224 KB |
Output is correct |
126 |
Correct |
638 ms |
192644 KB |
Output is correct |
127 |
Correct |
577 ms |
195972 KB |
Output is correct |
128 |
Correct |
393 ms |
200004 KB |
Output is correct |
129 |
Correct |
293 ms |
188064 KB |
Output is correct |
130 |
Correct |
42 ms |
158544 KB |
Output is correct |
131 |
Correct |
24 ms |
158552 KB |
Output is correct |
132 |
Correct |
48 ms |
157268 KB |
Output is correct |
133 |
Correct |
28 ms |
166484 KB |
Output is correct |
134 |
Correct |
41 ms |
162644 KB |
Output is correct |
135 |
Correct |
84 ms |
160852 KB |
Output is correct |
136 |
Correct |
96 ms |
193444 KB |
Output is correct |
137 |
Correct |
78 ms |
187900 KB |
Output is correct |
138 |
Correct |
93 ms |
192084 KB |
Output is correct |
139 |
Correct |
55 ms |
187000 KB |
Output is correct |
140 |
Correct |
76 ms |
185372 KB |
Output is correct |
141 |
Correct |
716 ms |
197460 KB |
Output is correct |
142 |
Correct |
574 ms |
193048 KB |
Output is correct |
143 |
Correct |
339 ms |
188216 KB |
Output is correct |
144 |
Correct |
344 ms |
192208 KB |
Output is correct |
145 |
Correct |
592 ms |
188756 KB |
Output is correct |
146 |
Correct |
696 ms |
192916 KB |
Output is correct |
147 |
Correct |
584 ms |
194640 KB |
Output is correct |
148 |
Correct |
433 ms |
199980 KB |
Output is correct |
149 |
Correct |
311 ms |
187836 KB |
Output is correct |
150 |
Correct |
42 ms |
158552 KB |
Output is correct |
151 |
Correct |
23 ms |
157276 KB |
Output is correct |
152 |
Correct |
49 ms |
153584 KB |
Output is correct |
153 |
Correct |
28 ms |
162904 KB |
Output is correct |
154 |
Correct |
39 ms |
161628 KB |
Output is correct |
155 |
Correct |
82 ms |
158288 KB |
Output is correct |
156 |
Correct |
98 ms |
192648 KB |
Output is correct |
157 |
Correct |
79 ms |
186960 KB |
Output is correct |
158 |
Correct |
83 ms |
191568 KB |
Output is correct |
159 |
Correct |
55 ms |
186448 KB |
Output is correct |
160 |
Correct |
72 ms |
184912 KB |
Output is correct |
161 |
Correct |
679 ms |
197852 KB |
Output is correct |
162 |
Correct |
548 ms |
192888 KB |
Output is correct |
163 |
Correct |
308 ms |
187592 KB |
Output is correct |
164 |
Correct |
329 ms |
192336 KB |
Output is correct |
165 |
Correct |
580 ms |
188752 KB |
Output is correct |
166 |
Correct |
734 ms |
192128 KB |
Output is correct |
167 |
Correct |
659 ms |
195256 KB |
Output is correct |
168 |
Correct |
413 ms |
200400 KB |
Output is correct |
169 |
Correct |
299 ms |
187480 KB |
Output is correct |
170 |
Correct |
44 ms |
157460 KB |
Output is correct |
171 |
Correct |
24 ms |
156004 KB |
Output is correct |
172 |
Correct |
47 ms |
154716 KB |
Output is correct |
173 |
Correct |
30 ms |
164184 KB |
Output is correct |
174 |
Correct |
37 ms |
160344 KB |
Output is correct |
175 |
Correct |
83 ms |
159316 KB |
Output is correct |
176 |
Correct |
97 ms |
192084 KB |
Output is correct |
177 |
Correct |
82 ms |
187524 KB |
Output is correct |
178 |
Correct |
82 ms |
192436 KB |
Output is correct |
179 |
Correct |
53 ms |
186960 KB |
Output is correct |
180 |
Correct |
71 ms |
186008 KB |
Output is correct |
181 |
Correct |
664 ms |
197972 KB |
Output is correct |
182 |
Correct |
604 ms |
193864 KB |
Output is correct |
183 |
Correct |
335 ms |
188720 KB |
Output is correct |
184 |
Correct |
327 ms |
192648 KB |
Output is correct |
185 |
Correct |
575 ms |
189548 KB |
Output is correct |
186 |
Correct |
666 ms |
192680 KB |
Output is correct |
187 |
Correct |
619 ms |
195172 KB |
Output is correct |
188 |
Correct |
438 ms |
200172 KB |
Output is correct |
189 |
Correct |
294 ms |
188044 KB |
Output is correct |
190 |
Correct |
43 ms |
159836 KB |
Output is correct |
191 |
Correct |
23 ms |
158544 KB |
Output is correct |
192 |
Correct |
49 ms |
157428 KB |
Output is correct |
193 |
Correct |
28 ms |
165456 KB |
Output is correct |
194 |
Correct |
39 ms |
162908 KB |
Output is correct |
195 |
Correct |
80 ms |
161868 KB |
Output is correct |
196 |
Correct |
96 ms |
193112 KB |
Output is correct |
197 |
Correct |
78 ms |
187568 KB |
Output is correct |
198 |
Correct |
92 ms |
192104 KB |
Output is correct |
199 |
Correct |
58 ms |
187036 KB |
Output is correct |
200 |
Correct |
74 ms |
185680 KB |
Output is correct |
201 |
Correct |
630 ms |
197832 KB |
Output is correct |
202 |
Correct |
555 ms |
193396 KB |
Output is correct |
203 |
Correct |
295 ms |
188496 KB |
Output is correct |
204 |
Correct |
327 ms |
192992 KB |
Output is correct |
205 |
Correct |
632 ms |
189548 KB |
Output is correct |
206 |
Correct |
640 ms |
192964 KB |
Output is correct |
207 |
Correct |
599 ms |
195208 KB |
Output is correct |
208 |
Correct |
426 ms |
200016 KB |
Output is correct |
209 |
Correct |
295 ms |
188376 KB |
Output is correct |
210 |
Correct |
43 ms |
158556 KB |
Output is correct |
211 |
Correct |
25 ms |
160104 KB |
Output is correct |
212 |
Correct |
47 ms |
157276 KB |
Output is correct |
213 |
Correct |
28 ms |
166492 KB |
Output is correct |
214 |
Correct |
39 ms |
163928 KB |
Output is correct |
215 |
Correct |
86 ms |
160772 KB |
Output is correct |
216 |
Correct |
95 ms |
192848 KB |
Output is correct |
217 |
Correct |
79 ms |
187988 KB |
Output is correct |
218 |
Correct |
82 ms |
192240 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
754 ms |
1046868 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
660 ms |
1046696 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
656 ms |
1046620 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
14684 KB |
Output is correct |
2 |
Correct |
3 ms |
16728 KB |
Output is correct |
3 |
Correct |
2 ms |
14684 KB |
Output is correct |
4 |
Correct |
5 ms |
18872 KB |
Output is correct |
5 |
Correct |
2 ms |
14684 KB |
Output is correct |
6 |
Correct |
2 ms |
14936 KB |
Output is correct |
7 |
Correct |
2 ms |
16732 KB |
Output is correct |
8 |
Correct |
2 ms |
14684 KB |
Output is correct |
9 |
Correct |
2 ms |
16732 KB |
Output is correct |
10 |
Correct |
4 ms |
18780 KB |
Output is correct |
11 |
Correct |
2 ms |
14820 KB |
Output is correct |
12 |
Correct |
2 ms |
14680 KB |
Output is correct |
13 |
Correct |
2 ms |
16732 KB |
Output is correct |
14 |
Correct |
2 ms |
14684 KB |
Output is correct |
15 |
Correct |
4 ms |
18780 KB |
Output is correct |
16 |
Correct |
2 ms |
14680 KB |
Output is correct |
17 |
Correct |
2 ms |
14684 KB |
Output is correct |
18 |
Correct |
2 ms |
16732 KB |
Output is correct |
19 |
Correct |
2 ms |
14680 KB |
Output is correct |
20 |
Correct |
2 ms |
16732 KB |
Output is correct |
21 |
Correct |
3 ms |
16732 KB |
Output is correct |
22 |
Correct |
4 ms |
18780 KB |
Output is correct |
23 |
Correct |
2 ms |
17080 KB |
Output is correct |
24 |
Correct |
2 ms |
14684 KB |
Output is correct |
25 |
Correct |
2 ms |
16732 KB |
Output is correct |
26 |
Correct |
2 ms |
12636 KB |
Output is correct |
27 |
Correct |
2 ms |
12636 KB |
Output is correct |
28 |
Correct |
2 ms |
18780 KB |
Output is correct |
29 |
Correct |
2 ms |
18780 KB |
Output is correct |
30 |
Correct |
2 ms |
14684 KB |
Output is correct |
31 |
Correct |
2 ms |
16728 KB |
Output is correct |
32 |
Correct |
2 ms |
14684 KB |
Output is correct |
33 |
Correct |
2 ms |
16732 KB |
Output is correct |
34 |
Correct |
2 ms |
12632 KB |
Output is correct |
35 |
Correct |
2 ms |
12636 KB |
Output is correct |
36 |
Correct |
3 ms |
18780 KB |
Output is correct |
37 |
Correct |
3 ms |
18776 KB |
Output is correct |
38 |
Correct |
2 ms |
14684 KB |
Output is correct |
39 |
Correct |
3 ms |
16732 KB |
Output is correct |
40 |
Correct |
3 ms |
14680 KB |
Output is correct |
41 |
Correct |
2 ms |
14684 KB |
Output is correct |
42 |
Correct |
2 ms |
16732 KB |
Output is correct |
43 |
Correct |
2 ms |
14680 KB |
Output is correct |
44 |
Correct |
5 ms |
18780 KB |
Output is correct |
45 |
Correct |
2 ms |
14684 KB |
Output is correct |
46 |
Correct |
2 ms |
14684 KB |
Output is correct |
47 |
Correct |
2 ms |
16728 KB |
Output is correct |
48 |
Correct |
2 ms |
14940 KB |
Output is correct |
49 |
Correct |
2 ms |
16732 KB |
Output is correct |
50 |
Correct |
6 ms |
18780 KB |
Output is correct |
51 |
Correct |
3 ms |
16732 KB |
Output is correct |
52 |
Correct |
2 ms |
14684 KB |
Output is correct |
53 |
Correct |
2 ms |
16732 KB |
Output is correct |
54 |
Correct |
2 ms |
12632 KB |
Output is correct |
55 |
Correct |
2 ms |
12636 KB |
Output is correct |
56 |
Correct |
3 ms |
18952 KB |
Output is correct |
57 |
Correct |
3 ms |
18776 KB |
Output is correct |
58 |
Correct |
2 ms |
14684 KB |
Output is correct |
59 |
Correct |
3 ms |
16732 KB |
Output is correct |
60 |
Correct |
2 ms |
14684 KB |
Output is correct |
61 |
Correct |
2 ms |
14680 KB |
Output is correct |
62 |
Correct |
2 ms |
16732 KB |
Output is correct |
63 |
Correct |
2 ms |
14684 KB |
Output is correct |
64 |
Correct |
4 ms |
18780 KB |
Output is correct |
65 |
Correct |
2 ms |
14684 KB |
Output is correct |
66 |
Correct |
2 ms |
14684 KB |
Output is correct |
67 |
Correct |
3 ms |
16732 KB |
Output is correct |
68 |
Correct |
3 ms |
14680 KB |
Output is correct |
69 |
Correct |
3 ms |
16732 KB |
Output is correct |
70 |
Correct |
4 ms |
18780 KB |
Output is correct |
71 |
Correct |
2 ms |
16732 KB |
Output is correct |
72 |
Correct |
2 ms |
14684 KB |
Output is correct |
73 |
Correct |
2 ms |
16732 KB |
Output is correct |
74 |
Correct |
2 ms |
12636 KB |
Output is correct |
75 |
Correct |
2 ms |
12636 KB |
Output is correct |
76 |
Correct |
3 ms |
18780 KB |
Output is correct |
77 |
Correct |
3 ms |
18780 KB |
Output is correct |
78 |
Correct |
2 ms |
14684 KB |
Output is correct |
79 |
Correct |
3 ms |
16732 KB |
Output is correct |
80 |
Correct |
3 ms |
14692 KB |
Output is correct |
81 |
Correct |
2 ms |
14680 KB |
Output is correct |
82 |
Correct |
2 ms |
16824 KB |
Output is correct |
83 |
Correct |
2 ms |
14680 KB |
Output is correct |
84 |
Correct |
4 ms |
18776 KB |
Output is correct |
85 |
Correct |
2 ms |
14684 KB |
Output is correct |
86 |
Correct |
2 ms |
14684 KB |
Output is correct |
87 |
Correct |
2 ms |
16732 KB |
Output is correct |
88 |
Correct |
2 ms |
14684 KB |
Output is correct |
89 |
Correct |
3 ms |
16732 KB |
Output is correct |
90 |
Correct |
4 ms |
18780 KB |
Output is correct |
91 |
Correct |
2 ms |
16732 KB |
Output is correct |
92 |
Correct |
2 ms |
14684 KB |
Output is correct |
93 |
Correct |
2 ms |
16732 KB |
Output is correct |
94 |
Correct |
2 ms |
12636 KB |
Output is correct |
95 |
Correct |
2 ms |
12636 KB |
Output is correct |
96 |
Correct |
2 ms |
18780 KB |
Output is correct |
97 |
Correct |
3 ms |
18780 KB |
Output is correct |
98 |
Correct |
2 ms |
14684 KB |
Output is correct |
99 |
Correct |
2 ms |
16732 KB |
Output is correct |
100 |
Correct |
2 ms |
14680 KB |
Output is correct |
101 |
Correct |
2 ms |
14684 KB |
Output is correct |
102 |
Correct |
2 ms |
16732 KB |
Output is correct |
103 |
Correct |
2 ms |
14684 KB |
Output is correct |
104 |
Correct |
4 ms |
18780 KB |
Output is correct |
105 |
Correct |
2 ms |
14684 KB |
Output is correct |
106 |
Correct |
2 ms |
14684 KB |
Output is correct |
107 |
Correct |
2 ms |
16732 KB |
Output is correct |
108 |
Correct |
2 ms |
14684 KB |
Output is correct |
109 |
Correct |
3 ms |
16728 KB |
Output is correct |
110 |
Correct |
4 ms |
18780 KB |
Output is correct |
111 |
Correct |
3 ms |
16988 KB |
Output is correct |
112 |
Correct |
2 ms |
14696 KB |
Output is correct |
113 |
Correct |
2 ms |
16732 KB |
Output is correct |
114 |
Correct |
2 ms |
12636 KB |
Output is correct |
115 |
Correct |
2 ms |
12636 KB |
Output is correct |
116 |
Correct |
2 ms |
18780 KB |
Output is correct |
117 |
Correct |
3 ms |
18780 KB |
Output is correct |
118 |
Correct |
2 ms |
14680 KB |
Output is correct |
119 |
Correct |
3 ms |
16728 KB |
Output is correct |
120 |
Correct |
104 ms |
185684 KB |
Output is correct |
121 |
Correct |
684 ms |
198108 KB |
Output is correct |
122 |
Correct |
632 ms |
193264 KB |
Output is correct |
123 |
Correct |
298 ms |
188752 KB |
Output is correct |
124 |
Correct |
361 ms |
192532 KB |
Output is correct |
125 |
Correct |
619 ms |
189224 KB |
Output is correct |
126 |
Correct |
638 ms |
192644 KB |
Output is correct |
127 |
Correct |
577 ms |
195972 KB |
Output is correct |
128 |
Correct |
393 ms |
200004 KB |
Output is correct |
129 |
Correct |
293 ms |
188064 KB |
Output is correct |
130 |
Correct |
42 ms |
158544 KB |
Output is correct |
131 |
Correct |
24 ms |
158552 KB |
Output is correct |
132 |
Correct |
48 ms |
157268 KB |
Output is correct |
133 |
Correct |
28 ms |
166484 KB |
Output is correct |
134 |
Correct |
41 ms |
162644 KB |
Output is correct |
135 |
Correct |
84 ms |
160852 KB |
Output is correct |
136 |
Correct |
96 ms |
193444 KB |
Output is correct |
137 |
Correct |
78 ms |
187900 KB |
Output is correct |
138 |
Correct |
93 ms |
192084 KB |
Output is correct |
139 |
Correct |
55 ms |
187000 KB |
Output is correct |
140 |
Correct |
76 ms |
185372 KB |
Output is correct |
141 |
Correct |
716 ms |
197460 KB |
Output is correct |
142 |
Correct |
574 ms |
193048 KB |
Output is correct |
143 |
Correct |
339 ms |
188216 KB |
Output is correct |
144 |
Correct |
344 ms |
192208 KB |
Output is correct |
145 |
Correct |
592 ms |
188756 KB |
Output is correct |
146 |
Correct |
696 ms |
192916 KB |
Output is correct |
147 |
Correct |
584 ms |
194640 KB |
Output is correct |
148 |
Correct |
433 ms |
199980 KB |
Output is correct |
149 |
Correct |
311 ms |
187836 KB |
Output is correct |
150 |
Correct |
42 ms |
158552 KB |
Output is correct |
151 |
Correct |
23 ms |
157276 KB |
Output is correct |
152 |
Correct |
49 ms |
153584 KB |
Output is correct |
153 |
Correct |
28 ms |
162904 KB |
Output is correct |
154 |
Correct |
39 ms |
161628 KB |
Output is correct |
155 |
Correct |
82 ms |
158288 KB |
Output is correct |
156 |
Correct |
98 ms |
192648 KB |
Output is correct |
157 |
Correct |
79 ms |
186960 KB |
Output is correct |
158 |
Correct |
83 ms |
191568 KB |
Output is correct |
159 |
Correct |
55 ms |
186448 KB |
Output is correct |
160 |
Correct |
72 ms |
184912 KB |
Output is correct |
161 |
Correct |
679 ms |
197852 KB |
Output is correct |
162 |
Correct |
548 ms |
192888 KB |
Output is correct |
163 |
Correct |
308 ms |
187592 KB |
Output is correct |
164 |
Correct |
329 ms |
192336 KB |
Output is correct |
165 |
Correct |
580 ms |
188752 KB |
Output is correct |
166 |
Correct |
734 ms |
192128 KB |
Output is correct |
167 |
Correct |
659 ms |
195256 KB |
Output is correct |
168 |
Correct |
413 ms |
200400 KB |
Output is correct |
169 |
Correct |
299 ms |
187480 KB |
Output is correct |
170 |
Correct |
44 ms |
157460 KB |
Output is correct |
171 |
Correct |
24 ms |
156004 KB |
Output is correct |
172 |
Correct |
47 ms |
154716 KB |
Output is correct |
173 |
Correct |
30 ms |
164184 KB |
Output is correct |
174 |
Correct |
37 ms |
160344 KB |
Output is correct |
175 |
Correct |
83 ms |
159316 KB |
Output is correct |
176 |
Correct |
97 ms |
192084 KB |
Output is correct |
177 |
Correct |
82 ms |
187524 KB |
Output is correct |
178 |
Correct |
82 ms |
192436 KB |
Output is correct |
179 |
Correct |
53 ms |
186960 KB |
Output is correct |
180 |
Correct |
71 ms |
186008 KB |
Output is correct |
181 |
Correct |
664 ms |
197972 KB |
Output is correct |
182 |
Correct |
604 ms |
193864 KB |
Output is correct |
183 |
Correct |
335 ms |
188720 KB |
Output is correct |
184 |
Correct |
327 ms |
192648 KB |
Output is correct |
185 |
Correct |
575 ms |
189548 KB |
Output is correct |
186 |
Correct |
666 ms |
192680 KB |
Output is correct |
187 |
Correct |
619 ms |
195172 KB |
Output is correct |
188 |
Correct |
438 ms |
200172 KB |
Output is correct |
189 |
Correct |
294 ms |
188044 KB |
Output is correct |
190 |
Correct |
43 ms |
159836 KB |
Output is correct |
191 |
Correct |
23 ms |
158544 KB |
Output is correct |
192 |
Correct |
49 ms |
157428 KB |
Output is correct |
193 |
Correct |
28 ms |
165456 KB |
Output is correct |
194 |
Correct |
39 ms |
162908 KB |
Output is correct |
195 |
Correct |
80 ms |
161868 KB |
Output is correct |
196 |
Correct |
96 ms |
193112 KB |
Output is correct |
197 |
Correct |
78 ms |
187568 KB |
Output is correct |
198 |
Correct |
92 ms |
192104 KB |
Output is correct |
199 |
Correct |
58 ms |
187036 KB |
Output is correct |
200 |
Correct |
74 ms |
185680 KB |
Output is correct |
201 |
Correct |
630 ms |
197832 KB |
Output is correct |
202 |
Correct |
555 ms |
193396 KB |
Output is correct |
203 |
Correct |
295 ms |
188496 KB |
Output is correct |
204 |
Correct |
327 ms |
192992 KB |
Output is correct |
205 |
Correct |
632 ms |
189548 KB |
Output is correct |
206 |
Correct |
640 ms |
192964 KB |
Output is correct |
207 |
Correct |
599 ms |
195208 KB |
Output is correct |
208 |
Correct |
426 ms |
200016 KB |
Output is correct |
209 |
Correct |
295 ms |
188376 KB |
Output is correct |
210 |
Correct |
43 ms |
158556 KB |
Output is correct |
211 |
Correct |
25 ms |
160104 KB |
Output is correct |
212 |
Correct |
47 ms |
157276 KB |
Output is correct |
213 |
Correct |
28 ms |
166492 KB |
Output is correct |
214 |
Correct |
39 ms |
163928 KB |
Output is correct |
215 |
Correct |
86 ms |
160772 KB |
Output is correct |
216 |
Correct |
95 ms |
192848 KB |
Output is correct |
217 |
Correct |
79 ms |
187988 KB |
Output is correct |
218 |
Correct |
82 ms |
192240 KB |
Output is correct |
219 |
Runtime error |
754 ms |
1046868 KB |
Execution killed with signal 11 |
220 |
Halted |
0 ms |
0 KB |
- |