#include <bits/stdc++.h>
#include "jelly.h"
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
const int MAX = 2005;
short int n, a[MAX], b[MAX];
int find_maximum_unique(int x, int y, vector<int> _a, vector<int> _b) {
n = _a.size();
bool aux = true;
for(int i = 1; i <= n; i++){
a[i] = _a[i - 1];
b[i] = _b[i - 1];
aux &= (a[i] == b[i]);
}
if(aux){
x += y; y = 0;
vector<vector<int>> dp(n + 1, vector<int>(x + 1, 0));
for(int i = 1; i <= n; i++){
for(int j = 0; j <= x; j++){
dp[i][j] = dp[i - 1][j];
if(j >= a[i])
dp[i][j] = max(dp[i][j], dp[i - 1][j - a[i]] + 1);
}
}
return dp[n][x];
}
vector<vector<vector<int>>> dp(n + 1, vector<vector<int>>(x + 1, vector<int>(y + 1, 0)));
for(int i = 1; i <= n; i++){
for(int j = 0; j <= x; j++){
for(int k = 0; k <= y; k++){
int cur = dp[i - 1][j][k];
if(j >= a[i]) cur = max(cur, dp[i - 1][j - a[i]][k] + 1);
if(k >= b[i]) cur = max(cur, dp[i - 1][j][k - b[i]] + 1);
dp[i][j][k] = cur;
}
}
}
return dp[n][x][y];
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
2132 KB |
Output is correct |
2 |
Correct |
5 ms |
8532 KB |
Output is correct |
3 |
Correct |
7 ms |
8888 KB |
Output is correct |
4 |
Correct |
10 ms |
11988 KB |
Output is correct |
5 |
Correct |
9 ms |
9556 KB |
Output is correct |
6 |
Correct |
5 ms |
7764 KB |
Output is correct |
7 |
Correct |
6 ms |
10580 KB |
Output is correct |
8 |
Correct |
5 ms |
7636 KB |
Output is correct |
9 |
Correct |
7 ms |
9912 KB |
Output is correct |
10 |
Correct |
8 ms |
11732 KB |
Output is correct |
11 |
Correct |
1 ms |
1364 KB |
Output is correct |
12 |
Correct |
2 ms |
2132 KB |
Output is correct |
13 |
Correct |
5 ms |
8532 KB |
Output is correct |
14 |
Correct |
6 ms |
8880 KB |
Output is correct |
15 |
Correct |
8 ms |
11988 KB |
Output is correct |
16 |
Correct |
6 ms |
9556 KB |
Output is correct |
17 |
Correct |
5 ms |
7764 KB |
Output is correct |
18 |
Correct |
7 ms |
10580 KB |
Output is correct |
19 |
Correct |
5 ms |
7636 KB |
Output is correct |
20 |
Correct |
6 ms |
9812 KB |
Output is correct |
21 |
Correct |
3 ms |
2132 KB |
Output is correct |
22 |
Correct |
8 ms |
11732 KB |
Output is correct |
23 |
Correct |
2 ms |
2132 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
1620 KB |
Output is correct |
26 |
Correct |
1 ms |
1492 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
2048 KB |
Output is correct |
29 |
Correct |
1 ms |
1748 KB |
Output is correct |
30 |
Correct |
2 ms |
2004 KB |
Output is correct |
31 |
Correct |
1 ms |
1620 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
2 ms |
1620 KB |
Output is correct |
34 |
Correct |
1 ms |
1492 KB |
Output is correct |
35 |
Correct |
1 ms |
980 KB |
Output is correct |
36 |
Correct |
2 ms |
2004 KB |
Output is correct |
37 |
Correct |
1 ms |
1748 KB |
Output is correct |
38 |
Correct |
1 ms |
2004 KB |
Output is correct |
39 |
Correct |
2 ms |
1620 KB |
Output is correct |
40 |
Correct |
1 ms |
1364 KB |
Output is correct |
41 |
Correct |
1 ms |
2132 KB |
Output is correct |
42 |
Correct |
7 ms |
8532 KB |
Output is correct |
43 |
Correct |
8 ms |
8852 KB |
Output is correct |
44 |
Correct |
12 ms |
12016 KB |
Output is correct |
45 |
Correct |
6 ms |
9556 KB |
Output is correct |
46 |
Correct |
5 ms |
7764 KB |
Output is correct |
47 |
Correct |
7 ms |
10580 KB |
Output is correct |
48 |
Correct |
5 ms |
7636 KB |
Output is correct |
49 |
Correct |
7 ms |
9824 KB |
Output is correct |
50 |
Correct |
9 ms |
11732 KB |
Output is correct |
51 |
Correct |
1 ms |
2132 KB |
Output is correct |
52 |
Correct |
0 ms |
212 KB |
Output is correct |
53 |
Correct |
1 ms |
1620 KB |
Output is correct |
54 |
Correct |
2 ms |
1492 KB |
Output is correct |
55 |
Correct |
1 ms |
980 KB |
Output is correct |
56 |
Correct |
2 ms |
2004 KB |
Output is correct |
57 |
Correct |
2 ms |
1748 KB |
Output is correct |
58 |
Correct |
2 ms |
2004 KB |
Output is correct |
59 |
Correct |
1 ms |
1620 KB |
Output is correct |
60 |
Correct |
1 ms |
1364 KB |
Output is correct |
61 |
Correct |
2 ms |
2132 KB |
Output is correct |
62 |
Correct |
5 ms |
8532 KB |
Output is correct |
63 |
Correct |
7 ms |
8916 KB |
Output is correct |
64 |
Correct |
7 ms |
11988 KB |
Output is correct |
65 |
Correct |
7 ms |
9556 KB |
Output is correct |
66 |
Correct |
4 ms |
7764 KB |
Output is correct |
67 |
Correct |
6 ms |
10580 KB |
Output is correct |
68 |
Correct |
5 ms |
7640 KB |
Output is correct |
69 |
Correct |
7 ms |
9860 KB |
Output is correct |
70 |
Correct |
8 ms |
11732 KB |
Output is correct |
71 |
Correct |
2 ms |
2132 KB |
Output is correct |
72 |
Correct |
0 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
1620 KB |
Output is correct |
74 |
Correct |
1 ms |
1492 KB |
Output is correct |
75 |
Correct |
1 ms |
980 KB |
Output is correct |
76 |
Correct |
2 ms |
2004 KB |
Output is correct |
77 |
Correct |
1 ms |
1748 KB |
Output is correct |
78 |
Correct |
1 ms |
2004 KB |
Output is correct |
79 |
Correct |
1 ms |
1620 KB |
Output is correct |
80 |
Correct |
1 ms |
1364 KB |
Output is correct |
81 |
Correct |
2 ms |
2132 KB |
Output is correct |
82 |
Correct |
6 ms |
8532 KB |
Output is correct |
83 |
Correct |
6 ms |
8952 KB |
Output is correct |
84 |
Correct |
12 ms |
12108 KB |
Output is correct |
85 |
Correct |
6 ms |
9556 KB |
Output is correct |
86 |
Correct |
5 ms |
7764 KB |
Output is correct |
87 |
Correct |
7 ms |
10580 KB |
Output is correct |
88 |
Correct |
6 ms |
7636 KB |
Output is correct |
89 |
Correct |
7 ms |
9812 KB |
Output is correct |
90 |
Correct |
7 ms |
11732 KB |
Output is correct |
91 |
Correct |
2 ms |
2132 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
1620 KB |
Output is correct |
94 |
Correct |
1 ms |
1492 KB |
Output is correct |
95 |
Correct |
1 ms |
980 KB |
Output is correct |
96 |
Correct |
1 ms |
2004 KB |
Output is correct |
97 |
Correct |
1 ms |
1748 KB |
Output is correct |
98 |
Correct |
2 ms |
2004 KB |
Output is correct |
99 |
Correct |
1 ms |
1620 KB |
Output is correct |
100 |
Correct |
1 ms |
1364 KB |
Output is correct |
101 |
Correct |
1 ms |
2132 KB |
Output is correct |
102 |
Correct |
6 ms |
8532 KB |
Output is correct |
103 |
Correct |
5 ms |
8916 KB |
Output is correct |
104 |
Correct |
8 ms |
11988 KB |
Output is correct |
105 |
Correct |
6 ms |
9556 KB |
Output is correct |
106 |
Correct |
5 ms |
7764 KB |
Output is correct |
107 |
Correct |
7 ms |
10592 KB |
Output is correct |
108 |
Correct |
5 ms |
7636 KB |
Output is correct |
109 |
Correct |
8 ms |
9796 KB |
Output is correct |
110 |
Correct |
8 ms |
11732 KB |
Output is correct |
111 |
Correct |
1 ms |
2132 KB |
Output is correct |
112 |
Correct |
0 ms |
212 KB |
Output is correct |
113 |
Correct |
1 ms |
1620 KB |
Output is correct |
114 |
Correct |
1 ms |
1492 KB |
Output is correct |
115 |
Correct |
1 ms |
980 KB |
Output is correct |
116 |
Correct |
2 ms |
2004 KB |
Output is correct |
117 |
Correct |
1 ms |
1748 KB |
Output is correct |
118 |
Correct |
2 ms |
2004 KB |
Output is correct |
119 |
Correct |
1 ms |
1620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
2132 KB |
Output is correct |
2 |
Correct |
5 ms |
8532 KB |
Output is correct |
3 |
Correct |
7 ms |
8888 KB |
Output is correct |
4 |
Correct |
10 ms |
11988 KB |
Output is correct |
5 |
Correct |
9 ms |
9556 KB |
Output is correct |
6 |
Correct |
5 ms |
7764 KB |
Output is correct |
7 |
Correct |
6 ms |
10580 KB |
Output is correct |
8 |
Correct |
5 ms |
7636 KB |
Output is correct |
9 |
Correct |
7 ms |
9912 KB |
Output is correct |
10 |
Correct |
8 ms |
11732 KB |
Output is correct |
11 |
Correct |
1 ms |
1364 KB |
Output is correct |
12 |
Correct |
2 ms |
2132 KB |
Output is correct |
13 |
Correct |
5 ms |
8532 KB |
Output is correct |
14 |
Correct |
6 ms |
8880 KB |
Output is correct |
15 |
Correct |
8 ms |
11988 KB |
Output is correct |
16 |
Correct |
6 ms |
9556 KB |
Output is correct |
17 |
Correct |
5 ms |
7764 KB |
Output is correct |
18 |
Correct |
7 ms |
10580 KB |
Output is correct |
19 |
Correct |
5 ms |
7636 KB |
Output is correct |
20 |
Correct |
6 ms |
9812 KB |
Output is correct |
21 |
Correct |
3 ms |
2132 KB |
Output is correct |
22 |
Correct |
8 ms |
11732 KB |
Output is correct |
23 |
Correct |
2 ms |
2132 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
1620 KB |
Output is correct |
26 |
Correct |
1 ms |
1492 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
2048 KB |
Output is correct |
29 |
Correct |
1 ms |
1748 KB |
Output is correct |
30 |
Correct |
2 ms |
2004 KB |
Output is correct |
31 |
Correct |
1 ms |
1620 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
2 ms |
1620 KB |
Output is correct |
34 |
Correct |
1 ms |
1492 KB |
Output is correct |
35 |
Correct |
1 ms |
980 KB |
Output is correct |
36 |
Correct |
2 ms |
2004 KB |
Output is correct |
37 |
Correct |
1 ms |
1748 KB |
Output is correct |
38 |
Correct |
1 ms |
2004 KB |
Output is correct |
39 |
Correct |
2 ms |
1620 KB |
Output is correct |
40 |
Correct |
1 ms |
1364 KB |
Output is correct |
41 |
Correct |
1 ms |
2132 KB |
Output is correct |
42 |
Correct |
7 ms |
8532 KB |
Output is correct |
43 |
Correct |
8 ms |
8852 KB |
Output is correct |
44 |
Correct |
12 ms |
12016 KB |
Output is correct |
45 |
Correct |
6 ms |
9556 KB |
Output is correct |
46 |
Correct |
5 ms |
7764 KB |
Output is correct |
47 |
Correct |
7 ms |
10580 KB |
Output is correct |
48 |
Correct |
5 ms |
7636 KB |
Output is correct |
49 |
Correct |
7 ms |
9824 KB |
Output is correct |
50 |
Correct |
9 ms |
11732 KB |
Output is correct |
51 |
Correct |
1 ms |
2132 KB |
Output is correct |
52 |
Correct |
0 ms |
212 KB |
Output is correct |
53 |
Correct |
1 ms |
1620 KB |
Output is correct |
54 |
Correct |
2 ms |
1492 KB |
Output is correct |
55 |
Correct |
1 ms |
980 KB |
Output is correct |
56 |
Correct |
2 ms |
2004 KB |
Output is correct |
57 |
Correct |
2 ms |
1748 KB |
Output is correct |
58 |
Correct |
2 ms |
2004 KB |
Output is correct |
59 |
Correct |
1 ms |
1620 KB |
Output is correct |
60 |
Correct |
1 ms |
1364 KB |
Output is correct |
61 |
Correct |
2 ms |
2132 KB |
Output is correct |
62 |
Correct |
5 ms |
8532 KB |
Output is correct |
63 |
Correct |
7 ms |
8916 KB |
Output is correct |
64 |
Correct |
7 ms |
11988 KB |
Output is correct |
65 |
Correct |
7 ms |
9556 KB |
Output is correct |
66 |
Correct |
4 ms |
7764 KB |
Output is correct |
67 |
Correct |
6 ms |
10580 KB |
Output is correct |
68 |
Correct |
5 ms |
7640 KB |
Output is correct |
69 |
Correct |
7 ms |
9860 KB |
Output is correct |
70 |
Correct |
8 ms |
11732 KB |
Output is correct |
71 |
Correct |
2 ms |
2132 KB |
Output is correct |
72 |
Correct |
0 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
1620 KB |
Output is correct |
74 |
Correct |
1 ms |
1492 KB |
Output is correct |
75 |
Correct |
1 ms |
980 KB |
Output is correct |
76 |
Correct |
2 ms |
2004 KB |
Output is correct |
77 |
Correct |
1 ms |
1748 KB |
Output is correct |
78 |
Correct |
1 ms |
2004 KB |
Output is correct |
79 |
Correct |
1 ms |
1620 KB |
Output is correct |
80 |
Correct |
1 ms |
1364 KB |
Output is correct |
81 |
Correct |
2 ms |
2132 KB |
Output is correct |
82 |
Correct |
6 ms |
8532 KB |
Output is correct |
83 |
Correct |
6 ms |
8952 KB |
Output is correct |
84 |
Correct |
12 ms |
12108 KB |
Output is correct |
85 |
Correct |
6 ms |
9556 KB |
Output is correct |
86 |
Correct |
5 ms |
7764 KB |
Output is correct |
87 |
Correct |
7 ms |
10580 KB |
Output is correct |
88 |
Correct |
6 ms |
7636 KB |
Output is correct |
89 |
Correct |
7 ms |
9812 KB |
Output is correct |
90 |
Correct |
7 ms |
11732 KB |
Output is correct |
91 |
Correct |
2 ms |
2132 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
1620 KB |
Output is correct |
94 |
Correct |
1 ms |
1492 KB |
Output is correct |
95 |
Correct |
1 ms |
980 KB |
Output is correct |
96 |
Correct |
1 ms |
2004 KB |
Output is correct |
97 |
Correct |
1 ms |
1748 KB |
Output is correct |
98 |
Correct |
2 ms |
2004 KB |
Output is correct |
99 |
Correct |
1 ms |
1620 KB |
Output is correct |
100 |
Correct |
1 ms |
1364 KB |
Output is correct |
101 |
Correct |
1 ms |
2132 KB |
Output is correct |
102 |
Correct |
6 ms |
8532 KB |
Output is correct |
103 |
Correct |
5 ms |
8916 KB |
Output is correct |
104 |
Correct |
8 ms |
11988 KB |
Output is correct |
105 |
Correct |
6 ms |
9556 KB |
Output is correct |
106 |
Correct |
5 ms |
7764 KB |
Output is correct |
107 |
Correct |
7 ms |
10592 KB |
Output is correct |
108 |
Correct |
5 ms |
7636 KB |
Output is correct |
109 |
Correct |
8 ms |
9796 KB |
Output is correct |
110 |
Correct |
8 ms |
11732 KB |
Output is correct |
111 |
Correct |
1 ms |
2132 KB |
Output is correct |
112 |
Correct |
0 ms |
212 KB |
Output is correct |
113 |
Correct |
1 ms |
1620 KB |
Output is correct |
114 |
Correct |
1 ms |
1492 KB |
Output is correct |
115 |
Correct |
1 ms |
980 KB |
Output is correct |
116 |
Correct |
2 ms |
2004 KB |
Output is correct |
117 |
Correct |
1 ms |
1748 KB |
Output is correct |
118 |
Correct |
2 ms |
2004 KB |
Output is correct |
119 |
Correct |
1 ms |
1620 KB |
Output is correct |
120 |
Correct |
12 ms |
9556 KB |
Output is correct |
121 |
Correct |
88 ms |
150492 KB |
Output is correct |
122 |
Correct |
92 ms |
158292 KB |
Output is correct |
123 |
Correct |
92 ms |
141056 KB |
Output is correct |
124 |
Correct |
118 ms |
156588 KB |
Output is correct |
125 |
Correct |
99 ms |
152780 KB |
Output is correct |
126 |
Correct |
107 ms |
174836 KB |
Output is correct |
127 |
Correct |
105 ms |
148432 KB |
Output is correct |
128 |
Correct |
128 ms |
191772 KB |
Output is correct |
129 |
Correct |
95 ms |
145316 KB |
Output is correct |
130 |
Correct |
5 ms |
7508 KB |
Output is correct |
131 |
Correct |
1 ms |
212 KB |
Output is correct |
132 |
Correct |
7 ms |
10708 KB |
Output is correct |
133 |
Correct |
1 ms |
1492 KB |
Output is correct |
134 |
Correct |
5 ms |
6740 KB |
Output is correct |
135 |
Correct |
13 ms |
19548 KB |
Output is correct |
136 |
Correct |
18 ms |
20556 KB |
Output is correct |
137 |
Correct |
13 ms |
13268 KB |
Output is correct |
138 |
Correct |
22 ms |
22292 KB |
Output is correct |
139 |
Correct |
10 ms |
9888 KB |
Output is correct |
140 |
Correct |
10 ms |
9556 KB |
Output is correct |
141 |
Correct |
122 ms |
150548 KB |
Output is correct |
142 |
Correct |
101 ms |
158268 KB |
Output is correct |
143 |
Correct |
106 ms |
141048 KB |
Output is correct |
144 |
Correct |
107 ms |
156628 KB |
Output is correct |
145 |
Correct |
98 ms |
152900 KB |
Output is correct |
146 |
Correct |
107 ms |
174924 KB |
Output is correct |
147 |
Correct |
103 ms |
148472 KB |
Output is correct |
148 |
Correct |
137 ms |
191688 KB |
Output is correct |
149 |
Correct |
109 ms |
145352 KB |
Output is correct |
150 |
Correct |
5 ms |
7508 KB |
Output is correct |
151 |
Correct |
0 ms |
212 KB |
Output is correct |
152 |
Correct |
7 ms |
10708 KB |
Output is correct |
153 |
Correct |
1 ms |
1492 KB |
Output is correct |
154 |
Correct |
4 ms |
6740 KB |
Output is correct |
155 |
Correct |
13 ms |
19540 KB |
Output is correct |
156 |
Correct |
15 ms |
20564 KB |
Output is correct |
157 |
Correct |
12 ms |
13304 KB |
Output is correct |
158 |
Correct |
18 ms |
22196 KB |
Output is correct |
159 |
Correct |
10 ms |
9936 KB |
Output is correct |
160 |
Correct |
9 ms |
9580 KB |
Output is correct |
161 |
Correct |
94 ms |
150556 KB |
Output is correct |
162 |
Correct |
103 ms |
158320 KB |
Output is correct |
163 |
Correct |
104 ms |
140952 KB |
Output is correct |
164 |
Correct |
96 ms |
156644 KB |
Output is correct |
165 |
Correct |
96 ms |
152908 KB |
Output is correct |
166 |
Correct |
102 ms |
174936 KB |
Output is correct |
167 |
Correct |
89 ms |
148476 KB |
Output is correct |
168 |
Correct |
146 ms |
191704 KB |
Output is correct |
169 |
Correct |
100 ms |
145328 KB |
Output is correct |
170 |
Correct |
5 ms |
7508 KB |
Output is correct |
171 |
Correct |
0 ms |
212 KB |
Output is correct |
172 |
Correct |
6 ms |
10708 KB |
Output is correct |
173 |
Correct |
1 ms |
1492 KB |
Output is correct |
174 |
Correct |
4 ms |
6740 KB |
Output is correct |
175 |
Correct |
16 ms |
19540 KB |
Output is correct |
176 |
Correct |
17 ms |
20480 KB |
Output is correct |
177 |
Correct |
12 ms |
13268 KB |
Output is correct |
178 |
Correct |
19 ms |
22244 KB |
Output is correct |
179 |
Correct |
10 ms |
9956 KB |
Output is correct |
180 |
Correct |
9 ms |
9576 KB |
Output is correct |
181 |
Correct |
90 ms |
150568 KB |
Output is correct |
182 |
Correct |
95 ms |
158408 KB |
Output is correct |
183 |
Correct |
93 ms |
140944 KB |
Output is correct |
184 |
Correct |
100 ms |
156576 KB |
Output is correct |
185 |
Correct |
92 ms |
152900 KB |
Output is correct |
186 |
Correct |
109 ms |
175012 KB |
Output is correct |
187 |
Correct |
89 ms |
148432 KB |
Output is correct |
188 |
Correct |
120 ms |
191636 KB |
Output is correct |
189 |
Correct |
95 ms |
145408 KB |
Output is correct |
190 |
Correct |
5 ms |
7508 KB |
Output is correct |
191 |
Correct |
0 ms |
212 KB |
Output is correct |
192 |
Correct |
9 ms |
10924 KB |
Output is correct |
193 |
Correct |
2 ms |
1364 KB |
Output is correct |
194 |
Correct |
4 ms |
6692 KB |
Output is correct |
195 |
Correct |
12 ms |
19540 KB |
Output is correct |
196 |
Correct |
16 ms |
20580 KB |
Output is correct |
197 |
Correct |
11 ms |
13308 KB |
Output is correct |
198 |
Correct |
19 ms |
22272 KB |
Output is correct |
199 |
Correct |
9 ms |
9940 KB |
Output is correct |
200 |
Correct |
9 ms |
9556 KB |
Output is correct |
201 |
Correct |
91 ms |
150556 KB |
Output is correct |
202 |
Correct |
96 ms |
158284 KB |
Output is correct |
203 |
Correct |
89 ms |
141048 KB |
Output is correct |
204 |
Correct |
119 ms |
156552 KB |
Output is correct |
205 |
Correct |
95 ms |
152908 KB |
Output is correct |
206 |
Correct |
105 ms |
174904 KB |
Output is correct |
207 |
Correct |
89 ms |
148516 KB |
Output is correct |
208 |
Correct |
118 ms |
191564 KB |
Output is correct |
209 |
Correct |
95 ms |
145416 KB |
Output is correct |
210 |
Correct |
5 ms |
7508 KB |
Output is correct |
211 |
Correct |
1 ms |
212 KB |
Output is correct |
212 |
Correct |
9 ms |
10712 KB |
Output is correct |
213 |
Correct |
1 ms |
1492 KB |
Output is correct |
214 |
Correct |
4 ms |
6740 KB |
Output is correct |
215 |
Correct |
12 ms |
19660 KB |
Output is correct |
216 |
Correct |
16 ms |
20580 KB |
Output is correct |
217 |
Correct |
11 ms |
13268 KB |
Output is correct |
218 |
Correct |
18 ms |
22228 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
214 ms |
182112 KB |
Output is correct |
2 |
Correct |
354 ms |
283628 KB |
Output is correct |
3 |
Correct |
89 ms |
74504 KB |
Output is correct |
4 |
Correct |
138 ms |
111480 KB |
Output is correct |
5 |
Correct |
846 ms |
750684 KB |
Output is correct |
6 |
Correct |
1080 ms |
953476 KB |
Output is correct |
7 |
Correct |
1064 ms |
924628 KB |
Output is correct |
8 |
Correct |
207 ms |
176800 KB |
Output is correct |
9 |
Correct |
1122 ms |
978188 KB |
Output is correct |
10 |
Correct |
508 ms |
398224 KB |
Output is correct |
11 |
Correct |
981 ms |
856072 KB |
Output is correct |
12 |
Correct |
800 ms |
674228 KB |
Output is correct |
13 |
Correct |
761 ms |
592384 KB |
Output is correct |
14 |
Correct |
216 ms |
186212 KB |
Output is correct |
15 |
Correct |
782 ms |
677708 KB |
Output is correct |
16 |
Correct |
781 ms |
651216 KB |
Output is correct |
17 |
Correct |
787 ms |
686948 KB |
Output is correct |
18 |
Correct |
838 ms |
737424 KB |
Output is correct |
19 |
Correct |
794 ms |
578432 KB |
Output is correct |
20 |
Correct |
221 ms |
184212 KB |
Output is correct |
21 |
Correct |
224 ms |
182200 KB |
Output is correct |
22 |
Correct |
331 ms |
283520 KB |
Output is correct |
23 |
Correct |
93 ms |
74548 KB |
Output is correct |
24 |
Correct |
135 ms |
111348 KB |
Output is correct |
25 |
Correct |
880 ms |
750840 KB |
Output is correct |
26 |
Correct |
1087 ms |
953492 KB |
Output is correct |
27 |
Correct |
1084 ms |
924640 KB |
Output is correct |
28 |
Correct |
216 ms |
176820 KB |
Output is correct |
29 |
Correct |
1116 ms |
978140 KB |
Output is correct |
30 |
Correct |
485 ms |
398128 KB |
Output is correct |
31 |
Correct |
1002 ms |
856124 KB |
Output is correct |
32 |
Correct |
795 ms |
674304 KB |
Output is correct |
33 |
Correct |
770 ms |
592384 KB |
Output is correct |
34 |
Correct |
226 ms |
186272 KB |
Output is correct |
35 |
Correct |
800 ms |
677640 KB |
Output is correct |
36 |
Correct |
746 ms |
651268 KB |
Output is correct |
37 |
Correct |
781 ms |
686928 KB |
Output is correct |
38 |
Correct |
851 ms |
737456 KB |
Output is correct |
39 |
Correct |
1027 ms |
578440 KB |
Output is correct |
40 |
Correct |
209 ms |
184076 KB |
Output is correct |
41 |
Correct |
206 ms |
182304 KB |
Output is correct |
42 |
Correct |
339 ms |
283604 KB |
Output is correct |
43 |
Correct |
90 ms |
74552 KB |
Output is correct |
44 |
Correct |
130 ms |
111308 KB |
Output is correct |
45 |
Correct |
859 ms |
750840 KB |
Output is correct |
46 |
Correct |
1100 ms |
953420 KB |
Output is correct |
47 |
Correct |
1053 ms |
924568 KB |
Output is correct |
48 |
Correct |
206 ms |
176812 KB |
Output is correct |
49 |
Correct |
1096 ms |
978168 KB |
Output is correct |
50 |
Correct |
487 ms |
398292 KB |
Output is correct |
51 |
Correct |
1014 ms |
856020 KB |
Output is correct |
52 |
Correct |
800 ms |
674428 KB |
Output is correct |
53 |
Correct |
757 ms |
592352 KB |
Output is correct |
54 |
Correct |
215 ms |
186308 KB |
Output is correct |
55 |
Correct |
821 ms |
677716 KB |
Output is correct |
56 |
Correct |
759 ms |
651272 KB |
Output is correct |
57 |
Correct |
804 ms |
686924 KB |
Output is correct |
58 |
Correct |
851 ms |
737612 KB |
Output is correct |
59 |
Correct |
702 ms |
578436 KB |
Output is correct |
60 |
Correct |
229 ms |
184092 KB |
Output is correct |
61 |
Correct |
213 ms |
182144 KB |
Output is correct |
62 |
Correct |
331 ms |
283696 KB |
Output is correct |
63 |
Correct |
94 ms |
74448 KB |
Output is correct |
64 |
Correct |
135 ms |
111264 KB |
Output is correct |
65 |
Correct |
866 ms |
750744 KB |
Output is correct |
66 |
Correct |
1144 ms |
953444 KB |
Output is correct |
67 |
Correct |
1091 ms |
924580 KB |
Output is correct |
68 |
Correct |
222 ms |
176780 KB |
Output is correct |
69 |
Correct |
1110 ms |
978300 KB |
Output is correct |
70 |
Correct |
489 ms |
398364 KB |
Output is correct |
71 |
Correct |
973 ms |
855980 KB |
Output is correct |
72 |
Correct |
773 ms |
674336 KB |
Output is correct |
73 |
Correct |
738 ms |
592376 KB |
Output is correct |
74 |
Correct |
222 ms |
186216 KB |
Output is correct |
75 |
Correct |
777 ms |
677760 KB |
Output is correct |
76 |
Correct |
792 ms |
651260 KB |
Output is correct |
77 |
Correct |
785 ms |
687000 KB |
Output is correct |
78 |
Correct |
839 ms |
737476 KB |
Output is correct |
79 |
Correct |
707 ms |
578516 KB |
Output is correct |
80 |
Correct |
220 ms |
184036 KB |
Output is correct |
81 |
Correct |
208 ms |
182176 KB |
Output is correct |
82 |
Correct |
332 ms |
283600 KB |
Output is correct |
83 |
Correct |
93 ms |
74580 KB |
Output is correct |
84 |
Correct |
134 ms |
111328 KB |
Output is correct |
85 |
Correct |
866 ms |
750692 KB |
Output is correct |
86 |
Correct |
1191 ms |
953416 KB |
Output is correct |
87 |
Correct |
1047 ms |
924644 KB |
Output is correct |
88 |
Correct |
207 ms |
176720 KB |
Output is correct |
89 |
Correct |
1097 ms |
978336 KB |
Output is correct |
90 |
Correct |
482 ms |
398232 KB |
Output is correct |
91 |
Correct |
959 ms |
855948 KB |
Output is correct |
92 |
Correct |
772 ms |
674240 KB |
Output is correct |
93 |
Correct |
736 ms |
592296 KB |
Output is correct |
94 |
Correct |
213 ms |
186376 KB |
Output is correct |
95 |
Correct |
772 ms |
677692 KB |
Output is correct |
96 |
Correct |
757 ms |
651204 KB |
Output is correct |
97 |
Correct |
782 ms |
686956 KB |
Output is correct |
98 |
Correct |
836 ms |
737588 KB |
Output is correct |
99 |
Correct |
702 ms |
578492 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
836 ms |
2097152 KB |
Execution killed with signal 9 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
46 ms |
79436 KB |
Output is correct |
2 |
Correct |
79 ms |
141336 KB |
Output is correct |
3 |
Correct |
76 ms |
140448 KB |
Output is correct |
4 |
Correct |
79 ms |
147972 KB |
Output is correct |
5 |
Correct |
79 ms |
143800 KB |
Output is correct |
6 |
Correct |
80 ms |
145812 KB |
Output is correct |
7 |
Correct |
79 ms |
147108 KB |
Output is correct |
8 |
Correct |
76 ms |
143560 KB |
Output is correct |
9 |
Correct |
77 ms |
142352 KB |
Output is correct |
10 |
Correct |
82 ms |
152220 KB |
Output is correct |
11 |
Correct |
42 ms |
74444 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
48 ms |
88012 KB |
Output is correct |
14 |
Correct |
44 ms |
78224 KB |
Output is correct |
15 |
Correct |
48 ms |
84688 KB |
Output is correct |
16 |
Correct |
44 ms |
78156 KB |
Output is correct |
17 |
Correct |
49 ms |
85692 KB |
Output is correct |
18 |
Correct |
48 ms |
85196 KB |
Output is correct |
19 |
Correct |
43 ms |
76244 KB |
Output is correct |
20 |
Correct |
44 ms |
77224 KB |
Output is correct |
21 |
Correct |
45 ms |
79408 KB |
Output is correct |
22 |
Correct |
75 ms |
141344 KB |
Output is correct |
23 |
Correct |
75 ms |
140412 KB |
Output is correct |
24 |
Correct |
80 ms |
147924 KB |
Output is correct |
25 |
Correct |
76 ms |
143792 KB |
Output is correct |
26 |
Correct |
78 ms |
145796 KB |
Output is correct |
27 |
Correct |
81 ms |
146984 KB |
Output is correct |
28 |
Correct |
76 ms |
143504 KB |
Output is correct |
29 |
Correct |
76 ms |
142392 KB |
Output is correct |
30 |
Correct |
82 ms |
152260 KB |
Output is correct |
31 |
Correct |
44 ms |
74444 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
49 ms |
88040 KB |
Output is correct |
34 |
Correct |
46 ms |
78180 KB |
Output is correct |
35 |
Correct |
48 ms |
84684 KB |
Output is correct |
36 |
Correct |
44 ms |
78112 KB |
Output is correct |
37 |
Correct |
48 ms |
85708 KB |
Output is correct |
38 |
Correct |
49 ms |
85228 KB |
Output is correct |
39 |
Correct |
43 ms |
76244 KB |
Output is correct |
40 |
Correct |
44 ms |
77256 KB |
Output is correct |
41 |
Correct |
47 ms |
79436 KB |
Output is correct |
42 |
Correct |
77 ms |
141452 KB |
Output is correct |
43 |
Correct |
76 ms |
140440 KB |
Output is correct |
44 |
Correct |
82 ms |
147936 KB |
Output is correct |
45 |
Correct |
79 ms |
143728 KB |
Output is correct |
46 |
Correct |
77 ms |
145792 KB |
Output is correct |
47 |
Correct |
78 ms |
147056 KB |
Output is correct |
48 |
Correct |
76 ms |
143616 KB |
Output is correct |
49 |
Correct |
78 ms |
142396 KB |
Output is correct |
50 |
Correct |
82 ms |
152280 KB |
Output is correct |
51 |
Correct |
42 ms |
74444 KB |
Output is correct |
52 |
Correct |
1 ms |
440 KB |
Output is correct |
53 |
Correct |
49 ms |
88072 KB |
Output is correct |
54 |
Correct |
43 ms |
78196 KB |
Output is correct |
55 |
Correct |
47 ms |
84688 KB |
Output is correct |
56 |
Correct |
45 ms |
78232 KB |
Output is correct |
57 |
Correct |
52 ms |
85704 KB |
Output is correct |
58 |
Correct |
48 ms |
85260 KB |
Output is correct |
59 |
Correct |
44 ms |
76236 KB |
Output is correct |
60 |
Correct |
44 ms |
77260 KB |
Output is correct |
61 |
Correct |
45 ms |
79452 KB |
Output is correct |
62 |
Correct |
77 ms |
141340 KB |
Output is correct |
63 |
Correct |
78 ms |
140492 KB |
Output is correct |
64 |
Correct |
80 ms |
147916 KB |
Output is correct |
65 |
Correct |
79 ms |
143804 KB |
Output is correct |
66 |
Correct |
78 ms |
145740 KB |
Output is correct |
67 |
Correct |
78 ms |
146992 KB |
Output is correct |
68 |
Correct |
76 ms |
143608 KB |
Output is correct |
69 |
Correct |
80 ms |
142284 KB |
Output is correct |
70 |
Correct |
86 ms |
152304 KB |
Output is correct |
71 |
Correct |
42 ms |
74452 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
49 ms |
88128 KB |
Output is correct |
74 |
Correct |
47 ms |
78156 KB |
Output is correct |
75 |
Correct |
49 ms |
84684 KB |
Output is correct |
76 |
Correct |
44 ms |
78156 KB |
Output is correct |
77 |
Correct |
48 ms |
85612 KB |
Output is correct |
78 |
Correct |
49 ms |
85172 KB |
Output is correct |
79 |
Correct |
44 ms |
76236 KB |
Output is correct |
80 |
Correct |
44 ms |
77204 KB |
Output is correct |
81 |
Correct |
46 ms |
79564 KB |
Output is correct |
82 |
Correct |
77 ms |
141456 KB |
Output is correct |
83 |
Correct |
75 ms |
140492 KB |
Output is correct |
84 |
Correct |
80 ms |
147916 KB |
Output is correct |
85 |
Correct |
79 ms |
143952 KB |
Output is correct |
86 |
Correct |
80 ms |
145792 KB |
Output is correct |
87 |
Correct |
79 ms |
147072 KB |
Output is correct |
88 |
Correct |
75 ms |
143624 KB |
Output is correct |
89 |
Correct |
78 ms |
142336 KB |
Output is correct |
90 |
Correct |
96 ms |
152164 KB |
Output is correct |
91 |
Correct |
43 ms |
74368 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
49 ms |
88028 KB |
Output is correct |
94 |
Correct |
44 ms |
78124 KB |
Output is correct |
95 |
Correct |
58 ms |
84684 KB |
Output is correct |
96 |
Correct |
49 ms |
78228 KB |
Output is correct |
97 |
Correct |
48 ms |
85696 KB |
Output is correct |
98 |
Correct |
49 ms |
85248 KB |
Output is correct |
99 |
Correct |
44 ms |
76144 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
2132 KB |
Output is correct |
2 |
Correct |
5 ms |
8532 KB |
Output is correct |
3 |
Correct |
7 ms |
8888 KB |
Output is correct |
4 |
Correct |
10 ms |
11988 KB |
Output is correct |
5 |
Correct |
9 ms |
9556 KB |
Output is correct |
6 |
Correct |
5 ms |
7764 KB |
Output is correct |
7 |
Correct |
6 ms |
10580 KB |
Output is correct |
8 |
Correct |
5 ms |
7636 KB |
Output is correct |
9 |
Correct |
7 ms |
9912 KB |
Output is correct |
10 |
Correct |
8 ms |
11732 KB |
Output is correct |
11 |
Correct |
1 ms |
1364 KB |
Output is correct |
12 |
Correct |
2 ms |
2132 KB |
Output is correct |
13 |
Correct |
5 ms |
8532 KB |
Output is correct |
14 |
Correct |
6 ms |
8880 KB |
Output is correct |
15 |
Correct |
8 ms |
11988 KB |
Output is correct |
16 |
Correct |
6 ms |
9556 KB |
Output is correct |
17 |
Correct |
5 ms |
7764 KB |
Output is correct |
18 |
Correct |
7 ms |
10580 KB |
Output is correct |
19 |
Correct |
5 ms |
7636 KB |
Output is correct |
20 |
Correct |
6 ms |
9812 KB |
Output is correct |
21 |
Correct |
3 ms |
2132 KB |
Output is correct |
22 |
Correct |
8 ms |
11732 KB |
Output is correct |
23 |
Correct |
2 ms |
2132 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
1620 KB |
Output is correct |
26 |
Correct |
1 ms |
1492 KB |
Output is correct |
27 |
Correct |
1 ms |
980 KB |
Output is correct |
28 |
Correct |
2 ms |
2048 KB |
Output is correct |
29 |
Correct |
1 ms |
1748 KB |
Output is correct |
30 |
Correct |
2 ms |
2004 KB |
Output is correct |
31 |
Correct |
1 ms |
1620 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
2 ms |
1620 KB |
Output is correct |
34 |
Correct |
1 ms |
1492 KB |
Output is correct |
35 |
Correct |
1 ms |
980 KB |
Output is correct |
36 |
Correct |
2 ms |
2004 KB |
Output is correct |
37 |
Correct |
1 ms |
1748 KB |
Output is correct |
38 |
Correct |
1 ms |
2004 KB |
Output is correct |
39 |
Correct |
2 ms |
1620 KB |
Output is correct |
40 |
Correct |
1 ms |
1364 KB |
Output is correct |
41 |
Correct |
1 ms |
2132 KB |
Output is correct |
42 |
Correct |
7 ms |
8532 KB |
Output is correct |
43 |
Correct |
8 ms |
8852 KB |
Output is correct |
44 |
Correct |
12 ms |
12016 KB |
Output is correct |
45 |
Correct |
6 ms |
9556 KB |
Output is correct |
46 |
Correct |
5 ms |
7764 KB |
Output is correct |
47 |
Correct |
7 ms |
10580 KB |
Output is correct |
48 |
Correct |
5 ms |
7636 KB |
Output is correct |
49 |
Correct |
7 ms |
9824 KB |
Output is correct |
50 |
Correct |
9 ms |
11732 KB |
Output is correct |
51 |
Correct |
1 ms |
2132 KB |
Output is correct |
52 |
Correct |
0 ms |
212 KB |
Output is correct |
53 |
Correct |
1 ms |
1620 KB |
Output is correct |
54 |
Correct |
2 ms |
1492 KB |
Output is correct |
55 |
Correct |
1 ms |
980 KB |
Output is correct |
56 |
Correct |
2 ms |
2004 KB |
Output is correct |
57 |
Correct |
2 ms |
1748 KB |
Output is correct |
58 |
Correct |
2 ms |
2004 KB |
Output is correct |
59 |
Correct |
1 ms |
1620 KB |
Output is correct |
60 |
Correct |
1 ms |
1364 KB |
Output is correct |
61 |
Correct |
2 ms |
2132 KB |
Output is correct |
62 |
Correct |
5 ms |
8532 KB |
Output is correct |
63 |
Correct |
7 ms |
8916 KB |
Output is correct |
64 |
Correct |
7 ms |
11988 KB |
Output is correct |
65 |
Correct |
7 ms |
9556 KB |
Output is correct |
66 |
Correct |
4 ms |
7764 KB |
Output is correct |
67 |
Correct |
6 ms |
10580 KB |
Output is correct |
68 |
Correct |
5 ms |
7640 KB |
Output is correct |
69 |
Correct |
7 ms |
9860 KB |
Output is correct |
70 |
Correct |
8 ms |
11732 KB |
Output is correct |
71 |
Correct |
2 ms |
2132 KB |
Output is correct |
72 |
Correct |
0 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
1620 KB |
Output is correct |
74 |
Correct |
1 ms |
1492 KB |
Output is correct |
75 |
Correct |
1 ms |
980 KB |
Output is correct |
76 |
Correct |
2 ms |
2004 KB |
Output is correct |
77 |
Correct |
1 ms |
1748 KB |
Output is correct |
78 |
Correct |
1 ms |
2004 KB |
Output is correct |
79 |
Correct |
1 ms |
1620 KB |
Output is correct |
80 |
Correct |
1 ms |
1364 KB |
Output is correct |
81 |
Correct |
2 ms |
2132 KB |
Output is correct |
82 |
Correct |
6 ms |
8532 KB |
Output is correct |
83 |
Correct |
6 ms |
8952 KB |
Output is correct |
84 |
Correct |
12 ms |
12108 KB |
Output is correct |
85 |
Correct |
6 ms |
9556 KB |
Output is correct |
86 |
Correct |
5 ms |
7764 KB |
Output is correct |
87 |
Correct |
7 ms |
10580 KB |
Output is correct |
88 |
Correct |
6 ms |
7636 KB |
Output is correct |
89 |
Correct |
7 ms |
9812 KB |
Output is correct |
90 |
Correct |
7 ms |
11732 KB |
Output is correct |
91 |
Correct |
2 ms |
2132 KB |
Output is correct |
92 |
Correct |
1 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
1620 KB |
Output is correct |
94 |
Correct |
1 ms |
1492 KB |
Output is correct |
95 |
Correct |
1 ms |
980 KB |
Output is correct |
96 |
Correct |
1 ms |
2004 KB |
Output is correct |
97 |
Correct |
1 ms |
1748 KB |
Output is correct |
98 |
Correct |
2 ms |
2004 KB |
Output is correct |
99 |
Correct |
1 ms |
1620 KB |
Output is correct |
100 |
Correct |
1 ms |
1364 KB |
Output is correct |
101 |
Correct |
1 ms |
2132 KB |
Output is correct |
102 |
Correct |
6 ms |
8532 KB |
Output is correct |
103 |
Correct |
5 ms |
8916 KB |
Output is correct |
104 |
Correct |
8 ms |
11988 KB |
Output is correct |
105 |
Correct |
6 ms |
9556 KB |
Output is correct |
106 |
Correct |
5 ms |
7764 KB |
Output is correct |
107 |
Correct |
7 ms |
10592 KB |
Output is correct |
108 |
Correct |
5 ms |
7636 KB |
Output is correct |
109 |
Correct |
8 ms |
9796 KB |
Output is correct |
110 |
Correct |
8 ms |
11732 KB |
Output is correct |
111 |
Correct |
1 ms |
2132 KB |
Output is correct |
112 |
Correct |
0 ms |
212 KB |
Output is correct |
113 |
Correct |
1 ms |
1620 KB |
Output is correct |
114 |
Correct |
1 ms |
1492 KB |
Output is correct |
115 |
Correct |
1 ms |
980 KB |
Output is correct |
116 |
Correct |
2 ms |
2004 KB |
Output is correct |
117 |
Correct |
1 ms |
1748 KB |
Output is correct |
118 |
Correct |
2 ms |
2004 KB |
Output is correct |
119 |
Correct |
1 ms |
1620 KB |
Output is correct |
120 |
Correct |
12 ms |
9556 KB |
Output is correct |
121 |
Correct |
88 ms |
150492 KB |
Output is correct |
122 |
Correct |
92 ms |
158292 KB |
Output is correct |
123 |
Correct |
92 ms |
141056 KB |
Output is correct |
124 |
Correct |
118 ms |
156588 KB |
Output is correct |
125 |
Correct |
99 ms |
152780 KB |
Output is correct |
126 |
Correct |
107 ms |
174836 KB |
Output is correct |
127 |
Correct |
105 ms |
148432 KB |
Output is correct |
128 |
Correct |
128 ms |
191772 KB |
Output is correct |
129 |
Correct |
95 ms |
145316 KB |
Output is correct |
130 |
Correct |
5 ms |
7508 KB |
Output is correct |
131 |
Correct |
1 ms |
212 KB |
Output is correct |
132 |
Correct |
7 ms |
10708 KB |
Output is correct |
133 |
Correct |
1 ms |
1492 KB |
Output is correct |
134 |
Correct |
5 ms |
6740 KB |
Output is correct |
135 |
Correct |
13 ms |
19548 KB |
Output is correct |
136 |
Correct |
18 ms |
20556 KB |
Output is correct |
137 |
Correct |
13 ms |
13268 KB |
Output is correct |
138 |
Correct |
22 ms |
22292 KB |
Output is correct |
139 |
Correct |
10 ms |
9888 KB |
Output is correct |
140 |
Correct |
10 ms |
9556 KB |
Output is correct |
141 |
Correct |
122 ms |
150548 KB |
Output is correct |
142 |
Correct |
101 ms |
158268 KB |
Output is correct |
143 |
Correct |
106 ms |
141048 KB |
Output is correct |
144 |
Correct |
107 ms |
156628 KB |
Output is correct |
145 |
Correct |
98 ms |
152900 KB |
Output is correct |
146 |
Correct |
107 ms |
174924 KB |
Output is correct |
147 |
Correct |
103 ms |
148472 KB |
Output is correct |
148 |
Correct |
137 ms |
191688 KB |
Output is correct |
149 |
Correct |
109 ms |
145352 KB |
Output is correct |
150 |
Correct |
5 ms |
7508 KB |
Output is correct |
151 |
Correct |
0 ms |
212 KB |
Output is correct |
152 |
Correct |
7 ms |
10708 KB |
Output is correct |
153 |
Correct |
1 ms |
1492 KB |
Output is correct |
154 |
Correct |
4 ms |
6740 KB |
Output is correct |
155 |
Correct |
13 ms |
19540 KB |
Output is correct |
156 |
Correct |
15 ms |
20564 KB |
Output is correct |
157 |
Correct |
12 ms |
13304 KB |
Output is correct |
158 |
Correct |
18 ms |
22196 KB |
Output is correct |
159 |
Correct |
10 ms |
9936 KB |
Output is correct |
160 |
Correct |
9 ms |
9580 KB |
Output is correct |
161 |
Correct |
94 ms |
150556 KB |
Output is correct |
162 |
Correct |
103 ms |
158320 KB |
Output is correct |
163 |
Correct |
104 ms |
140952 KB |
Output is correct |
164 |
Correct |
96 ms |
156644 KB |
Output is correct |
165 |
Correct |
96 ms |
152908 KB |
Output is correct |
166 |
Correct |
102 ms |
174936 KB |
Output is correct |
167 |
Correct |
89 ms |
148476 KB |
Output is correct |
168 |
Correct |
146 ms |
191704 KB |
Output is correct |
169 |
Correct |
100 ms |
145328 KB |
Output is correct |
170 |
Correct |
5 ms |
7508 KB |
Output is correct |
171 |
Correct |
0 ms |
212 KB |
Output is correct |
172 |
Correct |
6 ms |
10708 KB |
Output is correct |
173 |
Correct |
1 ms |
1492 KB |
Output is correct |
174 |
Correct |
4 ms |
6740 KB |
Output is correct |
175 |
Correct |
16 ms |
19540 KB |
Output is correct |
176 |
Correct |
17 ms |
20480 KB |
Output is correct |
177 |
Correct |
12 ms |
13268 KB |
Output is correct |
178 |
Correct |
19 ms |
22244 KB |
Output is correct |
179 |
Correct |
10 ms |
9956 KB |
Output is correct |
180 |
Correct |
9 ms |
9576 KB |
Output is correct |
181 |
Correct |
90 ms |
150568 KB |
Output is correct |
182 |
Correct |
95 ms |
158408 KB |
Output is correct |
183 |
Correct |
93 ms |
140944 KB |
Output is correct |
184 |
Correct |
100 ms |
156576 KB |
Output is correct |
185 |
Correct |
92 ms |
152900 KB |
Output is correct |
186 |
Correct |
109 ms |
175012 KB |
Output is correct |
187 |
Correct |
89 ms |
148432 KB |
Output is correct |
188 |
Correct |
120 ms |
191636 KB |
Output is correct |
189 |
Correct |
95 ms |
145408 KB |
Output is correct |
190 |
Correct |
5 ms |
7508 KB |
Output is correct |
191 |
Correct |
0 ms |
212 KB |
Output is correct |
192 |
Correct |
9 ms |
10924 KB |
Output is correct |
193 |
Correct |
2 ms |
1364 KB |
Output is correct |
194 |
Correct |
4 ms |
6692 KB |
Output is correct |
195 |
Correct |
12 ms |
19540 KB |
Output is correct |
196 |
Correct |
16 ms |
20580 KB |
Output is correct |
197 |
Correct |
11 ms |
13308 KB |
Output is correct |
198 |
Correct |
19 ms |
22272 KB |
Output is correct |
199 |
Correct |
9 ms |
9940 KB |
Output is correct |
200 |
Correct |
9 ms |
9556 KB |
Output is correct |
201 |
Correct |
91 ms |
150556 KB |
Output is correct |
202 |
Correct |
96 ms |
158284 KB |
Output is correct |
203 |
Correct |
89 ms |
141048 KB |
Output is correct |
204 |
Correct |
119 ms |
156552 KB |
Output is correct |
205 |
Correct |
95 ms |
152908 KB |
Output is correct |
206 |
Correct |
105 ms |
174904 KB |
Output is correct |
207 |
Correct |
89 ms |
148516 KB |
Output is correct |
208 |
Correct |
118 ms |
191564 KB |
Output is correct |
209 |
Correct |
95 ms |
145416 KB |
Output is correct |
210 |
Correct |
5 ms |
7508 KB |
Output is correct |
211 |
Correct |
1 ms |
212 KB |
Output is correct |
212 |
Correct |
9 ms |
10712 KB |
Output is correct |
213 |
Correct |
1 ms |
1492 KB |
Output is correct |
214 |
Correct |
4 ms |
6740 KB |
Output is correct |
215 |
Correct |
12 ms |
19660 KB |
Output is correct |
216 |
Correct |
16 ms |
20580 KB |
Output is correct |
217 |
Correct |
11 ms |
13268 KB |
Output is correct |
218 |
Correct |
18 ms |
22228 KB |
Output is correct |
219 |
Correct |
214 ms |
182112 KB |
Output is correct |
220 |
Correct |
354 ms |
283628 KB |
Output is correct |
221 |
Correct |
89 ms |
74504 KB |
Output is correct |
222 |
Correct |
138 ms |
111480 KB |
Output is correct |
223 |
Correct |
846 ms |
750684 KB |
Output is correct |
224 |
Correct |
1080 ms |
953476 KB |
Output is correct |
225 |
Correct |
1064 ms |
924628 KB |
Output is correct |
226 |
Correct |
207 ms |
176800 KB |
Output is correct |
227 |
Correct |
1122 ms |
978188 KB |
Output is correct |
228 |
Correct |
508 ms |
398224 KB |
Output is correct |
229 |
Correct |
981 ms |
856072 KB |
Output is correct |
230 |
Correct |
800 ms |
674228 KB |
Output is correct |
231 |
Correct |
761 ms |
592384 KB |
Output is correct |
232 |
Correct |
216 ms |
186212 KB |
Output is correct |
233 |
Correct |
782 ms |
677708 KB |
Output is correct |
234 |
Correct |
781 ms |
651216 KB |
Output is correct |
235 |
Correct |
787 ms |
686948 KB |
Output is correct |
236 |
Correct |
838 ms |
737424 KB |
Output is correct |
237 |
Correct |
794 ms |
578432 KB |
Output is correct |
238 |
Correct |
221 ms |
184212 KB |
Output is correct |
239 |
Correct |
224 ms |
182200 KB |
Output is correct |
240 |
Correct |
331 ms |
283520 KB |
Output is correct |
241 |
Correct |
93 ms |
74548 KB |
Output is correct |
242 |
Correct |
135 ms |
111348 KB |
Output is correct |
243 |
Correct |
880 ms |
750840 KB |
Output is correct |
244 |
Correct |
1087 ms |
953492 KB |
Output is correct |
245 |
Correct |
1084 ms |
924640 KB |
Output is correct |
246 |
Correct |
216 ms |
176820 KB |
Output is correct |
247 |
Correct |
1116 ms |
978140 KB |
Output is correct |
248 |
Correct |
485 ms |
398128 KB |
Output is correct |
249 |
Correct |
1002 ms |
856124 KB |
Output is correct |
250 |
Correct |
795 ms |
674304 KB |
Output is correct |
251 |
Correct |
770 ms |
592384 KB |
Output is correct |
252 |
Correct |
226 ms |
186272 KB |
Output is correct |
253 |
Correct |
800 ms |
677640 KB |
Output is correct |
254 |
Correct |
746 ms |
651268 KB |
Output is correct |
255 |
Correct |
781 ms |
686928 KB |
Output is correct |
256 |
Correct |
851 ms |
737456 KB |
Output is correct |
257 |
Correct |
1027 ms |
578440 KB |
Output is correct |
258 |
Correct |
209 ms |
184076 KB |
Output is correct |
259 |
Correct |
206 ms |
182304 KB |
Output is correct |
260 |
Correct |
339 ms |
283604 KB |
Output is correct |
261 |
Correct |
90 ms |
74552 KB |
Output is correct |
262 |
Correct |
130 ms |
111308 KB |
Output is correct |
263 |
Correct |
859 ms |
750840 KB |
Output is correct |
264 |
Correct |
1100 ms |
953420 KB |
Output is correct |
265 |
Correct |
1053 ms |
924568 KB |
Output is correct |
266 |
Correct |
206 ms |
176812 KB |
Output is correct |
267 |
Correct |
1096 ms |
978168 KB |
Output is correct |
268 |
Correct |
487 ms |
398292 KB |
Output is correct |
269 |
Correct |
1014 ms |
856020 KB |
Output is correct |
270 |
Correct |
800 ms |
674428 KB |
Output is correct |
271 |
Correct |
757 ms |
592352 KB |
Output is correct |
272 |
Correct |
215 ms |
186308 KB |
Output is correct |
273 |
Correct |
821 ms |
677716 KB |
Output is correct |
274 |
Correct |
759 ms |
651272 KB |
Output is correct |
275 |
Correct |
804 ms |
686924 KB |
Output is correct |
276 |
Correct |
851 ms |
737612 KB |
Output is correct |
277 |
Correct |
702 ms |
578436 KB |
Output is correct |
278 |
Correct |
229 ms |
184092 KB |
Output is correct |
279 |
Correct |
213 ms |
182144 KB |
Output is correct |
280 |
Correct |
331 ms |
283696 KB |
Output is correct |
281 |
Correct |
94 ms |
74448 KB |
Output is correct |
282 |
Correct |
135 ms |
111264 KB |
Output is correct |
283 |
Correct |
866 ms |
750744 KB |
Output is correct |
284 |
Correct |
1144 ms |
953444 KB |
Output is correct |
285 |
Correct |
1091 ms |
924580 KB |
Output is correct |
286 |
Correct |
222 ms |
176780 KB |
Output is correct |
287 |
Correct |
1110 ms |
978300 KB |
Output is correct |
288 |
Correct |
489 ms |
398364 KB |
Output is correct |
289 |
Correct |
973 ms |
855980 KB |
Output is correct |
290 |
Correct |
773 ms |
674336 KB |
Output is correct |
291 |
Correct |
738 ms |
592376 KB |
Output is correct |
292 |
Correct |
222 ms |
186216 KB |
Output is correct |
293 |
Correct |
777 ms |
677760 KB |
Output is correct |
294 |
Correct |
792 ms |
651260 KB |
Output is correct |
295 |
Correct |
785 ms |
687000 KB |
Output is correct |
296 |
Correct |
839 ms |
737476 KB |
Output is correct |
297 |
Correct |
707 ms |
578516 KB |
Output is correct |
298 |
Correct |
220 ms |
184036 KB |
Output is correct |
299 |
Correct |
208 ms |
182176 KB |
Output is correct |
300 |
Correct |
332 ms |
283600 KB |
Output is correct |
301 |
Correct |
93 ms |
74580 KB |
Output is correct |
302 |
Correct |
134 ms |
111328 KB |
Output is correct |
303 |
Correct |
866 ms |
750692 KB |
Output is correct |
304 |
Correct |
1191 ms |
953416 KB |
Output is correct |
305 |
Correct |
1047 ms |
924644 KB |
Output is correct |
306 |
Correct |
207 ms |
176720 KB |
Output is correct |
307 |
Correct |
1097 ms |
978336 KB |
Output is correct |
308 |
Correct |
482 ms |
398232 KB |
Output is correct |
309 |
Correct |
959 ms |
855948 KB |
Output is correct |
310 |
Correct |
772 ms |
674240 KB |
Output is correct |
311 |
Correct |
736 ms |
592296 KB |
Output is correct |
312 |
Correct |
213 ms |
186376 KB |
Output is correct |
313 |
Correct |
772 ms |
677692 KB |
Output is correct |
314 |
Correct |
757 ms |
651204 KB |
Output is correct |
315 |
Correct |
782 ms |
686956 KB |
Output is correct |
316 |
Correct |
836 ms |
737588 KB |
Output is correct |
317 |
Correct |
702 ms |
578492 KB |
Output is correct |
318 |
Runtime error |
836 ms |
2097152 KB |
Execution killed with signal 9 |
319 |
Halted |
0 ms |
0 KB |
- |