#include <bits/stdc++.h>
//#define int long long
using namespace std;
const int M = (1 << 20) + 42;
int n, m, mask[M], occ[M], maxi[M][2];
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> n >> m;
for(int i = 0; i < n; i++)
mask[i] = (1 << m) - 1;
for(int i = 0; i < m; i++)
occ[i] = 0;
for(int i = 0; i < n; i++)
for(int j = 0; j < m; j++) {
int a; cin >> a;
mask[i] -= a * (1 << j);
occ[j] += a;
}
for(int i = 0; i < (1 << m); i++) {
maxi[i][0] = M-2;
maxi[i][1] = M-1;
}
for(int i = 0; i < n; i++) {
if(maxi[mask[i]][0] >= M-2)
maxi[mask[i]][0] = i;
else
maxi[mask[i]][1] = i;
}
for(int i = (1 << m)-1; i >= 0; i--) {
for(int j = 0; j < m; j++) {
if((i & (1 << j)) == 0) {
if(maxi[i][0] >= M-2) {
maxi[i][0] = maxi[i + (1 << j)][0];
maxi[i][1] = maxi[i + (1 << j)][1];
} else if(maxi[i][1] >= M-2 && maxi[i + (1 << j)][0] != maxi[i][0]) {
maxi[i][1] = maxi[i + (1 << j)][0];
}
}
}
}
for(int i = 1; i < (1 << m); i++)
for(int j = 0; j < m; j++)
if(i & (1 << j)) {
int id = i ^ (1 << j);
for(int k = 0; k < 2; k++) {
int val = __builtin_popcount(i & mask[maxi[id][k]]);
if(maxi[id][k] != maxi[i][0] && maxi[id][k] != maxi[i][1]) {
if(val > __builtin_popcount(i & mask[maxi[i][0]])) {
maxi[i][1] = maxi[i][0];
maxi[i][0] = maxi[id][k];
} else if(val > __builtin_popcount(i & mask[maxi[i][1]])) {
maxi[i][1] = maxi[id][k];
}
}
}
}
for(int i = 0; i < n; i++) {
int bmask = 0, nb = 0;
for(int j = 0; j < m; j++) {
if((1 << j) & (mask[i] ^ (1 << j)))
occ[j]--;
if(occ[j] == n/2)
bmask += (1 << j);
if(occ[j] >= n/2)
nb++;
if((1 << j) & (mask[i] ^ (1 << j)))
occ[j]++;
}
if(maxi[bmask][0] != i) {
cout << nb - __builtin_popcount(bmask ^ (bmask & mask[maxi[bmask][0]])) << '\n';
} else {
cout << nb - __builtin_popcount(bmask ^ (bmask & mask[maxi[bmask][1]])) << '\n';
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
174 ms |
8520 KB |
Output is correct |
6 |
Correct |
162 ms |
8536 KB |
Output is correct |
7 |
Correct |
218 ms |
8532 KB |
Output is correct |
8 |
Correct |
264 ms |
8532 KB |
Output is correct |
9 |
Correct |
296 ms |
8524 KB |
Output is correct |
10 |
Correct |
237 ms |
8532 KB |
Output is correct |
11 |
Correct |
284 ms |
8532 KB |
Output is correct |
12 |
Correct |
294 ms |
8532 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
0 ms |
340 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
0 ms |
340 KB |
Output is correct |
36 |
Correct |
0 ms |
212 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
3 ms |
468 KB |
Output is correct |
42 |
Correct |
3 ms |
468 KB |
Output is correct |
43 |
Correct |
4 ms |
468 KB |
Output is correct |
44 |
Correct |
3 ms |
340 KB |
Output is correct |
45 |
Correct |
4 ms |
468 KB |
Output is correct |
46 |
Correct |
20 ms |
1372 KB |
Output is correct |
47 |
Correct |
25 ms |
1368 KB |
Output is correct |
48 |
Correct |
31 ms |
1364 KB |
Output is correct |
49 |
Correct |
26 ms |
1372 KB |
Output is correct |
50 |
Correct |
28 ms |
1364 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
174 ms |
8520 KB |
Output is correct |
6 |
Correct |
162 ms |
8536 KB |
Output is correct |
7 |
Correct |
218 ms |
8532 KB |
Output is correct |
8 |
Correct |
264 ms |
8532 KB |
Output is correct |
9 |
Correct |
296 ms |
8524 KB |
Output is correct |
10 |
Correct |
237 ms |
8532 KB |
Output is correct |
11 |
Correct |
284 ms |
8532 KB |
Output is correct |
12 |
Correct |
294 ms |
8532 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
0 ms |
340 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
0 ms |
340 KB |
Output is correct |
36 |
Correct |
0 ms |
212 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
3 ms |
468 KB |
Output is correct |
42 |
Correct |
3 ms |
468 KB |
Output is correct |
43 |
Correct |
4 ms |
468 KB |
Output is correct |
44 |
Correct |
3 ms |
340 KB |
Output is correct |
45 |
Correct |
4 ms |
468 KB |
Output is correct |
46 |
Correct |
20 ms |
1372 KB |
Output is correct |
47 |
Correct |
25 ms |
1368 KB |
Output is correct |
48 |
Correct |
31 ms |
1364 KB |
Output is correct |
49 |
Correct |
26 ms |
1372 KB |
Output is correct |
50 |
Correct |
28 ms |
1364 KB |
Output is correct |
51 |
Correct |
159 ms |
8532 KB |
Output is correct |
52 |
Correct |
158 ms |
8532 KB |
Output is correct |
53 |
Correct |
233 ms |
8540 KB |
Output is correct |
54 |
Correct |
250 ms |
8532 KB |
Output is correct |
55 |
Correct |
1 ms |
340 KB |
Output is correct |
56 |
Correct |
32 ms |
1388 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
41 ms |
2016 KB |
Output is correct |
3 |
Correct |
48 ms |
2132 KB |
Output is correct |
4 |
Correct |
33 ms |
1996 KB |
Output is correct |
5 |
Correct |
44 ms |
2112 KB |
Output is correct |
6 |
Correct |
31 ms |
2028 KB |
Output is correct |
7 |
Correct |
46 ms |
2044 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
336 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
41 ms |
2016 KB |
Output is correct |
3 |
Correct |
48 ms |
2132 KB |
Output is correct |
4 |
Correct |
33 ms |
1996 KB |
Output is correct |
5 |
Correct |
44 ms |
2112 KB |
Output is correct |
6 |
Correct |
31 ms |
2028 KB |
Output is correct |
7 |
Correct |
46 ms |
2044 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
336 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
163 ms |
2220 KB |
Output is correct |
21 |
Correct |
144 ms |
2136 KB |
Output is correct |
22 |
Correct |
148 ms |
7496 KB |
Output is correct |
23 |
Correct |
138 ms |
8280 KB |
Output is correct |
24 |
Correct |
141 ms |
7892 KB |
Output is correct |
25 |
Correct |
160 ms |
7888 KB |
Output is correct |
26 |
Correct |
161 ms |
7976 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
328 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
328 KB |
Output is correct |
33 |
Correct |
0 ms |
212 KB |
Output is correct |
34 |
Correct |
1 ms |
328 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
352 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
1 ms |
340 KB |
Output is correct |
39 |
Correct |
0 ms |
324 KB |
Output is correct |
40 |
Correct |
1 ms |
340 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 |
340 KB |
Output is correct |
44 |
Correct |
1 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
41 ms |
2016 KB |
Output is correct |
3 |
Correct |
48 ms |
2132 KB |
Output is correct |
4 |
Correct |
33 ms |
1996 KB |
Output is correct |
5 |
Correct |
44 ms |
2112 KB |
Output is correct |
6 |
Correct |
31 ms |
2028 KB |
Output is correct |
7 |
Correct |
46 ms |
2044 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
336 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
163 ms |
2220 KB |
Output is correct |
21 |
Correct |
144 ms |
2136 KB |
Output is correct |
22 |
Correct |
148 ms |
7496 KB |
Output is correct |
23 |
Correct |
138 ms |
8280 KB |
Output is correct |
24 |
Correct |
141 ms |
7892 KB |
Output is correct |
25 |
Correct |
160 ms |
7888 KB |
Output is correct |
26 |
Correct |
161 ms |
7976 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
328 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
328 KB |
Output is correct |
33 |
Correct |
0 ms |
212 KB |
Output is correct |
34 |
Correct |
1 ms |
328 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
352 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
1 ms |
340 KB |
Output is correct |
39 |
Correct |
0 ms |
324 KB |
Output is correct |
40 |
Correct |
1 ms |
340 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 |
340 KB |
Output is correct |
44 |
Correct |
1 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
340 KB |
Output is correct |
46 |
Correct |
1 ms |
340 KB |
Output is correct |
47 |
Correct |
254 ms |
10448 KB |
Output is correct |
48 |
Correct |
206 ms |
9696 KB |
Output is correct |
49 |
Correct |
202 ms |
9740 KB |
Output is correct |
50 |
Correct |
187 ms |
10716 KB |
Output is correct |
51 |
Correct |
181 ms |
10592 KB |
Output is correct |
52 |
Correct |
251 ms |
10464 KB |
Output is correct |
53 |
Correct |
223 ms |
10644 KB |
Output is correct |
54 |
Correct |
3 ms |
468 KB |
Output is correct |
55 |
Correct |
4 ms |
468 KB |
Output is correct |
56 |
Correct |
4 ms |
468 KB |
Output is correct |
57 |
Correct |
3 ms |
448 KB |
Output is correct |
58 |
Correct |
4 ms |
468 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
41 ms |
2016 KB |
Output is correct |
3 |
Correct |
48 ms |
2132 KB |
Output is correct |
4 |
Correct |
33 ms |
1996 KB |
Output is correct |
5 |
Correct |
44 ms |
2112 KB |
Output is correct |
6 |
Correct |
31 ms |
2028 KB |
Output is correct |
7 |
Correct |
46 ms |
2044 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
324 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
336 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
163 ms |
2220 KB |
Output is correct |
21 |
Correct |
144 ms |
2136 KB |
Output is correct |
22 |
Correct |
148 ms |
7496 KB |
Output is correct |
23 |
Correct |
138 ms |
8280 KB |
Output is correct |
24 |
Correct |
141 ms |
7892 KB |
Output is correct |
25 |
Correct |
160 ms |
7888 KB |
Output is correct |
26 |
Correct |
161 ms |
7976 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
328 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
328 KB |
Output is correct |
33 |
Correct |
0 ms |
212 KB |
Output is correct |
34 |
Correct |
1 ms |
328 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
352 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
1 ms |
340 KB |
Output is correct |
39 |
Correct |
0 ms |
324 KB |
Output is correct |
40 |
Correct |
1 ms |
340 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 |
340 KB |
Output is correct |
44 |
Correct |
1 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
340 KB |
Output is correct |
46 |
Correct |
1 ms |
340 KB |
Output is correct |
47 |
Correct |
254 ms |
10448 KB |
Output is correct |
48 |
Correct |
206 ms |
9696 KB |
Output is correct |
49 |
Correct |
202 ms |
9740 KB |
Output is correct |
50 |
Correct |
187 ms |
10716 KB |
Output is correct |
51 |
Correct |
181 ms |
10592 KB |
Output is correct |
52 |
Correct |
251 ms |
10464 KB |
Output is correct |
53 |
Correct |
223 ms |
10644 KB |
Output is correct |
54 |
Correct |
3 ms |
468 KB |
Output is correct |
55 |
Correct |
4 ms |
468 KB |
Output is correct |
56 |
Correct |
4 ms |
468 KB |
Output is correct |
57 |
Correct |
3 ms |
448 KB |
Output is correct |
58 |
Correct |
4 ms |
468 KB |
Output is correct |
59 |
Correct |
281 ms |
12216 KB |
Output is correct |
60 |
Correct |
133 ms |
5884 KB |
Output is correct |
61 |
Correct |
144 ms |
6220 KB |
Output is correct |
62 |
Correct |
146 ms |
6396 KB |
Output is correct |
63 |
Correct |
256 ms |
11904 KB |
Output is correct |
64 |
Correct |
284 ms |
13144 KB |
Output is correct |
65 |
Correct |
293 ms |
13016 KB |
Output is correct |
66 |
Correct |
243 ms |
13404 KB |
Output is correct |
67 |
Correct |
276 ms |
13092 KB |
Output is correct |
68 |
Correct |
293 ms |
13016 KB |
Output is correct |
69 |
Correct |
346 ms |
13536 KB |
Output is correct |
70 |
Correct |
20 ms |
1372 KB |
Output is correct |
71 |
Correct |
25 ms |
1364 KB |
Output is correct |
72 |
Correct |
31 ms |
1364 KB |
Output is correct |
73 |
Correct |
27 ms |
1376 KB |
Output is correct |
74 |
Correct |
28 ms |
1364 KB |
Output is correct |
75 |
Correct |
32 ms |
1480 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
174 ms |
8520 KB |
Output is correct |
6 |
Correct |
162 ms |
8536 KB |
Output is correct |
7 |
Correct |
218 ms |
8532 KB |
Output is correct |
8 |
Correct |
264 ms |
8532 KB |
Output is correct |
9 |
Correct |
296 ms |
8524 KB |
Output is correct |
10 |
Correct |
237 ms |
8532 KB |
Output is correct |
11 |
Correct |
284 ms |
8532 KB |
Output is correct |
12 |
Correct |
294 ms |
8532 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
212 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
212 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
0 ms |
340 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
0 ms |
340 KB |
Output is correct |
36 |
Correct |
0 ms |
212 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
3 ms |
468 KB |
Output is correct |
42 |
Correct |
3 ms |
468 KB |
Output is correct |
43 |
Correct |
4 ms |
468 KB |
Output is correct |
44 |
Correct |
3 ms |
340 KB |
Output is correct |
45 |
Correct |
4 ms |
468 KB |
Output is correct |
46 |
Correct |
20 ms |
1372 KB |
Output is correct |
47 |
Correct |
25 ms |
1368 KB |
Output is correct |
48 |
Correct |
31 ms |
1364 KB |
Output is correct |
49 |
Correct |
26 ms |
1372 KB |
Output is correct |
50 |
Correct |
28 ms |
1364 KB |
Output is correct |
51 |
Correct |
159 ms |
8532 KB |
Output is correct |
52 |
Correct |
158 ms |
8532 KB |
Output is correct |
53 |
Correct |
233 ms |
8540 KB |
Output is correct |
54 |
Correct |
250 ms |
8532 KB |
Output is correct |
55 |
Correct |
1 ms |
340 KB |
Output is correct |
56 |
Correct |
32 ms |
1388 KB |
Output is correct |
57 |
Correct |
0 ms |
340 KB |
Output is correct |
58 |
Correct |
41 ms |
2016 KB |
Output is correct |
59 |
Correct |
48 ms |
2132 KB |
Output is correct |
60 |
Correct |
33 ms |
1996 KB |
Output is correct |
61 |
Correct |
44 ms |
2112 KB |
Output is correct |
62 |
Correct |
31 ms |
2028 KB |
Output is correct |
63 |
Correct |
46 ms |
2044 KB |
Output is correct |
64 |
Correct |
0 ms |
340 KB |
Output is correct |
65 |
Correct |
0 ms |
212 KB |
Output is correct |
66 |
Correct |
0 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
340 KB |
Output is correct |
71 |
Correct |
0 ms |
324 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
336 KB |
Output is correct |
74 |
Correct |
1 ms |
340 KB |
Output is correct |
75 |
Correct |
0 ms |
340 KB |
Output is correct |
76 |
Correct |
163 ms |
2220 KB |
Output is correct |
77 |
Correct |
144 ms |
2136 KB |
Output is correct |
78 |
Correct |
148 ms |
7496 KB |
Output is correct |
79 |
Correct |
138 ms |
8280 KB |
Output is correct |
80 |
Correct |
141 ms |
7892 KB |
Output is correct |
81 |
Correct |
160 ms |
7888 KB |
Output is correct |
82 |
Correct |
161 ms |
7976 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
0 ms |
340 KB |
Output is correct |
85 |
Correct |
0 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
328 KB |
Output is correct |
87 |
Correct |
1 ms |
340 KB |
Output is correct |
88 |
Correct |
1 ms |
328 KB |
Output is correct |
89 |
Correct |
0 ms |
212 KB |
Output is correct |
90 |
Correct |
1 ms |
328 KB |
Output is correct |
91 |
Correct |
1 ms |
340 KB |
Output is correct |
92 |
Correct |
1 ms |
352 KB |
Output is correct |
93 |
Correct |
1 ms |
340 KB |
Output is correct |
94 |
Correct |
1 ms |
340 KB |
Output is correct |
95 |
Correct |
0 ms |
324 KB |
Output is correct |
96 |
Correct |
1 ms |
340 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 |
340 KB |
Output is correct |
100 |
Correct |
1 ms |
340 KB |
Output is correct |
101 |
Correct |
1 ms |
340 KB |
Output is correct |
102 |
Correct |
1 ms |
340 KB |
Output is correct |
103 |
Correct |
254 ms |
10448 KB |
Output is correct |
104 |
Correct |
206 ms |
9696 KB |
Output is correct |
105 |
Correct |
202 ms |
9740 KB |
Output is correct |
106 |
Correct |
187 ms |
10716 KB |
Output is correct |
107 |
Correct |
181 ms |
10592 KB |
Output is correct |
108 |
Correct |
251 ms |
10464 KB |
Output is correct |
109 |
Correct |
223 ms |
10644 KB |
Output is correct |
110 |
Correct |
3 ms |
468 KB |
Output is correct |
111 |
Correct |
4 ms |
468 KB |
Output is correct |
112 |
Correct |
4 ms |
468 KB |
Output is correct |
113 |
Correct |
3 ms |
448 KB |
Output is correct |
114 |
Correct |
4 ms |
468 KB |
Output is correct |
115 |
Correct |
281 ms |
12216 KB |
Output is correct |
116 |
Correct |
133 ms |
5884 KB |
Output is correct |
117 |
Correct |
144 ms |
6220 KB |
Output is correct |
118 |
Correct |
146 ms |
6396 KB |
Output is correct |
119 |
Correct |
256 ms |
11904 KB |
Output is correct |
120 |
Correct |
284 ms |
13144 KB |
Output is correct |
121 |
Correct |
293 ms |
13016 KB |
Output is correct |
122 |
Correct |
243 ms |
13404 KB |
Output is correct |
123 |
Correct |
276 ms |
13092 KB |
Output is correct |
124 |
Correct |
293 ms |
13016 KB |
Output is correct |
125 |
Correct |
346 ms |
13536 KB |
Output is correct |
126 |
Correct |
20 ms |
1372 KB |
Output is correct |
127 |
Correct |
25 ms |
1364 KB |
Output is correct |
128 |
Correct |
31 ms |
1364 KB |
Output is correct |
129 |
Correct |
27 ms |
1376 KB |
Output is correct |
130 |
Correct |
28 ms |
1364 KB |
Output is correct |
131 |
Correct |
32 ms |
1480 KB |
Output is correct |
132 |
Correct |
553 ms |
22248 KB |
Output is correct |
133 |
Correct |
561 ms |
22084 KB |
Output is correct |
134 |
Correct |
565 ms |
22320 KB |
Output is correct |
135 |
Correct |
594 ms |
22216 KB |
Output is correct |
136 |
Correct |
590 ms |
22224 KB |
Output is correct |
137 |
Correct |
455 ms |
17488 KB |
Output is correct |
138 |
Correct |
419 ms |
17604 KB |
Output is correct |
139 |
Correct |
415 ms |
22244 KB |
Output is correct |
140 |
Correct |
405 ms |
21964 KB |
Output is correct |
141 |
Correct |
605 ms |
21972 KB |
Output is correct |
142 |
Correct |
629 ms |
22364 KB |
Output is correct |