# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
755277 |
2023-06-09T16:37:21 Z |
Lucpp |
Council (JOI23_council) |
C++17 |
|
2771 ms |
193788 KB |
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pi;
int cost(int x, int y){
return __builtin_popcount(x & y);
}
int n, m;
pi combine(pi a, pi b){
if(a.first == -1) return b;
if(a.second == -1) return {a.first, b.first};
return a;
}
vector<pi> best;
void rec(int msk, int i, const vector<vector<pi>>& v){
if(i == m){
for(pi p : v[0]){
best[msk] = combine(best[msk], p);
}
return;
}
vector<vector<pi>> a(1<<(m-i-1), vector<pi>(i+2, {-1, -1}));
vector<vector<pi>> b = a;
for(int j = 0; j < (1<<(m-i)); j++){
for(int k = 0; k <= i; k++){
a[j>>1][k] = combine(a[j>>1][k], v[j][k]);
int add = j&1;
b[j>>1][k+add] = combine(b[j>>1][k+add], v[j][k]);
}
}
rec(msk, i+1, a);
rec(msk|(1<<i), i+1, b);
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n >> m;
vector<int> a(n);
vector<int> total(m);
vector<vector<pi>> v(1<<m, vector<pi>(1, {-1, -1}));
best.assign(1<<m, {-1, -1});
for(int i = 0; i < n; i++){
int x = 0, y;
for(int j = 0; j < m; j++){
cin >> y;
x += y*(1<<j);
total[j] += y;
}
a[i] = x;
v[x][0] = combine(v[x][0], {x, -1});
}
rec(0, 0, v);
for(int i : a){
int ans = 0;
int crit = 0;
for(int j = 0; j < m; j++){
int votes = total[j];
if(i & (1<<j)) votes--;
if(votes >= n/2){
ans++;
}
if(votes == n/2){
crit |= (1<<j);
}
}
int j = best[crit].first;
if(i == j) j = best[crit].second;
ans -= cost(crit, j);
cout << ans << "\n";
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
7 ms |
980 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
2025 ms |
191996 KB |
Output is correct |
6 |
Correct |
1923 ms |
191940 KB |
Output is correct |
7 |
Correct |
1981 ms |
191900 KB |
Output is correct |
8 |
Correct |
2029 ms |
192008 KB |
Output is correct |
9 |
Correct |
2055 ms |
191900 KB |
Output is correct |
10 |
Correct |
2041 ms |
191944 KB |
Output is correct |
11 |
Correct |
2043 ms |
192008 KB |
Output is correct |
12 |
Correct |
2085 ms |
191996 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
316 KB |
Output is correct |
17 |
Correct |
2 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
316 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
468 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
324 KB |
Output is correct |
30 |
Correct |
1 ms |
468 KB |
Output is correct |
31 |
Correct |
2 ms |
468 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
1 ms |
320 KB |
Output is correct |
34 |
Correct |
1 ms |
212 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
1 ms |
340 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
1 ms |
320 KB |
Output is correct |
39 |
Correct |
1 ms |
468 KB |
Output is correct |
40 |
Correct |
2 ms |
456 KB |
Output is correct |
41 |
Correct |
20 ms |
3284 KB |
Output is correct |
42 |
Correct |
20 ms |
3336 KB |
Output is correct |
43 |
Correct |
20 ms |
3284 KB |
Output is correct |
44 |
Correct |
20 ms |
3284 KB |
Output is correct |
45 |
Correct |
21 ms |
3284 KB |
Output is correct |
46 |
Correct |
235 ms |
24284 KB |
Output is correct |
47 |
Correct |
227 ms |
24296 KB |
Output is correct |
48 |
Correct |
207 ms |
24296 KB |
Output is correct |
49 |
Correct |
222 ms |
24272 KB |
Output is correct |
50 |
Correct |
218 ms |
24296 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
7 ms |
980 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
2025 ms |
191996 KB |
Output is correct |
6 |
Correct |
1923 ms |
191940 KB |
Output is correct |
7 |
Correct |
1981 ms |
191900 KB |
Output is correct |
8 |
Correct |
2029 ms |
192008 KB |
Output is correct |
9 |
Correct |
2055 ms |
191900 KB |
Output is correct |
10 |
Correct |
2041 ms |
191944 KB |
Output is correct |
11 |
Correct |
2043 ms |
192008 KB |
Output is correct |
12 |
Correct |
2085 ms |
191996 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
316 KB |
Output is correct |
17 |
Correct |
2 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
316 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
468 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
324 KB |
Output is correct |
30 |
Correct |
1 ms |
468 KB |
Output is correct |
31 |
Correct |
2 ms |
468 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
1 ms |
320 KB |
Output is correct |
34 |
Correct |
1 ms |
212 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
1 ms |
340 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
1 ms |
320 KB |
Output is correct |
39 |
Correct |
1 ms |
468 KB |
Output is correct |
40 |
Correct |
2 ms |
456 KB |
Output is correct |
41 |
Correct |
20 ms |
3284 KB |
Output is correct |
42 |
Correct |
20 ms |
3336 KB |
Output is correct |
43 |
Correct |
20 ms |
3284 KB |
Output is correct |
44 |
Correct |
20 ms |
3284 KB |
Output is correct |
45 |
Correct |
21 ms |
3284 KB |
Output is correct |
46 |
Correct |
235 ms |
24284 KB |
Output is correct |
47 |
Correct |
227 ms |
24296 KB |
Output is correct |
48 |
Correct |
207 ms |
24296 KB |
Output is correct |
49 |
Correct |
222 ms |
24272 KB |
Output is correct |
50 |
Correct |
218 ms |
24296 KB |
Output is correct |
51 |
Correct |
2334 ms |
192100 KB |
Output is correct |
52 |
Correct |
2429 ms |
191992 KB |
Output is correct |
53 |
Correct |
2037 ms |
192120 KB |
Output is correct |
54 |
Correct |
2090 ms |
192088 KB |
Output is correct |
55 |
Correct |
1 ms |
324 KB |
Output is correct |
56 |
Correct |
207 ms |
24376 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
58 ms |
2464 KB |
Output is correct |
3 |
Correct |
53 ms |
2380 KB |
Output is correct |
4 |
Correct |
43 ms |
2392 KB |
Output is correct |
5 |
Correct |
59 ms |
2356 KB |
Output is correct |
6 |
Correct |
46 ms |
2380 KB |
Output is correct |
7 |
Correct |
65 ms |
2420 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
58 ms |
2464 KB |
Output is correct |
3 |
Correct |
53 ms |
2380 KB |
Output is correct |
4 |
Correct |
43 ms |
2392 KB |
Output is correct |
5 |
Correct |
59 ms |
2356 KB |
Output is correct |
6 |
Correct |
46 ms |
2380 KB |
Output is correct |
7 |
Correct |
65 ms |
2420 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
193 ms |
2744 KB |
Output is correct |
21 |
Correct |
183 ms |
2632 KB |
Output is correct |
22 |
Correct |
205 ms |
2552 KB |
Output is correct |
23 |
Correct |
166 ms |
2892 KB |
Output is correct |
24 |
Correct |
163 ms |
2668 KB |
Output is correct |
25 |
Correct |
213 ms |
2584 KB |
Output is correct |
26 |
Correct |
201 ms |
2572 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
212 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
316 KB |
Output is correct |
33 |
Correct |
1 ms |
340 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
468 KB |
Output is correct |
36 |
Correct |
2 ms |
468 KB |
Output is correct |
37 |
Correct |
1 ms |
316 KB |
Output is correct |
38 |
Correct |
0 ms |
212 KB |
Output is correct |
39 |
Correct |
1 ms |
212 KB |
Output is correct |
40 |
Correct |
1 ms |
212 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
340 KB |
Output is correct |
43 |
Correct |
1 ms |
316 KB |
Output is correct |
44 |
Correct |
1 ms |
468 KB |
Output is correct |
45 |
Correct |
3 ms |
468 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
58 ms |
2464 KB |
Output is correct |
3 |
Correct |
53 ms |
2380 KB |
Output is correct |
4 |
Correct |
43 ms |
2392 KB |
Output is correct |
5 |
Correct |
59 ms |
2356 KB |
Output is correct |
6 |
Correct |
46 ms |
2380 KB |
Output is correct |
7 |
Correct |
65 ms |
2420 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
193 ms |
2744 KB |
Output is correct |
21 |
Correct |
183 ms |
2632 KB |
Output is correct |
22 |
Correct |
205 ms |
2552 KB |
Output is correct |
23 |
Correct |
166 ms |
2892 KB |
Output is correct |
24 |
Correct |
163 ms |
2668 KB |
Output is correct |
25 |
Correct |
213 ms |
2584 KB |
Output is correct |
26 |
Correct |
201 ms |
2572 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
212 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
316 KB |
Output is correct |
33 |
Correct |
1 ms |
340 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
468 KB |
Output is correct |
36 |
Correct |
2 ms |
468 KB |
Output is correct |
37 |
Correct |
1 ms |
316 KB |
Output is correct |
38 |
Correct |
0 ms |
212 KB |
Output is correct |
39 |
Correct |
1 ms |
212 KB |
Output is correct |
40 |
Correct |
1 ms |
212 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
340 KB |
Output is correct |
43 |
Correct |
1 ms |
316 KB |
Output is correct |
44 |
Correct |
1 ms |
468 KB |
Output is correct |
45 |
Correct |
3 ms |
468 KB |
Output is correct |
46 |
Correct |
5 ms |
980 KB |
Output is correct |
47 |
Correct |
310 ms |
5056 KB |
Output is correct |
48 |
Correct |
286 ms |
4052 KB |
Output is correct |
49 |
Correct |
292 ms |
4056 KB |
Output is correct |
50 |
Correct |
275 ms |
5512 KB |
Output is correct |
51 |
Correct |
308 ms |
5200 KB |
Output is correct |
52 |
Correct |
291 ms |
5140 KB |
Output is correct |
53 |
Correct |
291 ms |
5500 KB |
Output is correct |
54 |
Correct |
31 ms |
3284 KB |
Output is correct |
55 |
Correct |
20 ms |
3284 KB |
Output is correct |
56 |
Correct |
31 ms |
3284 KB |
Output is correct |
57 |
Correct |
25 ms |
3344 KB |
Output is correct |
58 |
Correct |
26 ms |
3328 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
58 ms |
2464 KB |
Output is correct |
3 |
Correct |
53 ms |
2380 KB |
Output is correct |
4 |
Correct |
43 ms |
2392 KB |
Output is correct |
5 |
Correct |
59 ms |
2356 KB |
Output is correct |
6 |
Correct |
46 ms |
2380 KB |
Output is correct |
7 |
Correct |
65 ms |
2420 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
212 KB |
Output is correct |
12 |
Correct |
1 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
193 ms |
2744 KB |
Output is correct |
21 |
Correct |
183 ms |
2632 KB |
Output is correct |
22 |
Correct |
205 ms |
2552 KB |
Output is correct |
23 |
Correct |
166 ms |
2892 KB |
Output is correct |
24 |
Correct |
163 ms |
2668 KB |
Output is correct |
25 |
Correct |
213 ms |
2584 KB |
Output is correct |
26 |
Correct |
201 ms |
2572 KB |
Output is correct |
27 |
Correct |
2 ms |
468 KB |
Output is correct |
28 |
Correct |
1 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
1 ms |
212 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
1 ms |
316 KB |
Output is correct |
33 |
Correct |
1 ms |
340 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
468 KB |
Output is correct |
36 |
Correct |
2 ms |
468 KB |
Output is correct |
37 |
Correct |
1 ms |
316 KB |
Output is correct |
38 |
Correct |
0 ms |
212 KB |
Output is correct |
39 |
Correct |
1 ms |
212 KB |
Output is correct |
40 |
Correct |
1 ms |
212 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
340 KB |
Output is correct |
43 |
Correct |
1 ms |
316 KB |
Output is correct |
44 |
Correct |
1 ms |
468 KB |
Output is correct |
45 |
Correct |
3 ms |
468 KB |
Output is correct |
46 |
Correct |
5 ms |
980 KB |
Output is correct |
47 |
Correct |
310 ms |
5056 KB |
Output is correct |
48 |
Correct |
286 ms |
4052 KB |
Output is correct |
49 |
Correct |
292 ms |
4056 KB |
Output is correct |
50 |
Correct |
275 ms |
5512 KB |
Output is correct |
51 |
Correct |
308 ms |
5200 KB |
Output is correct |
52 |
Correct |
291 ms |
5140 KB |
Output is correct |
53 |
Correct |
291 ms |
5500 KB |
Output is correct |
54 |
Correct |
31 ms |
3284 KB |
Output is correct |
55 |
Correct |
20 ms |
3284 KB |
Output is correct |
56 |
Correct |
31 ms |
3284 KB |
Output is correct |
57 |
Correct |
25 ms |
3344 KB |
Output is correct |
58 |
Correct |
26 ms |
3328 KB |
Output is correct |
59 |
Correct |
406 ms |
13924 KB |
Output is correct |
60 |
Correct |
387 ms |
25232 KB |
Output is correct |
61 |
Correct |
378 ms |
25288 KB |
Output is correct |
62 |
Correct |
362 ms |
25292 KB |
Output is correct |
63 |
Correct |
458 ms |
14224 KB |
Output is correct |
64 |
Correct |
599 ms |
25964 KB |
Output is correct |
65 |
Correct |
614 ms |
25976 KB |
Output is correct |
66 |
Correct |
533 ms |
25980 KB |
Output is correct |
67 |
Correct |
501 ms |
25968 KB |
Output is correct |
68 |
Correct |
572 ms |
25960 KB |
Output is correct |
69 |
Correct |
611 ms |
25960 KB |
Output is correct |
70 |
Correct |
278 ms |
24296 KB |
Output is correct |
71 |
Correct |
237 ms |
24280 KB |
Output is correct |
72 |
Correct |
258 ms |
24296 KB |
Output is correct |
73 |
Correct |
246 ms |
24284 KB |
Output is correct |
74 |
Correct |
239 ms |
24276 KB |
Output is correct |
75 |
Correct |
231 ms |
24388 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
7 ms |
980 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
2025 ms |
191996 KB |
Output is correct |
6 |
Correct |
1923 ms |
191940 KB |
Output is correct |
7 |
Correct |
1981 ms |
191900 KB |
Output is correct |
8 |
Correct |
2029 ms |
192008 KB |
Output is correct |
9 |
Correct |
2055 ms |
191900 KB |
Output is correct |
10 |
Correct |
2041 ms |
191944 KB |
Output is correct |
11 |
Correct |
2043 ms |
192008 KB |
Output is correct |
12 |
Correct |
2085 ms |
191996 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
212 KB |
Output is correct |
16 |
Correct |
1 ms |
316 KB |
Output is correct |
17 |
Correct |
2 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
212 KB |
Output is correct |
20 |
Correct |
1 ms |
316 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
468 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
1 ms |
212 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
324 KB |
Output is correct |
30 |
Correct |
1 ms |
468 KB |
Output is correct |
31 |
Correct |
2 ms |
468 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
1 ms |
320 KB |
Output is correct |
34 |
Correct |
1 ms |
212 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
1 ms |
340 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
1 ms |
320 KB |
Output is correct |
39 |
Correct |
1 ms |
468 KB |
Output is correct |
40 |
Correct |
2 ms |
456 KB |
Output is correct |
41 |
Correct |
20 ms |
3284 KB |
Output is correct |
42 |
Correct |
20 ms |
3336 KB |
Output is correct |
43 |
Correct |
20 ms |
3284 KB |
Output is correct |
44 |
Correct |
20 ms |
3284 KB |
Output is correct |
45 |
Correct |
21 ms |
3284 KB |
Output is correct |
46 |
Correct |
235 ms |
24284 KB |
Output is correct |
47 |
Correct |
227 ms |
24296 KB |
Output is correct |
48 |
Correct |
207 ms |
24296 KB |
Output is correct |
49 |
Correct |
222 ms |
24272 KB |
Output is correct |
50 |
Correct |
218 ms |
24296 KB |
Output is correct |
51 |
Correct |
2334 ms |
192100 KB |
Output is correct |
52 |
Correct |
2429 ms |
191992 KB |
Output is correct |
53 |
Correct |
2037 ms |
192120 KB |
Output is correct |
54 |
Correct |
2090 ms |
192088 KB |
Output is correct |
55 |
Correct |
1 ms |
324 KB |
Output is correct |
56 |
Correct |
207 ms |
24376 KB |
Output is correct |
57 |
Correct |
1 ms |
212 KB |
Output is correct |
58 |
Correct |
58 ms |
2464 KB |
Output is correct |
59 |
Correct |
53 ms |
2380 KB |
Output is correct |
60 |
Correct |
43 ms |
2392 KB |
Output is correct |
61 |
Correct |
59 ms |
2356 KB |
Output is correct |
62 |
Correct |
46 ms |
2380 KB |
Output is correct |
63 |
Correct |
65 ms |
2420 KB |
Output is correct |
64 |
Correct |
0 ms |
212 KB |
Output is correct |
65 |
Correct |
1 ms |
212 KB |
Output is correct |
66 |
Correct |
0 ms |
212 KB |
Output is correct |
67 |
Correct |
1 ms |
212 KB |
Output is correct |
68 |
Correct |
1 ms |
212 KB |
Output is correct |
69 |
Correct |
1 ms |
212 KB |
Output is correct |
70 |
Correct |
1 ms |
212 KB |
Output is correct |
71 |
Correct |
0 ms |
212 KB |
Output is correct |
72 |
Correct |
1 ms |
212 KB |
Output is correct |
73 |
Correct |
1 ms |
340 KB |
Output is correct |
74 |
Correct |
1 ms |
212 KB |
Output is correct |
75 |
Correct |
0 ms |
212 KB |
Output is correct |
76 |
Correct |
193 ms |
2744 KB |
Output is correct |
77 |
Correct |
183 ms |
2632 KB |
Output is correct |
78 |
Correct |
205 ms |
2552 KB |
Output is correct |
79 |
Correct |
166 ms |
2892 KB |
Output is correct |
80 |
Correct |
163 ms |
2668 KB |
Output is correct |
81 |
Correct |
213 ms |
2584 KB |
Output is correct |
82 |
Correct |
201 ms |
2572 KB |
Output is correct |
83 |
Correct |
2 ms |
468 KB |
Output is correct |
84 |
Correct |
1 ms |
212 KB |
Output is correct |
85 |
Correct |
1 ms |
212 KB |
Output is correct |
86 |
Correct |
1 ms |
212 KB |
Output is correct |
87 |
Correct |
1 ms |
212 KB |
Output is correct |
88 |
Correct |
1 ms |
316 KB |
Output is correct |
89 |
Correct |
1 ms |
340 KB |
Output is correct |
90 |
Correct |
1 ms |
340 KB |
Output is correct |
91 |
Correct |
1 ms |
468 KB |
Output is correct |
92 |
Correct |
2 ms |
468 KB |
Output is correct |
93 |
Correct |
1 ms |
316 KB |
Output is correct |
94 |
Correct |
0 ms |
212 KB |
Output is correct |
95 |
Correct |
1 ms |
212 KB |
Output is correct |
96 |
Correct |
1 ms |
212 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
340 KB |
Output is correct |
99 |
Correct |
1 ms |
316 KB |
Output is correct |
100 |
Correct |
1 ms |
468 KB |
Output is correct |
101 |
Correct |
3 ms |
468 KB |
Output is correct |
102 |
Correct |
5 ms |
980 KB |
Output is correct |
103 |
Correct |
310 ms |
5056 KB |
Output is correct |
104 |
Correct |
286 ms |
4052 KB |
Output is correct |
105 |
Correct |
292 ms |
4056 KB |
Output is correct |
106 |
Correct |
275 ms |
5512 KB |
Output is correct |
107 |
Correct |
308 ms |
5200 KB |
Output is correct |
108 |
Correct |
291 ms |
5140 KB |
Output is correct |
109 |
Correct |
291 ms |
5500 KB |
Output is correct |
110 |
Correct |
31 ms |
3284 KB |
Output is correct |
111 |
Correct |
20 ms |
3284 KB |
Output is correct |
112 |
Correct |
31 ms |
3284 KB |
Output is correct |
113 |
Correct |
25 ms |
3344 KB |
Output is correct |
114 |
Correct |
26 ms |
3328 KB |
Output is correct |
115 |
Correct |
406 ms |
13924 KB |
Output is correct |
116 |
Correct |
387 ms |
25232 KB |
Output is correct |
117 |
Correct |
378 ms |
25288 KB |
Output is correct |
118 |
Correct |
362 ms |
25292 KB |
Output is correct |
119 |
Correct |
458 ms |
14224 KB |
Output is correct |
120 |
Correct |
599 ms |
25964 KB |
Output is correct |
121 |
Correct |
614 ms |
25976 KB |
Output is correct |
122 |
Correct |
533 ms |
25980 KB |
Output is correct |
123 |
Correct |
501 ms |
25968 KB |
Output is correct |
124 |
Correct |
572 ms |
25960 KB |
Output is correct |
125 |
Correct |
611 ms |
25960 KB |
Output is correct |
126 |
Correct |
278 ms |
24296 KB |
Output is correct |
127 |
Correct |
237 ms |
24280 KB |
Output is correct |
128 |
Correct |
258 ms |
24296 KB |
Output is correct |
129 |
Correct |
246 ms |
24284 KB |
Output is correct |
130 |
Correct |
239 ms |
24276 KB |
Output is correct |
131 |
Correct |
231 ms |
24388 KB |
Output is correct |
132 |
Correct |
2771 ms |
193572 KB |
Output is correct |
133 |
Correct |
2700 ms |
193676 KB |
Output is correct |
134 |
Correct |
2741 ms |
193624 KB |
Output is correct |
135 |
Correct |
2753 ms |
193688 KB |
Output is correct |
136 |
Correct |
2625 ms |
193576 KB |
Output is correct |
137 |
Correct |
1402 ms |
97908 KB |
Output is correct |
138 |
Correct |
1378 ms |
97932 KB |
Output is correct |
139 |
Correct |
2181 ms |
193788 KB |
Output is correct |
140 |
Correct |
2166 ms |
193536 KB |
Output is correct |
141 |
Correct |
2332 ms |
193684 KB |
Output is correct |
142 |
Correct |
2361 ms |
193668 KB |
Output is correct |