#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include <bits/stdc++.h>
using namespace std;
const int BS = 5000;
const int INF = 1e9;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
int N, M; cin >> N >> M;
vector<int> A(N);
vector<int> cnt(M);
vector<int> dup(1 << M);
for(int i = 0; i < N; i++) {
for(int j = 0; j < M; j++) {
int a; cin >> a;
A[i] += a << j;
cnt[j] += a;
}
dup[A[i]]++;
}
vector<pair<int, int>> D1(1 << M, {INF, INF}), D2(1 << M, {INF, INF});
auto upd = [&] (int i, pair<int, int> p) {
if(D1[i].second != p.second) {
if(D1[i].first > p.first) {
D2[i] = D1[i];
D1[i] = p;
} else if(D2[i].first > p.first) {
D2[i] = p;
}
} else {
if(D1[i].first > p.first) {
D1[i] = p;
}
}
};
for(int i = 0; i < N; i++) D1[A[i]] = {0, A[i]};
for(int i = 0; i < (1 << M); i++) {
for(int j = 0; j < M; j++) {
if((i & (1 << j)) > 0) {
upd(i, D1[i ^ (1 << j)]);
upd(i, D2[i ^ (1 << j)]);
}
}
}
for(int i = (1 << M) - 1; i >= 0; i--) {
for(int j = 0; j < M; j++) {
if((i & (1 << j)) == 0) {
upd(i, {D1[i ^ (1 << j)].first + 1, D1[i ^ (1 << j)].second});
upd(i, {D2[i ^ (1 << j)].first + 1, D2[i ^ (1 << j)].second});
}
}
}
for(int i = 0; i < N; i++) {
int v = (1 << M) - 1;
int ans = 0;
for(int j = 0; j < M; j++) {
int c = (cnt[j] - ((A[i] & (1 << j)) > 0));
if(c == N / 2) {
v ^= 1 << j;
}
if(c >= N / 2) ans++;
}
int best = (dup[A[i]] == 1 && D1[v].second == A[i]) ? D2[v].first : D1[v].first;
cout << ans - best << '\n';
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
172 ms |
20996 KB |
Output is correct |
6 |
Correct |
166 ms |
20828 KB |
Output is correct |
7 |
Correct |
193 ms |
20976 KB |
Output is correct |
8 |
Correct |
215 ms |
20824 KB |
Output is correct |
9 |
Correct |
225 ms |
20824 KB |
Output is correct |
10 |
Correct |
197 ms |
20828 KB |
Output is correct |
11 |
Correct |
215 ms |
20976 KB |
Output is correct |
12 |
Correct |
224 ms |
20992 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 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 |
412 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 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 |
344 KB |
Output is correct |
27 |
Correct |
1 ms |
600 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 |
1 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 |
460 KB |
Output is correct |
36 |
Correct |
0 ms |
344 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 |
600 KB |
Output is correct |
42 |
Correct |
3 ms |
604 KB |
Output is correct |
43 |
Correct |
3 ms |
604 KB |
Output is correct |
44 |
Correct |
3 ms |
604 KB |
Output is correct |
45 |
Correct |
3 ms |
604 KB |
Output is correct |
46 |
Correct |
19 ms |
3048 KB |
Output is correct |
47 |
Correct |
22 ms |
2908 KB |
Output is correct |
48 |
Correct |
25 ms |
3044 KB |
Output is correct |
49 |
Correct |
23 ms |
2904 KB |
Output is correct |
50 |
Correct |
27 ms |
2908 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
172 ms |
20996 KB |
Output is correct |
6 |
Correct |
166 ms |
20828 KB |
Output is correct |
7 |
Correct |
193 ms |
20976 KB |
Output is correct |
8 |
Correct |
215 ms |
20824 KB |
Output is correct |
9 |
Correct |
225 ms |
20824 KB |
Output is correct |
10 |
Correct |
197 ms |
20828 KB |
Output is correct |
11 |
Correct |
215 ms |
20976 KB |
Output is correct |
12 |
Correct |
224 ms |
20992 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 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 |
412 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 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 |
344 KB |
Output is correct |
27 |
Correct |
1 ms |
600 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 |
1 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 |
460 KB |
Output is correct |
36 |
Correct |
0 ms |
344 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 |
600 KB |
Output is correct |
42 |
Correct |
3 ms |
604 KB |
Output is correct |
43 |
Correct |
3 ms |
604 KB |
Output is correct |
44 |
Correct |
3 ms |
604 KB |
Output is correct |
45 |
Correct |
3 ms |
604 KB |
Output is correct |
46 |
Correct |
19 ms |
3048 KB |
Output is correct |
47 |
Correct |
22 ms |
2908 KB |
Output is correct |
48 |
Correct |
25 ms |
3044 KB |
Output is correct |
49 |
Correct |
23 ms |
2904 KB |
Output is correct |
50 |
Correct |
27 ms |
2908 KB |
Output is correct |
51 |
Correct |
168 ms |
21116 KB |
Output is correct |
52 |
Correct |
168 ms |
21080 KB |
Output is correct |
53 |
Correct |
172 ms |
21108 KB |
Output is correct |
54 |
Correct |
215 ms |
21332 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
27 ms |
3148 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
42 ms |
3348 KB |
Output is correct |
3 |
Correct |
43 ms |
3476 KB |
Output is correct |
4 |
Correct |
31 ms |
2632 KB |
Output is correct |
5 |
Correct |
51 ms |
3280 KB |
Output is correct |
6 |
Correct |
33 ms |
2744 KB |
Output is correct |
7 |
Correct |
47 ms |
3152 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
1 ms |
344 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
42 ms |
3348 KB |
Output is correct |
3 |
Correct |
43 ms |
3476 KB |
Output is correct |
4 |
Correct |
31 ms |
2632 KB |
Output is correct |
5 |
Correct |
51 ms |
3280 KB |
Output is correct |
6 |
Correct |
33 ms |
2744 KB |
Output is correct |
7 |
Correct |
47 ms |
3152 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
160 ms |
8020 KB |
Output is correct |
21 |
Correct |
150 ms |
7496 KB |
Output is correct |
22 |
Correct |
146 ms |
7392 KB |
Output is correct |
23 |
Correct |
139 ms |
8272 KB |
Output is correct |
24 |
Correct |
139 ms |
7892 KB |
Output is correct |
25 |
Correct |
151 ms |
7896 KB |
Output is correct |
26 |
Correct |
161 ms |
8016 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
460 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 |
344 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 |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
408 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
0 ms |
344 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
42 ms |
3348 KB |
Output is correct |
3 |
Correct |
43 ms |
3476 KB |
Output is correct |
4 |
Correct |
31 ms |
2632 KB |
Output is correct |
5 |
Correct |
51 ms |
3280 KB |
Output is correct |
6 |
Correct |
33 ms |
2744 KB |
Output is correct |
7 |
Correct |
47 ms |
3152 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
160 ms |
8020 KB |
Output is correct |
21 |
Correct |
150 ms |
7496 KB |
Output is correct |
22 |
Correct |
146 ms |
7392 KB |
Output is correct |
23 |
Correct |
139 ms |
8272 KB |
Output is correct |
24 |
Correct |
139 ms |
7892 KB |
Output is correct |
25 |
Correct |
151 ms |
7896 KB |
Output is correct |
26 |
Correct |
161 ms |
8016 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
460 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 |
344 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 |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
408 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
0 ms |
344 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
223 ms |
10632 KB |
Output is correct |
48 |
Correct |
209 ms |
9812 KB |
Output is correct |
49 |
Correct |
220 ms |
10076 KB |
Output is correct |
50 |
Correct |
186 ms |
11008 KB |
Output is correct |
51 |
Correct |
188 ms |
10620 KB |
Output is correct |
52 |
Correct |
205 ms |
10516 KB |
Output is correct |
53 |
Correct |
240 ms |
10836 KB |
Output is correct |
54 |
Correct |
3 ms |
604 KB |
Output is correct |
55 |
Correct |
3 ms |
604 KB |
Output is correct |
56 |
Correct |
3 ms |
604 KB |
Output is correct |
57 |
Correct |
3 ms |
604 KB |
Output is correct |
58 |
Correct |
3 ms |
604 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
42 ms |
3348 KB |
Output is correct |
3 |
Correct |
43 ms |
3476 KB |
Output is correct |
4 |
Correct |
31 ms |
2632 KB |
Output is correct |
5 |
Correct |
51 ms |
3280 KB |
Output is correct |
6 |
Correct |
33 ms |
2744 KB |
Output is correct |
7 |
Correct |
47 ms |
3152 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
344 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
1 ms |
344 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
160 ms |
8020 KB |
Output is correct |
21 |
Correct |
150 ms |
7496 KB |
Output is correct |
22 |
Correct |
146 ms |
7392 KB |
Output is correct |
23 |
Correct |
139 ms |
8272 KB |
Output is correct |
24 |
Correct |
139 ms |
7892 KB |
Output is correct |
25 |
Correct |
151 ms |
7896 KB |
Output is correct |
26 |
Correct |
161 ms |
8016 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
460 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 |
344 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 |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
408 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
0 ms |
344 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
223 ms |
10632 KB |
Output is correct |
48 |
Correct |
209 ms |
9812 KB |
Output is correct |
49 |
Correct |
220 ms |
10076 KB |
Output is correct |
50 |
Correct |
186 ms |
11008 KB |
Output is correct |
51 |
Correct |
188 ms |
10620 KB |
Output is correct |
52 |
Correct |
205 ms |
10516 KB |
Output is correct |
53 |
Correct |
240 ms |
10836 KB |
Output is correct |
54 |
Correct |
3 ms |
604 KB |
Output is correct |
55 |
Correct |
3 ms |
604 KB |
Output is correct |
56 |
Correct |
3 ms |
604 KB |
Output is correct |
57 |
Correct |
3 ms |
604 KB |
Output is correct |
58 |
Correct |
3 ms |
604 KB |
Output is correct |
59 |
Correct |
250 ms |
13120 KB |
Output is correct |
60 |
Correct |
122 ms |
7408 KB |
Output is correct |
61 |
Correct |
130 ms |
7764 KB |
Output is correct |
62 |
Correct |
133 ms |
7972 KB |
Output is correct |
63 |
Correct |
259 ms |
12884 KB |
Output is correct |
64 |
Correct |
287 ms |
14748 KB |
Output is correct |
65 |
Correct |
284 ms |
14532 KB |
Output is correct |
66 |
Correct |
243 ms |
14928 KB |
Output is correct |
67 |
Correct |
238 ms |
14540 KB |
Output is correct |
68 |
Correct |
266 ms |
14536 KB |
Output is correct |
69 |
Correct |
294 ms |
15044 KB |
Output is correct |
70 |
Correct |
20 ms |
2904 KB |
Output is correct |
71 |
Correct |
22 ms |
3272 KB |
Output is correct |
72 |
Correct |
25 ms |
3036 KB |
Output is correct |
73 |
Correct |
23 ms |
3044 KB |
Output is correct |
74 |
Correct |
23 ms |
2904 KB |
Output is correct |
75 |
Correct |
27 ms |
2908 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
172 ms |
20996 KB |
Output is correct |
6 |
Correct |
166 ms |
20828 KB |
Output is correct |
7 |
Correct |
193 ms |
20976 KB |
Output is correct |
8 |
Correct |
215 ms |
20824 KB |
Output is correct |
9 |
Correct |
225 ms |
20824 KB |
Output is correct |
10 |
Correct |
197 ms |
20828 KB |
Output is correct |
11 |
Correct |
215 ms |
20976 KB |
Output is correct |
12 |
Correct |
224 ms |
20992 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
344 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 |
412 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 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 |
344 KB |
Output is correct |
27 |
Correct |
1 ms |
600 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 |
1 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 |
460 KB |
Output is correct |
36 |
Correct |
0 ms |
344 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 |
600 KB |
Output is correct |
42 |
Correct |
3 ms |
604 KB |
Output is correct |
43 |
Correct |
3 ms |
604 KB |
Output is correct |
44 |
Correct |
3 ms |
604 KB |
Output is correct |
45 |
Correct |
3 ms |
604 KB |
Output is correct |
46 |
Correct |
19 ms |
3048 KB |
Output is correct |
47 |
Correct |
22 ms |
2908 KB |
Output is correct |
48 |
Correct |
25 ms |
3044 KB |
Output is correct |
49 |
Correct |
23 ms |
2904 KB |
Output is correct |
50 |
Correct |
27 ms |
2908 KB |
Output is correct |
51 |
Correct |
168 ms |
21116 KB |
Output is correct |
52 |
Correct |
168 ms |
21080 KB |
Output is correct |
53 |
Correct |
172 ms |
21108 KB |
Output is correct |
54 |
Correct |
215 ms |
21332 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
27 ms |
3148 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
42 ms |
3348 KB |
Output is correct |
59 |
Correct |
43 ms |
3476 KB |
Output is correct |
60 |
Correct |
31 ms |
2632 KB |
Output is correct |
61 |
Correct |
51 ms |
3280 KB |
Output is correct |
62 |
Correct |
33 ms |
2744 KB |
Output is correct |
63 |
Correct |
47 ms |
3152 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
452 KB |
Output is correct |
66 |
Correct |
0 ms |
344 KB |
Output is correct |
67 |
Correct |
0 ms |
344 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
1 ms |
344 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
160 ms |
8020 KB |
Output is correct |
77 |
Correct |
150 ms |
7496 KB |
Output is correct |
78 |
Correct |
146 ms |
7392 KB |
Output is correct |
79 |
Correct |
139 ms |
8272 KB |
Output is correct |
80 |
Correct |
139 ms |
7892 KB |
Output is correct |
81 |
Correct |
151 ms |
7896 KB |
Output is correct |
82 |
Correct |
161 ms |
8016 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
460 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 |
344 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
408 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
344 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
1 ms |
348 KB |
Output is correct |
103 |
Correct |
223 ms |
10632 KB |
Output is correct |
104 |
Correct |
209 ms |
9812 KB |
Output is correct |
105 |
Correct |
220 ms |
10076 KB |
Output is correct |
106 |
Correct |
186 ms |
11008 KB |
Output is correct |
107 |
Correct |
188 ms |
10620 KB |
Output is correct |
108 |
Correct |
205 ms |
10516 KB |
Output is correct |
109 |
Correct |
240 ms |
10836 KB |
Output is correct |
110 |
Correct |
3 ms |
604 KB |
Output is correct |
111 |
Correct |
3 ms |
604 KB |
Output is correct |
112 |
Correct |
3 ms |
604 KB |
Output is correct |
113 |
Correct |
3 ms |
604 KB |
Output is correct |
114 |
Correct |
3 ms |
604 KB |
Output is correct |
115 |
Correct |
250 ms |
13120 KB |
Output is correct |
116 |
Correct |
122 ms |
7408 KB |
Output is correct |
117 |
Correct |
130 ms |
7764 KB |
Output is correct |
118 |
Correct |
133 ms |
7972 KB |
Output is correct |
119 |
Correct |
259 ms |
12884 KB |
Output is correct |
120 |
Correct |
287 ms |
14748 KB |
Output is correct |
121 |
Correct |
284 ms |
14532 KB |
Output is correct |
122 |
Correct |
243 ms |
14928 KB |
Output is correct |
123 |
Correct |
238 ms |
14540 KB |
Output is correct |
124 |
Correct |
266 ms |
14536 KB |
Output is correct |
125 |
Correct |
294 ms |
15044 KB |
Output is correct |
126 |
Correct |
20 ms |
2904 KB |
Output is correct |
127 |
Correct |
22 ms |
3272 KB |
Output is correct |
128 |
Correct |
25 ms |
3036 KB |
Output is correct |
129 |
Correct |
23 ms |
3044 KB |
Output is correct |
130 |
Correct |
23 ms |
2904 KB |
Output is correct |
131 |
Correct |
27 ms |
2908 KB |
Output is correct |
132 |
Correct |
483 ms |
34636 KB |
Output is correct |
133 |
Correct |
490 ms |
34648 KB |
Output is correct |
134 |
Correct |
489 ms |
34868 KB |
Output is correct |
135 |
Correct |
543 ms |
34644 KB |
Output is correct |
136 |
Correct |
495 ms |
34652 KB |
Output is correct |
137 |
Correct |
397 ms |
23568 KB |
Output is correct |
138 |
Correct |
385 ms |
23816 KB |
Output is correct |
139 |
Correct |
447 ms |
34656 KB |
Output is correct |
140 |
Correct |
425 ms |
34408 KB |
Output is correct |
141 |
Correct |
492 ms |
34280 KB |
Output is correct |
142 |
Correct |
544 ms |
34912 KB |
Output is correct |