#include "bits/stdc++.h"
using namespace std;
#define FOR(i, l, r) for (int i = (l); i < (r); i++)
#define F0R(i, n) FOR(i, 0, n)
#define ROF(i, l, r) for (int i = (r)-1; i >= l; i--)
#define R0F(i, n) ROF(i, 0, n)
#define ar array
#define sz(v) static_cast<int>(v.size())
#define all(v) begin(v), end(v)
typedef vector<int> vi;
typedef long long ll;
struct two {
pair<int, int> v[2];
two() { v[0] = v[1] = make_pair(20, -1); }
void add(pair<int, int> p) {
auto [x, i] = p;
if (v[0].first > x)
v[1] = v[0], v[0] = {x, i};
else if (v[1].first > x)
v[1] = {x, i};
}
int get(int i) {
if (v[0].second != i) return v[0].first;
return v[1].first;
}
};
pair<int, int> ad(pair<int, int> p) {
p.first++;
return p;
}
int main() {
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(cin.failbit);
const int N = 3e5, M = 20;
int n, m;
cin >> n >> m;
static int bm[N];
static int all[M];
F0R(i, n) F0R(j, m) {
int x;
cin >> x;
all[j] += x;
bm[i] |= x << j;
}
static two f[1 << M];
F0R(i, n) f[bm[i]].add({0, i});
F0R(b, m) {
int blk = 1 << b;
for (int i = 0; i < 1 << m; i += 2 * blk) FOR(j, i, i + blk) {
two u = f[j], v = f[j + blk];
f[j] = f[j + blk] = two();
f[j].add(u.v[0]);
f[j].add(u.v[1]);
f[j].add(v.v[0]);
f[j].add(v.v[1]);
f[j + blk].add(u.v[0]);
f[j + blk].add(u.v[1]);
f[j + blk].add(ad(v.v[0]));
f[j + blk].add(ad(v.v[1]));
}
}
int bound = n / 2;
F0R(i, n) {
F0R(j, m) if (bm[i] >> j & 1) all[j]--;
int cnt = 0, b = 0;
F0R(j, m)
if (all[j] > bound)
cnt++;
else if (all[j] == bound)
cnt++, b |= 1 << j;
cout << cnt - f[b].get(i) << '\n';
F0R(j, m) if (bm[i] >> j & 1) all[j]++;
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
16724 KB |
Output is correct |
2 |
Correct |
8 ms |
16664 KB |
Output is correct |
3 |
Correct |
8 ms |
16724 KB |
Output is correct |
4 |
Correct |
8 ms |
16724 KB |
Output is correct |
5 |
Correct |
89 ms |
16732 KB |
Output is correct |
6 |
Correct |
98 ms |
16748 KB |
Output is correct |
7 |
Correct |
90 ms |
16724 KB |
Output is correct |
8 |
Correct |
91 ms |
16724 KB |
Output is correct |
9 |
Correct |
125 ms |
16724 KB |
Output is correct |
10 |
Correct |
87 ms |
16728 KB |
Output is correct |
11 |
Correct |
111 ms |
16740 KB |
Output is correct |
12 |
Correct |
100 ms |
16732 KB |
Output is correct |
13 |
Correct |
8 ms |
16724 KB |
Output is correct |
14 |
Correct |
8 ms |
16628 KB |
Output is correct |
15 |
Correct |
8 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16724 KB |
Output is correct |
17 |
Correct |
8 ms |
16672 KB |
Output is correct |
18 |
Correct |
8 ms |
16724 KB |
Output is correct |
19 |
Correct |
8 ms |
16724 KB |
Output is correct |
20 |
Correct |
8 ms |
16724 KB |
Output is correct |
21 |
Correct |
8 ms |
16724 KB |
Output is correct |
22 |
Correct |
9 ms |
16740 KB |
Output is correct |
23 |
Correct |
8 ms |
16740 KB |
Output is correct |
24 |
Correct |
9 ms |
16724 KB |
Output is correct |
25 |
Correct |
10 ms |
16712 KB |
Output is correct |
26 |
Correct |
9 ms |
16724 KB |
Output is correct |
27 |
Correct |
8 ms |
16708 KB |
Output is correct |
28 |
Correct |
8 ms |
16724 KB |
Output is correct |
29 |
Correct |
7 ms |
16724 KB |
Output is correct |
30 |
Correct |
8 ms |
16712 KB |
Output is correct |
31 |
Correct |
10 ms |
16724 KB |
Output is correct |
32 |
Correct |
8 ms |
16724 KB |
Output is correct |
33 |
Correct |
7 ms |
16724 KB |
Output is correct |
34 |
Correct |
7 ms |
16724 KB |
Output is correct |
35 |
Correct |
7 ms |
16628 KB |
Output is correct |
36 |
Correct |
8 ms |
16724 KB |
Output is correct |
37 |
Correct |
7 ms |
16724 KB |
Output is correct |
38 |
Correct |
7 ms |
16640 KB |
Output is correct |
39 |
Correct |
8 ms |
16712 KB |
Output is correct |
40 |
Correct |
8 ms |
16724 KB |
Output is correct |
41 |
Correct |
9 ms |
16724 KB |
Output is correct |
42 |
Correct |
10 ms |
16724 KB |
Output is correct |
43 |
Correct |
8 ms |
16724 KB |
Output is correct |
44 |
Correct |
9 ms |
16724 KB |
Output is correct |
45 |
Correct |
9 ms |
16664 KB |
Output is correct |
46 |
Correct |
16 ms |
16744 KB |
Output is correct |
47 |
Correct |
16 ms |
16744 KB |
Output is correct |
48 |
Correct |
16 ms |
16708 KB |
Output is correct |
49 |
Correct |
16 ms |
16724 KB |
Output is correct |
50 |
Correct |
21 ms |
16712 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
16724 KB |
Output is correct |
2 |
Correct |
8 ms |
16664 KB |
Output is correct |
3 |
Correct |
8 ms |
16724 KB |
Output is correct |
4 |
Correct |
8 ms |
16724 KB |
Output is correct |
5 |
Correct |
89 ms |
16732 KB |
Output is correct |
6 |
Correct |
98 ms |
16748 KB |
Output is correct |
7 |
Correct |
90 ms |
16724 KB |
Output is correct |
8 |
Correct |
91 ms |
16724 KB |
Output is correct |
9 |
Correct |
125 ms |
16724 KB |
Output is correct |
10 |
Correct |
87 ms |
16728 KB |
Output is correct |
11 |
Correct |
111 ms |
16740 KB |
Output is correct |
12 |
Correct |
100 ms |
16732 KB |
Output is correct |
13 |
Correct |
8 ms |
16724 KB |
Output is correct |
14 |
Correct |
8 ms |
16628 KB |
Output is correct |
15 |
Correct |
8 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16724 KB |
Output is correct |
17 |
Correct |
8 ms |
16672 KB |
Output is correct |
18 |
Correct |
8 ms |
16724 KB |
Output is correct |
19 |
Correct |
8 ms |
16724 KB |
Output is correct |
20 |
Correct |
8 ms |
16724 KB |
Output is correct |
21 |
Correct |
8 ms |
16724 KB |
Output is correct |
22 |
Correct |
9 ms |
16740 KB |
Output is correct |
23 |
Correct |
8 ms |
16740 KB |
Output is correct |
24 |
Correct |
9 ms |
16724 KB |
Output is correct |
25 |
Correct |
10 ms |
16712 KB |
Output is correct |
26 |
Correct |
9 ms |
16724 KB |
Output is correct |
27 |
Correct |
8 ms |
16708 KB |
Output is correct |
28 |
Correct |
8 ms |
16724 KB |
Output is correct |
29 |
Correct |
7 ms |
16724 KB |
Output is correct |
30 |
Correct |
8 ms |
16712 KB |
Output is correct |
31 |
Correct |
10 ms |
16724 KB |
Output is correct |
32 |
Correct |
8 ms |
16724 KB |
Output is correct |
33 |
Correct |
7 ms |
16724 KB |
Output is correct |
34 |
Correct |
7 ms |
16724 KB |
Output is correct |
35 |
Correct |
7 ms |
16628 KB |
Output is correct |
36 |
Correct |
8 ms |
16724 KB |
Output is correct |
37 |
Correct |
7 ms |
16724 KB |
Output is correct |
38 |
Correct |
7 ms |
16640 KB |
Output is correct |
39 |
Correct |
8 ms |
16712 KB |
Output is correct |
40 |
Correct |
8 ms |
16724 KB |
Output is correct |
41 |
Correct |
9 ms |
16724 KB |
Output is correct |
42 |
Correct |
10 ms |
16724 KB |
Output is correct |
43 |
Correct |
8 ms |
16724 KB |
Output is correct |
44 |
Correct |
9 ms |
16724 KB |
Output is correct |
45 |
Correct |
9 ms |
16664 KB |
Output is correct |
46 |
Correct |
16 ms |
16744 KB |
Output is correct |
47 |
Correct |
16 ms |
16744 KB |
Output is correct |
48 |
Correct |
16 ms |
16708 KB |
Output is correct |
49 |
Correct |
16 ms |
16724 KB |
Output is correct |
50 |
Correct |
21 ms |
16712 KB |
Output is correct |
51 |
Correct |
114 ms |
16856 KB |
Output is correct |
52 |
Correct |
89 ms |
16860 KB |
Output is correct |
53 |
Correct |
128 ms |
16872 KB |
Output is correct |
54 |
Correct |
105 ms |
16856 KB |
Output is correct |
55 |
Correct |
8 ms |
16724 KB |
Output is correct |
56 |
Correct |
21 ms |
16796 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
16716 KB |
Output is correct |
2 |
Correct |
46 ms |
19656 KB |
Output is correct |
3 |
Correct |
49 ms |
19644 KB |
Output is correct |
4 |
Correct |
38 ms |
19024 KB |
Output is correct |
5 |
Correct |
52 ms |
19568 KB |
Output is correct |
6 |
Correct |
37 ms |
19008 KB |
Output is correct |
7 |
Correct |
53 ms |
19584 KB |
Output is correct |
8 |
Correct |
8 ms |
16684 KB |
Output is correct |
9 |
Correct |
7 ms |
16724 KB |
Output is correct |
10 |
Correct |
9 ms |
16724 KB |
Output is correct |
11 |
Correct |
8 ms |
16660 KB |
Output is correct |
12 |
Correct |
8 ms |
16724 KB |
Output is correct |
13 |
Correct |
8 ms |
16712 KB |
Output is correct |
14 |
Correct |
8 ms |
16712 KB |
Output is correct |
15 |
Correct |
11 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16640 KB |
Output is correct |
17 |
Correct |
8 ms |
16724 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
16716 KB |
Output is correct |
2 |
Correct |
46 ms |
19656 KB |
Output is correct |
3 |
Correct |
49 ms |
19644 KB |
Output is correct |
4 |
Correct |
38 ms |
19024 KB |
Output is correct |
5 |
Correct |
52 ms |
19568 KB |
Output is correct |
6 |
Correct |
37 ms |
19008 KB |
Output is correct |
7 |
Correct |
53 ms |
19584 KB |
Output is correct |
8 |
Correct |
8 ms |
16684 KB |
Output is correct |
9 |
Correct |
7 ms |
16724 KB |
Output is correct |
10 |
Correct |
9 ms |
16724 KB |
Output is correct |
11 |
Correct |
8 ms |
16660 KB |
Output is correct |
12 |
Correct |
8 ms |
16724 KB |
Output is correct |
13 |
Correct |
8 ms |
16712 KB |
Output is correct |
14 |
Correct |
8 ms |
16712 KB |
Output is correct |
15 |
Correct |
11 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16640 KB |
Output is correct |
17 |
Correct |
8 ms |
16724 KB |
Output is correct |
18 |
Correct |
8 ms |
16704 KB |
Output is correct |
19 |
Correct |
7 ms |
16700 KB |
Output is correct |
20 |
Correct |
181 ms |
24308 KB |
Output is correct |
21 |
Correct |
166 ms |
23688 KB |
Output is correct |
22 |
Correct |
172 ms |
23732 KB |
Output is correct |
23 |
Correct |
142 ms |
24568 KB |
Output is correct |
24 |
Correct |
139 ms |
24268 KB |
Output is correct |
25 |
Correct |
181 ms |
24240 KB |
Output is correct |
26 |
Correct |
191 ms |
24264 KB |
Output is correct |
27 |
Correct |
7 ms |
16724 KB |
Output is correct |
28 |
Correct |
7 ms |
16724 KB |
Output is correct |
29 |
Correct |
7 ms |
16724 KB |
Output is correct |
30 |
Correct |
7 ms |
16712 KB |
Output is correct |
31 |
Correct |
7 ms |
16704 KB |
Output is correct |
32 |
Correct |
7 ms |
16724 KB |
Output is correct |
33 |
Correct |
7 ms |
16724 KB |
Output is correct |
34 |
Correct |
8 ms |
16724 KB |
Output is correct |
35 |
Correct |
8 ms |
16712 KB |
Output is correct |
36 |
Correct |
7 ms |
16724 KB |
Output is correct |
37 |
Correct |
7 ms |
16624 KB |
Output is correct |
38 |
Correct |
7 ms |
16712 KB |
Output is correct |
39 |
Correct |
8 ms |
16724 KB |
Output is correct |
40 |
Correct |
8 ms |
16740 KB |
Output is correct |
41 |
Correct |
9 ms |
16724 KB |
Output is correct |
42 |
Correct |
8 ms |
16688 KB |
Output is correct |
43 |
Correct |
9 ms |
16724 KB |
Output is correct |
44 |
Correct |
8 ms |
16724 KB |
Output is correct |
45 |
Correct |
8 ms |
16724 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
16716 KB |
Output is correct |
2 |
Correct |
46 ms |
19656 KB |
Output is correct |
3 |
Correct |
49 ms |
19644 KB |
Output is correct |
4 |
Correct |
38 ms |
19024 KB |
Output is correct |
5 |
Correct |
52 ms |
19568 KB |
Output is correct |
6 |
Correct |
37 ms |
19008 KB |
Output is correct |
7 |
Correct |
53 ms |
19584 KB |
Output is correct |
8 |
Correct |
8 ms |
16684 KB |
Output is correct |
9 |
Correct |
7 ms |
16724 KB |
Output is correct |
10 |
Correct |
9 ms |
16724 KB |
Output is correct |
11 |
Correct |
8 ms |
16660 KB |
Output is correct |
12 |
Correct |
8 ms |
16724 KB |
Output is correct |
13 |
Correct |
8 ms |
16712 KB |
Output is correct |
14 |
Correct |
8 ms |
16712 KB |
Output is correct |
15 |
Correct |
11 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16640 KB |
Output is correct |
17 |
Correct |
8 ms |
16724 KB |
Output is correct |
18 |
Correct |
8 ms |
16704 KB |
Output is correct |
19 |
Correct |
7 ms |
16700 KB |
Output is correct |
20 |
Correct |
181 ms |
24308 KB |
Output is correct |
21 |
Correct |
166 ms |
23688 KB |
Output is correct |
22 |
Correct |
172 ms |
23732 KB |
Output is correct |
23 |
Correct |
142 ms |
24568 KB |
Output is correct |
24 |
Correct |
139 ms |
24268 KB |
Output is correct |
25 |
Correct |
181 ms |
24240 KB |
Output is correct |
26 |
Correct |
191 ms |
24264 KB |
Output is correct |
27 |
Correct |
7 ms |
16724 KB |
Output is correct |
28 |
Correct |
7 ms |
16724 KB |
Output is correct |
29 |
Correct |
7 ms |
16724 KB |
Output is correct |
30 |
Correct |
7 ms |
16712 KB |
Output is correct |
31 |
Correct |
7 ms |
16704 KB |
Output is correct |
32 |
Correct |
7 ms |
16724 KB |
Output is correct |
33 |
Correct |
7 ms |
16724 KB |
Output is correct |
34 |
Correct |
8 ms |
16724 KB |
Output is correct |
35 |
Correct |
8 ms |
16712 KB |
Output is correct |
36 |
Correct |
7 ms |
16724 KB |
Output is correct |
37 |
Correct |
7 ms |
16624 KB |
Output is correct |
38 |
Correct |
7 ms |
16712 KB |
Output is correct |
39 |
Correct |
8 ms |
16724 KB |
Output is correct |
40 |
Correct |
8 ms |
16740 KB |
Output is correct |
41 |
Correct |
9 ms |
16724 KB |
Output is correct |
42 |
Correct |
8 ms |
16688 KB |
Output is correct |
43 |
Correct |
9 ms |
16724 KB |
Output is correct |
44 |
Correct |
8 ms |
16724 KB |
Output is correct |
45 |
Correct |
8 ms |
16724 KB |
Output is correct |
46 |
Correct |
7 ms |
16724 KB |
Output is correct |
47 |
Correct |
255 ms |
26744 KB |
Output is correct |
48 |
Correct |
234 ms |
26104 KB |
Output is correct |
49 |
Correct |
233 ms |
26036 KB |
Output is correct |
50 |
Correct |
199 ms |
26996 KB |
Output is correct |
51 |
Correct |
250 ms |
26600 KB |
Output is correct |
52 |
Correct |
244 ms |
26656 KB |
Output is correct |
53 |
Correct |
260 ms |
26848 KB |
Output is correct |
54 |
Correct |
7 ms |
16724 KB |
Output is correct |
55 |
Correct |
7 ms |
16648 KB |
Output is correct |
56 |
Correct |
8 ms |
16636 KB |
Output is correct |
57 |
Correct |
7 ms |
16724 KB |
Output is correct |
58 |
Correct |
7 ms |
16744 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
16716 KB |
Output is correct |
2 |
Correct |
46 ms |
19656 KB |
Output is correct |
3 |
Correct |
49 ms |
19644 KB |
Output is correct |
4 |
Correct |
38 ms |
19024 KB |
Output is correct |
5 |
Correct |
52 ms |
19568 KB |
Output is correct |
6 |
Correct |
37 ms |
19008 KB |
Output is correct |
7 |
Correct |
53 ms |
19584 KB |
Output is correct |
8 |
Correct |
8 ms |
16684 KB |
Output is correct |
9 |
Correct |
7 ms |
16724 KB |
Output is correct |
10 |
Correct |
9 ms |
16724 KB |
Output is correct |
11 |
Correct |
8 ms |
16660 KB |
Output is correct |
12 |
Correct |
8 ms |
16724 KB |
Output is correct |
13 |
Correct |
8 ms |
16712 KB |
Output is correct |
14 |
Correct |
8 ms |
16712 KB |
Output is correct |
15 |
Correct |
11 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16640 KB |
Output is correct |
17 |
Correct |
8 ms |
16724 KB |
Output is correct |
18 |
Correct |
8 ms |
16704 KB |
Output is correct |
19 |
Correct |
7 ms |
16700 KB |
Output is correct |
20 |
Correct |
181 ms |
24308 KB |
Output is correct |
21 |
Correct |
166 ms |
23688 KB |
Output is correct |
22 |
Correct |
172 ms |
23732 KB |
Output is correct |
23 |
Correct |
142 ms |
24568 KB |
Output is correct |
24 |
Correct |
139 ms |
24268 KB |
Output is correct |
25 |
Correct |
181 ms |
24240 KB |
Output is correct |
26 |
Correct |
191 ms |
24264 KB |
Output is correct |
27 |
Correct |
7 ms |
16724 KB |
Output is correct |
28 |
Correct |
7 ms |
16724 KB |
Output is correct |
29 |
Correct |
7 ms |
16724 KB |
Output is correct |
30 |
Correct |
7 ms |
16712 KB |
Output is correct |
31 |
Correct |
7 ms |
16704 KB |
Output is correct |
32 |
Correct |
7 ms |
16724 KB |
Output is correct |
33 |
Correct |
7 ms |
16724 KB |
Output is correct |
34 |
Correct |
8 ms |
16724 KB |
Output is correct |
35 |
Correct |
8 ms |
16712 KB |
Output is correct |
36 |
Correct |
7 ms |
16724 KB |
Output is correct |
37 |
Correct |
7 ms |
16624 KB |
Output is correct |
38 |
Correct |
7 ms |
16712 KB |
Output is correct |
39 |
Correct |
8 ms |
16724 KB |
Output is correct |
40 |
Correct |
8 ms |
16740 KB |
Output is correct |
41 |
Correct |
9 ms |
16724 KB |
Output is correct |
42 |
Correct |
8 ms |
16688 KB |
Output is correct |
43 |
Correct |
9 ms |
16724 KB |
Output is correct |
44 |
Correct |
8 ms |
16724 KB |
Output is correct |
45 |
Correct |
8 ms |
16724 KB |
Output is correct |
46 |
Correct |
7 ms |
16724 KB |
Output is correct |
47 |
Correct |
255 ms |
26744 KB |
Output is correct |
48 |
Correct |
234 ms |
26104 KB |
Output is correct |
49 |
Correct |
233 ms |
26036 KB |
Output is correct |
50 |
Correct |
199 ms |
26996 KB |
Output is correct |
51 |
Correct |
250 ms |
26600 KB |
Output is correct |
52 |
Correct |
244 ms |
26656 KB |
Output is correct |
53 |
Correct |
260 ms |
26848 KB |
Output is correct |
54 |
Correct |
7 ms |
16724 KB |
Output is correct |
55 |
Correct |
7 ms |
16648 KB |
Output is correct |
56 |
Correct |
8 ms |
16636 KB |
Output is correct |
57 |
Correct |
7 ms |
16724 KB |
Output is correct |
58 |
Correct |
7 ms |
16744 KB |
Output is correct |
59 |
Correct |
278 ms |
28052 KB |
Output is correct |
60 |
Correct |
131 ms |
21236 KB |
Output is correct |
61 |
Correct |
136 ms |
21560 KB |
Output is correct |
62 |
Correct |
198 ms |
21708 KB |
Output is correct |
63 |
Correct |
299 ms |
27988 KB |
Output is correct |
64 |
Correct |
310 ms |
28460 KB |
Output is correct |
65 |
Correct |
316 ms |
28392 KB |
Output is correct |
66 |
Correct |
240 ms |
28648 KB |
Output is correct |
67 |
Correct |
228 ms |
28404 KB |
Output is correct |
68 |
Correct |
297 ms |
28448 KB |
Output is correct |
69 |
Correct |
321 ms |
28672 KB |
Output is correct |
70 |
Correct |
15 ms |
16744 KB |
Output is correct |
71 |
Correct |
15 ms |
16744 KB |
Output is correct |
72 |
Correct |
15 ms |
16688 KB |
Output is correct |
73 |
Correct |
15 ms |
16708 KB |
Output is correct |
74 |
Correct |
15 ms |
16708 KB |
Output is correct |
75 |
Correct |
20 ms |
16856 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
16724 KB |
Output is correct |
2 |
Correct |
8 ms |
16664 KB |
Output is correct |
3 |
Correct |
8 ms |
16724 KB |
Output is correct |
4 |
Correct |
8 ms |
16724 KB |
Output is correct |
5 |
Correct |
89 ms |
16732 KB |
Output is correct |
6 |
Correct |
98 ms |
16748 KB |
Output is correct |
7 |
Correct |
90 ms |
16724 KB |
Output is correct |
8 |
Correct |
91 ms |
16724 KB |
Output is correct |
9 |
Correct |
125 ms |
16724 KB |
Output is correct |
10 |
Correct |
87 ms |
16728 KB |
Output is correct |
11 |
Correct |
111 ms |
16740 KB |
Output is correct |
12 |
Correct |
100 ms |
16732 KB |
Output is correct |
13 |
Correct |
8 ms |
16724 KB |
Output is correct |
14 |
Correct |
8 ms |
16628 KB |
Output is correct |
15 |
Correct |
8 ms |
16724 KB |
Output is correct |
16 |
Correct |
8 ms |
16724 KB |
Output is correct |
17 |
Correct |
8 ms |
16672 KB |
Output is correct |
18 |
Correct |
8 ms |
16724 KB |
Output is correct |
19 |
Correct |
8 ms |
16724 KB |
Output is correct |
20 |
Correct |
8 ms |
16724 KB |
Output is correct |
21 |
Correct |
8 ms |
16724 KB |
Output is correct |
22 |
Correct |
9 ms |
16740 KB |
Output is correct |
23 |
Correct |
8 ms |
16740 KB |
Output is correct |
24 |
Correct |
9 ms |
16724 KB |
Output is correct |
25 |
Correct |
10 ms |
16712 KB |
Output is correct |
26 |
Correct |
9 ms |
16724 KB |
Output is correct |
27 |
Correct |
8 ms |
16708 KB |
Output is correct |
28 |
Correct |
8 ms |
16724 KB |
Output is correct |
29 |
Correct |
7 ms |
16724 KB |
Output is correct |
30 |
Correct |
8 ms |
16712 KB |
Output is correct |
31 |
Correct |
10 ms |
16724 KB |
Output is correct |
32 |
Correct |
8 ms |
16724 KB |
Output is correct |
33 |
Correct |
7 ms |
16724 KB |
Output is correct |
34 |
Correct |
7 ms |
16724 KB |
Output is correct |
35 |
Correct |
7 ms |
16628 KB |
Output is correct |
36 |
Correct |
8 ms |
16724 KB |
Output is correct |
37 |
Correct |
7 ms |
16724 KB |
Output is correct |
38 |
Correct |
7 ms |
16640 KB |
Output is correct |
39 |
Correct |
8 ms |
16712 KB |
Output is correct |
40 |
Correct |
8 ms |
16724 KB |
Output is correct |
41 |
Correct |
9 ms |
16724 KB |
Output is correct |
42 |
Correct |
10 ms |
16724 KB |
Output is correct |
43 |
Correct |
8 ms |
16724 KB |
Output is correct |
44 |
Correct |
9 ms |
16724 KB |
Output is correct |
45 |
Correct |
9 ms |
16664 KB |
Output is correct |
46 |
Correct |
16 ms |
16744 KB |
Output is correct |
47 |
Correct |
16 ms |
16744 KB |
Output is correct |
48 |
Correct |
16 ms |
16708 KB |
Output is correct |
49 |
Correct |
16 ms |
16724 KB |
Output is correct |
50 |
Correct |
21 ms |
16712 KB |
Output is correct |
51 |
Correct |
114 ms |
16856 KB |
Output is correct |
52 |
Correct |
89 ms |
16860 KB |
Output is correct |
53 |
Correct |
128 ms |
16872 KB |
Output is correct |
54 |
Correct |
105 ms |
16856 KB |
Output is correct |
55 |
Correct |
8 ms |
16724 KB |
Output is correct |
56 |
Correct |
21 ms |
16796 KB |
Output is correct |
57 |
Correct |
7 ms |
16716 KB |
Output is correct |
58 |
Correct |
46 ms |
19656 KB |
Output is correct |
59 |
Correct |
49 ms |
19644 KB |
Output is correct |
60 |
Correct |
38 ms |
19024 KB |
Output is correct |
61 |
Correct |
52 ms |
19568 KB |
Output is correct |
62 |
Correct |
37 ms |
19008 KB |
Output is correct |
63 |
Correct |
53 ms |
19584 KB |
Output is correct |
64 |
Correct |
8 ms |
16684 KB |
Output is correct |
65 |
Correct |
7 ms |
16724 KB |
Output is correct |
66 |
Correct |
9 ms |
16724 KB |
Output is correct |
67 |
Correct |
8 ms |
16660 KB |
Output is correct |
68 |
Correct |
8 ms |
16724 KB |
Output is correct |
69 |
Correct |
8 ms |
16712 KB |
Output is correct |
70 |
Correct |
8 ms |
16712 KB |
Output is correct |
71 |
Correct |
11 ms |
16724 KB |
Output is correct |
72 |
Correct |
8 ms |
16640 KB |
Output is correct |
73 |
Correct |
8 ms |
16724 KB |
Output is correct |
74 |
Correct |
8 ms |
16704 KB |
Output is correct |
75 |
Correct |
7 ms |
16700 KB |
Output is correct |
76 |
Correct |
181 ms |
24308 KB |
Output is correct |
77 |
Correct |
166 ms |
23688 KB |
Output is correct |
78 |
Correct |
172 ms |
23732 KB |
Output is correct |
79 |
Correct |
142 ms |
24568 KB |
Output is correct |
80 |
Correct |
139 ms |
24268 KB |
Output is correct |
81 |
Correct |
181 ms |
24240 KB |
Output is correct |
82 |
Correct |
191 ms |
24264 KB |
Output is correct |
83 |
Correct |
7 ms |
16724 KB |
Output is correct |
84 |
Correct |
7 ms |
16724 KB |
Output is correct |
85 |
Correct |
7 ms |
16724 KB |
Output is correct |
86 |
Correct |
7 ms |
16712 KB |
Output is correct |
87 |
Correct |
7 ms |
16704 KB |
Output is correct |
88 |
Correct |
7 ms |
16724 KB |
Output is correct |
89 |
Correct |
7 ms |
16724 KB |
Output is correct |
90 |
Correct |
8 ms |
16724 KB |
Output is correct |
91 |
Correct |
8 ms |
16712 KB |
Output is correct |
92 |
Correct |
7 ms |
16724 KB |
Output is correct |
93 |
Correct |
7 ms |
16624 KB |
Output is correct |
94 |
Correct |
7 ms |
16712 KB |
Output is correct |
95 |
Correct |
8 ms |
16724 KB |
Output is correct |
96 |
Correct |
8 ms |
16740 KB |
Output is correct |
97 |
Correct |
9 ms |
16724 KB |
Output is correct |
98 |
Correct |
8 ms |
16688 KB |
Output is correct |
99 |
Correct |
9 ms |
16724 KB |
Output is correct |
100 |
Correct |
8 ms |
16724 KB |
Output is correct |
101 |
Correct |
8 ms |
16724 KB |
Output is correct |
102 |
Correct |
7 ms |
16724 KB |
Output is correct |
103 |
Correct |
255 ms |
26744 KB |
Output is correct |
104 |
Correct |
234 ms |
26104 KB |
Output is correct |
105 |
Correct |
233 ms |
26036 KB |
Output is correct |
106 |
Correct |
199 ms |
26996 KB |
Output is correct |
107 |
Correct |
250 ms |
26600 KB |
Output is correct |
108 |
Correct |
244 ms |
26656 KB |
Output is correct |
109 |
Correct |
260 ms |
26848 KB |
Output is correct |
110 |
Correct |
7 ms |
16724 KB |
Output is correct |
111 |
Correct |
7 ms |
16648 KB |
Output is correct |
112 |
Correct |
8 ms |
16636 KB |
Output is correct |
113 |
Correct |
7 ms |
16724 KB |
Output is correct |
114 |
Correct |
7 ms |
16744 KB |
Output is correct |
115 |
Correct |
278 ms |
28052 KB |
Output is correct |
116 |
Correct |
131 ms |
21236 KB |
Output is correct |
117 |
Correct |
136 ms |
21560 KB |
Output is correct |
118 |
Correct |
198 ms |
21708 KB |
Output is correct |
119 |
Correct |
299 ms |
27988 KB |
Output is correct |
120 |
Correct |
310 ms |
28460 KB |
Output is correct |
121 |
Correct |
316 ms |
28392 KB |
Output is correct |
122 |
Correct |
240 ms |
28648 KB |
Output is correct |
123 |
Correct |
228 ms |
28404 KB |
Output is correct |
124 |
Correct |
297 ms |
28448 KB |
Output is correct |
125 |
Correct |
321 ms |
28672 KB |
Output is correct |
126 |
Correct |
15 ms |
16744 KB |
Output is correct |
127 |
Correct |
15 ms |
16744 KB |
Output is correct |
128 |
Correct |
15 ms |
16688 KB |
Output is correct |
129 |
Correct |
15 ms |
16708 KB |
Output is correct |
130 |
Correct |
15 ms |
16708 KB |
Output is correct |
131 |
Correct |
20 ms |
16856 KB |
Output is correct |
132 |
Correct |
446 ms |
30452 KB |
Output is correct |
133 |
Correct |
420 ms |
30292 KB |
Output is correct |
134 |
Correct |
438 ms |
30504 KB |
Output is correct |
135 |
Correct |
462 ms |
30376 KB |
Output is correct |
136 |
Correct |
505 ms |
30572 KB |
Output is correct |
137 |
Correct |
402 ms |
29800 KB |
Output is correct |
138 |
Correct |
387 ms |
29900 KB |
Output is correct |
139 |
Correct |
371 ms |
30408 KB |
Output is correct |
140 |
Correct |
329 ms |
30156 KB |
Output is correct |
141 |
Correct |
435 ms |
30212 KB |
Output is correct |
142 |
Correct |
482 ms |
30508 KB |
Output is correct |