#include <bits/stdc++.h>
using namespace std;
const int NM = 3e5, MM = 20;
int N, M, msk[NM+5], cnt[(1<<MM)+5], f[(1<<MM)+5], g[(1<<MM)+5];
int occ[MM+5];
void optimize(int i, int x){
if (x == f[i] || x == g[i]) return;
if (f[i] == -1 || __builtin_popcount(x&i) > __builtin_popcount(f[i]&i)){
f[i] = x;
}
else if (g[i] == -1 || __builtin_popcount(x&i) > __builtin_popcount(g[i]&i)){
g[i] = x;
}
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> N >> M;
for (int i = 1; i <= N; i++){
for (int j = 0; j < M; j++){
char ch; cin >> ch;
if (ch == '1'){
msk[i] += (1<<j);
occ[j]++;
}
}
cnt[msk[i]]++;
}
for (int i = 0; i < (1<<M); i++){
if (cnt[i] > 0) f[i] = i; else f[i] = -1;
g[i] = -1;
}
for (int j = 0; j < M; j++)
for (int i = (1<<M)-1; i >= 0; i--)
if ((i>>j)&1){
if (f[i-(1<<j)] > f[i]){
g[i] = f[i];
f[i] = f[i-(1<<j)];
}
else if (f[i-(1<<j)] < f[i] && f[i-(1<<j)] > g[i]){
g[i] = f[i-(1<<j)];
}
if (g[i-(1<<j)] < f[i] && g[i-(1<<j)] > g[i]){
g[i] = g[i-(1<<j)];
}
}
for (int i = 0; i < (1<<M); i++){
if (f[i] != -1) f[i] = (1<<M)-1-f[i];
if (g[i] != -1) g[i] = (1<<M)-1-g[i];
}
for (int i = 0; i < (1<<(M-1)); i++){
swap(f[i], f[(1<<M)-1-i]);
swap(g[i], g[(1<<M)-1-i]);
}
for (int j = 0; j < M; j++)
for (int i = (1<<M)-1; i >= 0; i--)
if ((i>>j)&1){
optimize(i, f[i-(1<<j)]);
optimize(i, g[i-(1<<j)]);
}
for (int i = 0; i < (1<<M); i++){
if (f[i] != -1) f[i] = (1<<M)-1-f[i];
if (g[i] != -1) g[i] = (1<<M)-1-g[i];
}
for (int i = 1; i <= N; i++){
int tmp = 0, res = 0;
for (int j = 0; j < M; j++)
if (occ[j]-((msk[i]>>j)&1) >= N/2){
res++;
if (occ[j]-((msk[i]>>j)&1) == N/2) tmp += (1<<j);
}
if (f[tmp] == msk[i] && cnt[msk[i]] == 1)
cout << res-__builtin_popcount(g[tmp]&tmp) << '\n';
else cout << res-__builtin_popcount(f[tmp]&tmp) << '\n';
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
468 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
93 ms |
8696 KB |
Output is correct |
6 |
Correct |
87 ms |
8536 KB |
Output is correct |
7 |
Correct |
95 ms |
8540 KB |
Output is correct |
8 |
Correct |
111 ms |
8536 KB |
Output is correct |
9 |
Correct |
165 ms |
9564 KB |
Output is correct |
10 |
Correct |
101 ms |
8792 KB |
Output is correct |
11 |
Correct |
121 ms |
8540 KB |
Output is correct |
12 |
Correct |
164 ms |
9560 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
460 KB |
Output is correct |
37 |
Correct |
0 ms |
348 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
3 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
2 ms |
664 KB |
Output is correct |
44 |
Correct |
2 ms |
604 KB |
Output is correct |
45 |
Correct |
2 ms |
604 KB |
Output is correct |
46 |
Correct |
11 ms |
1552 KB |
Output is correct |
47 |
Correct |
12 ms |
1372 KB |
Output is correct |
48 |
Correct |
13 ms |
1600 KB |
Output is correct |
49 |
Correct |
11 ms |
1368 KB |
Output is correct |
50 |
Correct |
13 ms |
1372 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
468 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
93 ms |
8696 KB |
Output is correct |
6 |
Correct |
87 ms |
8536 KB |
Output is correct |
7 |
Correct |
95 ms |
8540 KB |
Output is correct |
8 |
Correct |
111 ms |
8536 KB |
Output is correct |
9 |
Correct |
165 ms |
9564 KB |
Output is correct |
10 |
Correct |
101 ms |
8792 KB |
Output is correct |
11 |
Correct |
121 ms |
8540 KB |
Output is correct |
12 |
Correct |
164 ms |
9560 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
460 KB |
Output is correct |
37 |
Correct |
0 ms |
348 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
3 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
2 ms |
664 KB |
Output is correct |
44 |
Correct |
2 ms |
604 KB |
Output is correct |
45 |
Correct |
2 ms |
604 KB |
Output is correct |
46 |
Correct |
11 ms |
1552 KB |
Output is correct |
47 |
Correct |
12 ms |
1372 KB |
Output is correct |
48 |
Correct |
13 ms |
1600 KB |
Output is correct |
49 |
Correct |
11 ms |
1368 KB |
Output is correct |
50 |
Correct |
13 ms |
1372 KB |
Output is correct |
51 |
Correct |
84 ms |
8796 KB |
Output is correct |
52 |
Correct |
83 ms |
8792 KB |
Output is correct |
53 |
Correct |
189 ms |
12712 KB |
Output is correct |
54 |
Correct |
202 ms |
12636 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
25 ms |
2140 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
22 ms |
3420 KB |
Output is correct |
3 |
Correct |
20 ms |
2140 KB |
Output is correct |
4 |
Correct |
21 ms |
2652 KB |
Output is correct |
5 |
Correct |
24 ms |
3408 KB |
Output is correct |
6 |
Correct |
25 ms |
2652 KB |
Output is correct |
7 |
Correct |
28 ms |
3352 KB |
Output is correct |
8 |
Correct |
0 ms |
352 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
352 KB |
Output is correct |
13 |
Correct |
1 ms |
360 KB |
Output is correct |
14 |
Correct |
0 ms |
352 KB |
Output is correct |
15 |
Correct |
0 ms |
360 KB |
Output is correct |
16 |
Correct |
0 ms |
360 KB |
Output is correct |
17 |
Correct |
1 ms |
360 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
22 ms |
3420 KB |
Output is correct |
3 |
Correct |
20 ms |
2140 KB |
Output is correct |
4 |
Correct |
21 ms |
2652 KB |
Output is correct |
5 |
Correct |
24 ms |
3408 KB |
Output is correct |
6 |
Correct |
25 ms |
2652 KB |
Output is correct |
7 |
Correct |
28 ms |
3352 KB |
Output is correct |
8 |
Correct |
0 ms |
352 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
352 KB |
Output is correct |
13 |
Correct |
1 ms |
360 KB |
Output is correct |
14 |
Correct |
0 ms |
352 KB |
Output is correct |
15 |
Correct |
0 ms |
360 KB |
Output is correct |
16 |
Correct |
0 ms |
360 KB |
Output is correct |
17 |
Correct |
1 ms |
360 KB |
Output is correct |
18 |
Correct |
0 ms |
360 KB |
Output is correct |
19 |
Correct |
1 ms |
360 KB |
Output is correct |
20 |
Correct |
74 ms |
8056 KB |
Output is correct |
21 |
Correct |
67 ms |
7520 KB |
Output is correct |
22 |
Correct |
60 ms |
7504 KB |
Output is correct |
23 |
Correct |
46 ms |
8196 KB |
Output is correct |
24 |
Correct |
43 ms |
6736 KB |
Output is correct |
25 |
Correct |
61 ms |
8088 KB |
Output is correct |
26 |
Correct |
69 ms |
7972 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
460 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
348 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
0 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
22 ms |
3420 KB |
Output is correct |
3 |
Correct |
20 ms |
2140 KB |
Output is correct |
4 |
Correct |
21 ms |
2652 KB |
Output is correct |
5 |
Correct |
24 ms |
3408 KB |
Output is correct |
6 |
Correct |
25 ms |
2652 KB |
Output is correct |
7 |
Correct |
28 ms |
3352 KB |
Output is correct |
8 |
Correct |
0 ms |
352 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
352 KB |
Output is correct |
13 |
Correct |
1 ms |
360 KB |
Output is correct |
14 |
Correct |
0 ms |
352 KB |
Output is correct |
15 |
Correct |
0 ms |
360 KB |
Output is correct |
16 |
Correct |
0 ms |
360 KB |
Output is correct |
17 |
Correct |
1 ms |
360 KB |
Output is correct |
18 |
Correct |
0 ms |
360 KB |
Output is correct |
19 |
Correct |
1 ms |
360 KB |
Output is correct |
20 |
Correct |
74 ms |
8056 KB |
Output is correct |
21 |
Correct |
67 ms |
7520 KB |
Output is correct |
22 |
Correct |
60 ms |
7504 KB |
Output is correct |
23 |
Correct |
46 ms |
8196 KB |
Output is correct |
24 |
Correct |
43 ms |
6736 KB |
Output is correct |
25 |
Correct |
61 ms |
8088 KB |
Output is correct |
26 |
Correct |
69 ms |
7972 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
460 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
348 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
0 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
94 ms |
10648 KB |
Output is correct |
48 |
Correct |
88 ms |
9788 KB |
Output is correct |
49 |
Correct |
88 ms |
9812 KB |
Output is correct |
50 |
Correct |
66 ms |
10832 KB |
Output is correct |
51 |
Correct |
61 ms |
9300 KB |
Output is correct |
52 |
Correct |
85 ms |
10468 KB |
Output is correct |
53 |
Correct |
96 ms |
10836 KB |
Output is correct |
54 |
Correct |
2 ms |
600 KB |
Output is correct |
55 |
Correct |
2 ms |
604 KB |
Output is correct |
56 |
Correct |
2 ms |
604 KB |
Output is correct |
57 |
Correct |
2 ms |
604 KB |
Output is correct |
58 |
Correct |
2 ms |
600 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
22 ms |
3420 KB |
Output is correct |
3 |
Correct |
20 ms |
2140 KB |
Output is correct |
4 |
Correct |
21 ms |
2652 KB |
Output is correct |
5 |
Correct |
24 ms |
3408 KB |
Output is correct |
6 |
Correct |
25 ms |
2652 KB |
Output is correct |
7 |
Correct |
28 ms |
3352 KB |
Output is correct |
8 |
Correct |
0 ms |
352 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
352 KB |
Output is correct |
13 |
Correct |
1 ms |
360 KB |
Output is correct |
14 |
Correct |
0 ms |
352 KB |
Output is correct |
15 |
Correct |
0 ms |
360 KB |
Output is correct |
16 |
Correct |
0 ms |
360 KB |
Output is correct |
17 |
Correct |
1 ms |
360 KB |
Output is correct |
18 |
Correct |
0 ms |
360 KB |
Output is correct |
19 |
Correct |
1 ms |
360 KB |
Output is correct |
20 |
Correct |
74 ms |
8056 KB |
Output is correct |
21 |
Correct |
67 ms |
7520 KB |
Output is correct |
22 |
Correct |
60 ms |
7504 KB |
Output is correct |
23 |
Correct |
46 ms |
8196 KB |
Output is correct |
24 |
Correct |
43 ms |
6736 KB |
Output is correct |
25 |
Correct |
61 ms |
8088 KB |
Output is correct |
26 |
Correct |
69 ms |
7972 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
460 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
348 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
0 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
94 ms |
10648 KB |
Output is correct |
48 |
Correct |
88 ms |
9788 KB |
Output is correct |
49 |
Correct |
88 ms |
9812 KB |
Output is correct |
50 |
Correct |
66 ms |
10832 KB |
Output is correct |
51 |
Correct |
61 ms |
9300 KB |
Output is correct |
52 |
Correct |
85 ms |
10468 KB |
Output is correct |
53 |
Correct |
96 ms |
10836 KB |
Output is correct |
54 |
Correct |
2 ms |
600 KB |
Output is correct |
55 |
Correct |
2 ms |
604 KB |
Output is correct |
56 |
Correct |
2 ms |
604 KB |
Output is correct |
57 |
Correct |
2 ms |
604 KB |
Output is correct |
58 |
Correct |
2 ms |
600 KB |
Output is correct |
59 |
Correct |
106 ms |
12624 KB |
Output is correct |
60 |
Correct |
60 ms |
6332 KB |
Output is correct |
61 |
Correct |
61 ms |
6736 KB |
Output is correct |
62 |
Correct |
76 ms |
6996 KB |
Output is correct |
63 |
Correct |
121 ms |
12260 KB |
Output is correct |
64 |
Correct |
133 ms |
13652 KB |
Output is correct |
65 |
Correct |
133 ms |
13648 KB |
Output is correct |
66 |
Correct |
90 ms |
13396 KB |
Output is correct |
67 |
Correct |
73 ms |
11968 KB |
Output is correct |
68 |
Correct |
115 ms |
13648 KB |
Output is correct |
69 |
Correct |
126 ms |
13932 KB |
Output is correct |
70 |
Correct |
14 ms |
1372 KB |
Output is correct |
71 |
Correct |
11 ms |
1372 KB |
Output is correct |
72 |
Correct |
13 ms |
1596 KB |
Output is correct |
73 |
Correct |
11 ms |
1368 KB |
Output is correct |
74 |
Correct |
15 ms |
1376 KB |
Output is correct |
75 |
Correct |
26 ms |
2140 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
468 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
93 ms |
8696 KB |
Output is correct |
6 |
Correct |
87 ms |
8536 KB |
Output is correct |
7 |
Correct |
95 ms |
8540 KB |
Output is correct |
8 |
Correct |
111 ms |
8536 KB |
Output is correct |
9 |
Correct |
165 ms |
9564 KB |
Output is correct |
10 |
Correct |
101 ms |
8792 KB |
Output is correct |
11 |
Correct |
121 ms |
8540 KB |
Output is correct |
12 |
Correct |
164 ms |
9560 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
460 KB |
Output is correct |
37 |
Correct |
0 ms |
348 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
3 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
2 ms |
664 KB |
Output is correct |
44 |
Correct |
2 ms |
604 KB |
Output is correct |
45 |
Correct |
2 ms |
604 KB |
Output is correct |
46 |
Correct |
11 ms |
1552 KB |
Output is correct |
47 |
Correct |
12 ms |
1372 KB |
Output is correct |
48 |
Correct |
13 ms |
1600 KB |
Output is correct |
49 |
Correct |
11 ms |
1368 KB |
Output is correct |
50 |
Correct |
13 ms |
1372 KB |
Output is correct |
51 |
Correct |
84 ms |
8796 KB |
Output is correct |
52 |
Correct |
83 ms |
8792 KB |
Output is correct |
53 |
Correct |
189 ms |
12712 KB |
Output is correct |
54 |
Correct |
202 ms |
12636 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
25 ms |
2140 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
22 ms |
3420 KB |
Output is correct |
59 |
Correct |
20 ms |
2140 KB |
Output is correct |
60 |
Correct |
21 ms |
2652 KB |
Output is correct |
61 |
Correct |
24 ms |
3408 KB |
Output is correct |
62 |
Correct |
25 ms |
2652 KB |
Output is correct |
63 |
Correct |
28 ms |
3352 KB |
Output is correct |
64 |
Correct |
0 ms |
352 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
352 KB |
Output is correct |
69 |
Correct |
1 ms |
360 KB |
Output is correct |
70 |
Correct |
0 ms |
352 KB |
Output is correct |
71 |
Correct |
0 ms |
360 KB |
Output is correct |
72 |
Correct |
0 ms |
360 KB |
Output is correct |
73 |
Correct |
1 ms |
360 KB |
Output is correct |
74 |
Correct |
0 ms |
360 KB |
Output is correct |
75 |
Correct |
1 ms |
360 KB |
Output is correct |
76 |
Correct |
74 ms |
8056 KB |
Output is correct |
77 |
Correct |
67 ms |
7520 KB |
Output is correct |
78 |
Correct |
60 ms |
7504 KB |
Output is correct |
79 |
Correct |
46 ms |
8196 KB |
Output is correct |
80 |
Correct |
43 ms |
6736 KB |
Output is correct |
81 |
Correct |
61 ms |
8088 KB |
Output is correct |
82 |
Correct |
69 ms |
7972 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
1 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
460 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
1 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
1 ms |
348 KB |
Output is correct |
103 |
Correct |
94 ms |
10648 KB |
Output is correct |
104 |
Correct |
88 ms |
9788 KB |
Output is correct |
105 |
Correct |
88 ms |
9812 KB |
Output is correct |
106 |
Correct |
66 ms |
10832 KB |
Output is correct |
107 |
Correct |
61 ms |
9300 KB |
Output is correct |
108 |
Correct |
85 ms |
10468 KB |
Output is correct |
109 |
Correct |
96 ms |
10836 KB |
Output is correct |
110 |
Correct |
2 ms |
600 KB |
Output is correct |
111 |
Correct |
2 ms |
604 KB |
Output is correct |
112 |
Correct |
2 ms |
604 KB |
Output is correct |
113 |
Correct |
2 ms |
604 KB |
Output is correct |
114 |
Correct |
2 ms |
600 KB |
Output is correct |
115 |
Correct |
106 ms |
12624 KB |
Output is correct |
116 |
Correct |
60 ms |
6332 KB |
Output is correct |
117 |
Correct |
61 ms |
6736 KB |
Output is correct |
118 |
Correct |
76 ms |
6996 KB |
Output is correct |
119 |
Correct |
121 ms |
12260 KB |
Output is correct |
120 |
Correct |
133 ms |
13652 KB |
Output is correct |
121 |
Correct |
133 ms |
13648 KB |
Output is correct |
122 |
Correct |
90 ms |
13396 KB |
Output is correct |
123 |
Correct |
73 ms |
11968 KB |
Output is correct |
124 |
Correct |
115 ms |
13648 KB |
Output is correct |
125 |
Correct |
126 ms |
13932 KB |
Output is correct |
126 |
Correct |
14 ms |
1372 KB |
Output is correct |
127 |
Correct |
11 ms |
1372 KB |
Output is correct |
128 |
Correct |
13 ms |
1596 KB |
Output is correct |
129 |
Correct |
11 ms |
1368 KB |
Output is correct |
130 |
Correct |
15 ms |
1376 KB |
Output is correct |
131 |
Correct |
26 ms |
2140 KB |
Output is correct |
132 |
Correct |
291 ms |
26452 KB |
Output is correct |
133 |
Correct |
317 ms |
26192 KB |
Output is correct |
134 |
Correct |
295 ms |
26448 KB |
Output is correct |
135 |
Correct |
341 ms |
26428 KB |
Output is correct |
136 |
Correct |
319 ms |
26448 KB |
Output is correct |
137 |
Correct |
229 ms |
19596 KB |
Output is correct |
138 |
Correct |
223 ms |
19704 KB |
Output is correct |
139 |
Correct |
164 ms |
22420 KB |
Output is correct |
140 |
Correct |
171 ms |
20788 KB |
Output is correct |
141 |
Correct |
343 ms |
26048 KB |
Output is correct |
142 |
Correct |
379 ms |
26448 KB |
Output is correct |