# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
894231 |
2023-12-28T03:01:13 Z |
box |
Council (JOI23_council) |
C++17 |
|
524 ms |
30672 KB |
#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]++;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
16988 KB |
Output is correct |
2 |
Correct |
4 ms |
16988 KB |
Output is correct |
3 |
Correct |
4 ms |
16984 KB |
Output is correct |
4 |
Correct |
4 ms |
16988 KB |
Output is correct |
5 |
Correct |
133 ms |
17036 KB |
Output is correct |
6 |
Correct |
104 ms |
16988 KB |
Output is correct |
7 |
Correct |
85 ms |
17044 KB |
Output is correct |
8 |
Correct |
97 ms |
16988 KB |
Output is correct |
9 |
Correct |
117 ms |
17052 KB |
Output is correct |
10 |
Correct |
89 ms |
17040 KB |
Output is correct |
11 |
Correct |
113 ms |
16984 KB |
Output is correct |
12 |
Correct |
92 ms |
17052 KB |
Output is correct |
13 |
Correct |
4 ms |
16984 KB |
Output is correct |
14 |
Correct |
4 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
3 ms |
16984 KB |
Output is correct |
17 |
Correct |
4 ms |
16984 KB |
Output is correct |
18 |
Correct |
4 ms |
16988 KB |
Output is correct |
19 |
Correct |
3 ms |
17036 KB |
Output is correct |
20 |
Correct |
4 ms |
16988 KB |
Output is correct |
21 |
Correct |
4 ms |
16844 KB |
Output is correct |
22 |
Correct |
4 ms |
16988 KB |
Output is correct |
23 |
Correct |
4 ms |
16988 KB |
Output is correct |
24 |
Correct |
4 ms |
16988 KB |
Output is correct |
25 |
Correct |
4 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
4 ms |
16988 KB |
Output is correct |
28 |
Correct |
4 ms |
16984 KB |
Output is correct |
29 |
Correct |
4 ms |
16988 KB |
Output is correct |
30 |
Correct |
4 ms |
17056 KB |
Output is correct |
31 |
Correct |
4 ms |
16988 KB |
Output is correct |
32 |
Correct |
4 ms |
16988 KB |
Output is correct |
33 |
Correct |
4 ms |
16984 KB |
Output is correct |
34 |
Correct |
4 ms |
16988 KB |
Output is correct |
35 |
Correct |
4 ms |
17048 KB |
Output is correct |
36 |
Correct |
4 ms |
16988 KB |
Output is correct |
37 |
Correct |
5 ms |
16844 KB |
Output is correct |
38 |
Correct |
3 ms |
16984 KB |
Output is correct |
39 |
Correct |
5 ms |
17240 KB |
Output is correct |
40 |
Correct |
4 ms |
16856 KB |
Output is correct |
41 |
Correct |
5 ms |
16988 KB |
Output is correct |
42 |
Correct |
4 ms |
16988 KB |
Output is correct |
43 |
Correct |
5 ms |
16988 KB |
Output is correct |
44 |
Correct |
4 ms |
17040 KB |
Output is correct |
45 |
Correct |
5 ms |
16988 KB |
Output is correct |
46 |
Correct |
12 ms |
16988 KB |
Output is correct |
47 |
Correct |
19 ms |
16984 KB |
Output is correct |
48 |
Correct |
12 ms |
16988 KB |
Output is correct |
49 |
Correct |
12 ms |
16988 KB |
Output is correct |
50 |
Correct |
12 ms |
16988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
16988 KB |
Output is correct |
2 |
Correct |
4 ms |
16988 KB |
Output is correct |
3 |
Correct |
4 ms |
16984 KB |
Output is correct |
4 |
Correct |
4 ms |
16988 KB |
Output is correct |
5 |
Correct |
133 ms |
17036 KB |
Output is correct |
6 |
Correct |
104 ms |
16988 KB |
Output is correct |
7 |
Correct |
85 ms |
17044 KB |
Output is correct |
8 |
Correct |
97 ms |
16988 KB |
Output is correct |
9 |
Correct |
117 ms |
17052 KB |
Output is correct |
10 |
Correct |
89 ms |
17040 KB |
Output is correct |
11 |
Correct |
113 ms |
16984 KB |
Output is correct |
12 |
Correct |
92 ms |
17052 KB |
Output is correct |
13 |
Correct |
4 ms |
16984 KB |
Output is correct |
14 |
Correct |
4 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
3 ms |
16984 KB |
Output is correct |
17 |
Correct |
4 ms |
16984 KB |
Output is correct |
18 |
Correct |
4 ms |
16988 KB |
Output is correct |
19 |
Correct |
3 ms |
17036 KB |
Output is correct |
20 |
Correct |
4 ms |
16988 KB |
Output is correct |
21 |
Correct |
4 ms |
16844 KB |
Output is correct |
22 |
Correct |
4 ms |
16988 KB |
Output is correct |
23 |
Correct |
4 ms |
16988 KB |
Output is correct |
24 |
Correct |
4 ms |
16988 KB |
Output is correct |
25 |
Correct |
4 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
4 ms |
16988 KB |
Output is correct |
28 |
Correct |
4 ms |
16984 KB |
Output is correct |
29 |
Correct |
4 ms |
16988 KB |
Output is correct |
30 |
Correct |
4 ms |
17056 KB |
Output is correct |
31 |
Correct |
4 ms |
16988 KB |
Output is correct |
32 |
Correct |
4 ms |
16988 KB |
Output is correct |
33 |
Correct |
4 ms |
16984 KB |
Output is correct |
34 |
Correct |
4 ms |
16988 KB |
Output is correct |
35 |
Correct |
4 ms |
17048 KB |
Output is correct |
36 |
Correct |
4 ms |
16988 KB |
Output is correct |
37 |
Correct |
5 ms |
16844 KB |
Output is correct |
38 |
Correct |
3 ms |
16984 KB |
Output is correct |
39 |
Correct |
5 ms |
17240 KB |
Output is correct |
40 |
Correct |
4 ms |
16856 KB |
Output is correct |
41 |
Correct |
5 ms |
16988 KB |
Output is correct |
42 |
Correct |
4 ms |
16988 KB |
Output is correct |
43 |
Correct |
5 ms |
16988 KB |
Output is correct |
44 |
Correct |
4 ms |
17040 KB |
Output is correct |
45 |
Correct |
5 ms |
16988 KB |
Output is correct |
46 |
Correct |
12 ms |
16988 KB |
Output is correct |
47 |
Correct |
19 ms |
16984 KB |
Output is correct |
48 |
Correct |
12 ms |
16988 KB |
Output is correct |
49 |
Correct |
12 ms |
16988 KB |
Output is correct |
50 |
Correct |
12 ms |
16988 KB |
Output is correct |
51 |
Correct |
88 ms |
16988 KB |
Output is correct |
52 |
Correct |
105 ms |
16984 KB |
Output is correct |
53 |
Correct |
124 ms |
17160 KB |
Output is correct |
54 |
Correct |
101 ms |
17156 KB |
Output is correct |
55 |
Correct |
5 ms |
17060 KB |
Output is correct |
56 |
Correct |
23 ms |
16988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
17040 KB |
Output is correct |
2 |
Correct |
44 ms |
19748 KB |
Output is correct |
3 |
Correct |
45 ms |
19664 KB |
Output is correct |
4 |
Correct |
33 ms |
19036 KB |
Output is correct |
5 |
Correct |
61 ms |
19764 KB |
Output is correct |
6 |
Correct |
33 ms |
19036 KB |
Output is correct |
7 |
Correct |
49 ms |
19772 KB |
Output is correct |
8 |
Correct |
4 ms |
16988 KB |
Output is correct |
9 |
Correct |
3 ms |
16988 KB |
Output is correct |
10 |
Correct |
4 ms |
16988 KB |
Output is correct |
11 |
Correct |
3 ms |
16988 KB |
Output is correct |
12 |
Correct |
3 ms |
17044 KB |
Output is correct |
13 |
Correct |
3 ms |
16988 KB |
Output is correct |
14 |
Correct |
3 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
4 ms |
16988 KB |
Output is correct |
17 |
Correct |
4 ms |
16988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
17040 KB |
Output is correct |
2 |
Correct |
44 ms |
19748 KB |
Output is correct |
3 |
Correct |
45 ms |
19664 KB |
Output is correct |
4 |
Correct |
33 ms |
19036 KB |
Output is correct |
5 |
Correct |
61 ms |
19764 KB |
Output is correct |
6 |
Correct |
33 ms |
19036 KB |
Output is correct |
7 |
Correct |
49 ms |
19772 KB |
Output is correct |
8 |
Correct |
4 ms |
16988 KB |
Output is correct |
9 |
Correct |
3 ms |
16988 KB |
Output is correct |
10 |
Correct |
4 ms |
16988 KB |
Output is correct |
11 |
Correct |
3 ms |
16988 KB |
Output is correct |
12 |
Correct |
3 ms |
17044 KB |
Output is correct |
13 |
Correct |
3 ms |
16988 KB |
Output is correct |
14 |
Correct |
3 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
4 ms |
16988 KB |
Output is correct |
17 |
Correct |
4 ms |
16988 KB |
Output is correct |
18 |
Correct |
4 ms |
16988 KB |
Output is correct |
19 |
Correct |
3 ms |
16988 KB |
Output is correct |
20 |
Correct |
174 ms |
24444 KB |
Output is correct |
21 |
Correct |
178 ms |
23784 KB |
Output is correct |
22 |
Correct |
159 ms |
23884 KB |
Output is correct |
23 |
Correct |
137 ms |
24664 KB |
Output is correct |
24 |
Correct |
166 ms |
24372 KB |
Output is correct |
25 |
Correct |
176 ms |
24460 KB |
Output is correct |
26 |
Correct |
186 ms |
24400 KB |
Output is correct |
27 |
Correct |
4 ms |
16984 KB |
Output is correct |
28 |
Correct |
4 ms |
16988 KB |
Output is correct |
29 |
Correct |
4 ms |
16984 KB |
Output is correct |
30 |
Correct |
3 ms |
16988 KB |
Output is correct |
31 |
Correct |
4 ms |
16988 KB |
Output is correct |
32 |
Correct |
4 ms |
16988 KB |
Output is correct |
33 |
Correct |
4 ms |
16988 KB |
Output is correct |
34 |
Correct |
3 ms |
16988 KB |
Output is correct |
35 |
Correct |
4 ms |
16988 KB |
Output is correct |
36 |
Correct |
5 ms |
16988 KB |
Output is correct |
37 |
Correct |
3 ms |
16988 KB |
Output is correct |
38 |
Correct |
3 ms |
16988 KB |
Output is correct |
39 |
Correct |
4 ms |
16988 KB |
Output is correct |
40 |
Correct |
5 ms |
16984 KB |
Output is correct |
41 |
Correct |
3 ms |
17044 KB |
Output is correct |
42 |
Correct |
3 ms |
16988 KB |
Output is correct |
43 |
Correct |
3 ms |
16988 KB |
Output is correct |
44 |
Correct |
4 ms |
16988 KB |
Output is correct |
45 |
Correct |
4 ms |
16988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
17040 KB |
Output is correct |
2 |
Correct |
44 ms |
19748 KB |
Output is correct |
3 |
Correct |
45 ms |
19664 KB |
Output is correct |
4 |
Correct |
33 ms |
19036 KB |
Output is correct |
5 |
Correct |
61 ms |
19764 KB |
Output is correct |
6 |
Correct |
33 ms |
19036 KB |
Output is correct |
7 |
Correct |
49 ms |
19772 KB |
Output is correct |
8 |
Correct |
4 ms |
16988 KB |
Output is correct |
9 |
Correct |
3 ms |
16988 KB |
Output is correct |
10 |
Correct |
4 ms |
16988 KB |
Output is correct |
11 |
Correct |
3 ms |
16988 KB |
Output is correct |
12 |
Correct |
3 ms |
17044 KB |
Output is correct |
13 |
Correct |
3 ms |
16988 KB |
Output is correct |
14 |
Correct |
3 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
4 ms |
16988 KB |
Output is correct |
17 |
Correct |
4 ms |
16988 KB |
Output is correct |
18 |
Correct |
4 ms |
16988 KB |
Output is correct |
19 |
Correct |
3 ms |
16988 KB |
Output is correct |
20 |
Correct |
174 ms |
24444 KB |
Output is correct |
21 |
Correct |
178 ms |
23784 KB |
Output is correct |
22 |
Correct |
159 ms |
23884 KB |
Output is correct |
23 |
Correct |
137 ms |
24664 KB |
Output is correct |
24 |
Correct |
166 ms |
24372 KB |
Output is correct |
25 |
Correct |
176 ms |
24460 KB |
Output is correct |
26 |
Correct |
186 ms |
24400 KB |
Output is correct |
27 |
Correct |
4 ms |
16984 KB |
Output is correct |
28 |
Correct |
4 ms |
16988 KB |
Output is correct |
29 |
Correct |
4 ms |
16984 KB |
Output is correct |
30 |
Correct |
3 ms |
16988 KB |
Output is correct |
31 |
Correct |
4 ms |
16988 KB |
Output is correct |
32 |
Correct |
4 ms |
16988 KB |
Output is correct |
33 |
Correct |
4 ms |
16988 KB |
Output is correct |
34 |
Correct |
3 ms |
16988 KB |
Output is correct |
35 |
Correct |
4 ms |
16988 KB |
Output is correct |
36 |
Correct |
5 ms |
16988 KB |
Output is correct |
37 |
Correct |
3 ms |
16988 KB |
Output is correct |
38 |
Correct |
3 ms |
16988 KB |
Output is correct |
39 |
Correct |
4 ms |
16988 KB |
Output is correct |
40 |
Correct |
5 ms |
16984 KB |
Output is correct |
41 |
Correct |
3 ms |
17044 KB |
Output is correct |
42 |
Correct |
3 ms |
16988 KB |
Output is correct |
43 |
Correct |
3 ms |
16988 KB |
Output is correct |
44 |
Correct |
4 ms |
16988 KB |
Output is correct |
45 |
Correct |
4 ms |
16988 KB |
Output is correct |
46 |
Correct |
5 ms |
16984 KB |
Output is correct |
47 |
Correct |
284 ms |
26844 KB |
Output is correct |
48 |
Correct |
251 ms |
26008 KB |
Output is correct |
49 |
Correct |
294 ms |
26212 KB |
Output is correct |
50 |
Correct |
208 ms |
27020 KB |
Output is correct |
51 |
Correct |
207 ms |
26704 KB |
Output is correct |
52 |
Correct |
354 ms |
26588 KB |
Output is correct |
53 |
Correct |
297 ms |
26932 KB |
Output is correct |
54 |
Correct |
6 ms |
16844 KB |
Output is correct |
55 |
Correct |
6 ms |
16844 KB |
Output is correct |
56 |
Correct |
6 ms |
16988 KB |
Output is correct |
57 |
Correct |
6 ms |
16988 KB |
Output is correct |
58 |
Correct |
4 ms |
16988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
17040 KB |
Output is correct |
2 |
Correct |
44 ms |
19748 KB |
Output is correct |
3 |
Correct |
45 ms |
19664 KB |
Output is correct |
4 |
Correct |
33 ms |
19036 KB |
Output is correct |
5 |
Correct |
61 ms |
19764 KB |
Output is correct |
6 |
Correct |
33 ms |
19036 KB |
Output is correct |
7 |
Correct |
49 ms |
19772 KB |
Output is correct |
8 |
Correct |
4 ms |
16988 KB |
Output is correct |
9 |
Correct |
3 ms |
16988 KB |
Output is correct |
10 |
Correct |
4 ms |
16988 KB |
Output is correct |
11 |
Correct |
3 ms |
16988 KB |
Output is correct |
12 |
Correct |
3 ms |
17044 KB |
Output is correct |
13 |
Correct |
3 ms |
16988 KB |
Output is correct |
14 |
Correct |
3 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
4 ms |
16988 KB |
Output is correct |
17 |
Correct |
4 ms |
16988 KB |
Output is correct |
18 |
Correct |
4 ms |
16988 KB |
Output is correct |
19 |
Correct |
3 ms |
16988 KB |
Output is correct |
20 |
Correct |
174 ms |
24444 KB |
Output is correct |
21 |
Correct |
178 ms |
23784 KB |
Output is correct |
22 |
Correct |
159 ms |
23884 KB |
Output is correct |
23 |
Correct |
137 ms |
24664 KB |
Output is correct |
24 |
Correct |
166 ms |
24372 KB |
Output is correct |
25 |
Correct |
176 ms |
24460 KB |
Output is correct |
26 |
Correct |
186 ms |
24400 KB |
Output is correct |
27 |
Correct |
4 ms |
16984 KB |
Output is correct |
28 |
Correct |
4 ms |
16988 KB |
Output is correct |
29 |
Correct |
4 ms |
16984 KB |
Output is correct |
30 |
Correct |
3 ms |
16988 KB |
Output is correct |
31 |
Correct |
4 ms |
16988 KB |
Output is correct |
32 |
Correct |
4 ms |
16988 KB |
Output is correct |
33 |
Correct |
4 ms |
16988 KB |
Output is correct |
34 |
Correct |
3 ms |
16988 KB |
Output is correct |
35 |
Correct |
4 ms |
16988 KB |
Output is correct |
36 |
Correct |
5 ms |
16988 KB |
Output is correct |
37 |
Correct |
3 ms |
16988 KB |
Output is correct |
38 |
Correct |
3 ms |
16988 KB |
Output is correct |
39 |
Correct |
4 ms |
16988 KB |
Output is correct |
40 |
Correct |
5 ms |
16984 KB |
Output is correct |
41 |
Correct |
3 ms |
17044 KB |
Output is correct |
42 |
Correct |
3 ms |
16988 KB |
Output is correct |
43 |
Correct |
3 ms |
16988 KB |
Output is correct |
44 |
Correct |
4 ms |
16988 KB |
Output is correct |
45 |
Correct |
4 ms |
16988 KB |
Output is correct |
46 |
Correct |
5 ms |
16984 KB |
Output is correct |
47 |
Correct |
284 ms |
26844 KB |
Output is correct |
48 |
Correct |
251 ms |
26008 KB |
Output is correct |
49 |
Correct |
294 ms |
26212 KB |
Output is correct |
50 |
Correct |
208 ms |
27020 KB |
Output is correct |
51 |
Correct |
207 ms |
26704 KB |
Output is correct |
52 |
Correct |
354 ms |
26588 KB |
Output is correct |
53 |
Correct |
297 ms |
26932 KB |
Output is correct |
54 |
Correct |
6 ms |
16844 KB |
Output is correct |
55 |
Correct |
6 ms |
16844 KB |
Output is correct |
56 |
Correct |
6 ms |
16988 KB |
Output is correct |
57 |
Correct |
6 ms |
16988 KB |
Output is correct |
58 |
Correct |
4 ms |
16988 KB |
Output is correct |
59 |
Correct |
280 ms |
28088 KB |
Output is correct |
60 |
Correct |
140 ms |
22056 KB |
Output is correct |
61 |
Correct |
179 ms |
21684 KB |
Output is correct |
62 |
Correct |
167 ms |
21840 KB |
Output is correct |
63 |
Correct |
347 ms |
27852 KB |
Output is correct |
64 |
Correct |
354 ms |
28468 KB |
Output is correct |
65 |
Correct |
389 ms |
28548 KB |
Output is correct |
66 |
Correct |
258 ms |
28756 KB |
Output is correct |
67 |
Correct |
251 ms |
28504 KB |
Output is correct |
68 |
Correct |
341 ms |
28564 KB |
Output is correct |
69 |
Correct |
365 ms |
28652 KB |
Output is correct |
70 |
Correct |
12 ms |
16984 KB |
Output is correct |
71 |
Correct |
12 ms |
16988 KB |
Output is correct |
72 |
Correct |
12 ms |
17064 KB |
Output is correct |
73 |
Correct |
12 ms |
17060 KB |
Output is correct |
74 |
Correct |
18 ms |
17060 KB |
Output is correct |
75 |
Correct |
17 ms |
16988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
16988 KB |
Output is correct |
2 |
Correct |
4 ms |
16988 KB |
Output is correct |
3 |
Correct |
4 ms |
16984 KB |
Output is correct |
4 |
Correct |
4 ms |
16988 KB |
Output is correct |
5 |
Correct |
133 ms |
17036 KB |
Output is correct |
6 |
Correct |
104 ms |
16988 KB |
Output is correct |
7 |
Correct |
85 ms |
17044 KB |
Output is correct |
8 |
Correct |
97 ms |
16988 KB |
Output is correct |
9 |
Correct |
117 ms |
17052 KB |
Output is correct |
10 |
Correct |
89 ms |
17040 KB |
Output is correct |
11 |
Correct |
113 ms |
16984 KB |
Output is correct |
12 |
Correct |
92 ms |
17052 KB |
Output is correct |
13 |
Correct |
4 ms |
16984 KB |
Output is correct |
14 |
Correct |
4 ms |
16988 KB |
Output is correct |
15 |
Correct |
3 ms |
16988 KB |
Output is correct |
16 |
Correct |
3 ms |
16984 KB |
Output is correct |
17 |
Correct |
4 ms |
16984 KB |
Output is correct |
18 |
Correct |
4 ms |
16988 KB |
Output is correct |
19 |
Correct |
3 ms |
17036 KB |
Output is correct |
20 |
Correct |
4 ms |
16988 KB |
Output is correct |
21 |
Correct |
4 ms |
16844 KB |
Output is correct |
22 |
Correct |
4 ms |
16988 KB |
Output is correct |
23 |
Correct |
4 ms |
16988 KB |
Output is correct |
24 |
Correct |
4 ms |
16988 KB |
Output is correct |
25 |
Correct |
4 ms |
16988 KB |
Output is correct |
26 |
Correct |
5 ms |
16988 KB |
Output is correct |
27 |
Correct |
4 ms |
16988 KB |
Output is correct |
28 |
Correct |
4 ms |
16984 KB |
Output is correct |
29 |
Correct |
4 ms |
16988 KB |
Output is correct |
30 |
Correct |
4 ms |
17056 KB |
Output is correct |
31 |
Correct |
4 ms |
16988 KB |
Output is correct |
32 |
Correct |
4 ms |
16988 KB |
Output is correct |
33 |
Correct |
4 ms |
16984 KB |
Output is correct |
34 |
Correct |
4 ms |
16988 KB |
Output is correct |
35 |
Correct |
4 ms |
17048 KB |
Output is correct |
36 |
Correct |
4 ms |
16988 KB |
Output is correct |
37 |
Correct |
5 ms |
16844 KB |
Output is correct |
38 |
Correct |
3 ms |
16984 KB |
Output is correct |
39 |
Correct |
5 ms |
17240 KB |
Output is correct |
40 |
Correct |
4 ms |
16856 KB |
Output is correct |
41 |
Correct |
5 ms |
16988 KB |
Output is correct |
42 |
Correct |
4 ms |
16988 KB |
Output is correct |
43 |
Correct |
5 ms |
16988 KB |
Output is correct |
44 |
Correct |
4 ms |
17040 KB |
Output is correct |
45 |
Correct |
5 ms |
16988 KB |
Output is correct |
46 |
Correct |
12 ms |
16988 KB |
Output is correct |
47 |
Correct |
19 ms |
16984 KB |
Output is correct |
48 |
Correct |
12 ms |
16988 KB |
Output is correct |
49 |
Correct |
12 ms |
16988 KB |
Output is correct |
50 |
Correct |
12 ms |
16988 KB |
Output is correct |
51 |
Correct |
88 ms |
16988 KB |
Output is correct |
52 |
Correct |
105 ms |
16984 KB |
Output is correct |
53 |
Correct |
124 ms |
17160 KB |
Output is correct |
54 |
Correct |
101 ms |
17156 KB |
Output is correct |
55 |
Correct |
5 ms |
17060 KB |
Output is correct |
56 |
Correct |
23 ms |
16988 KB |
Output is correct |
57 |
Correct |
4 ms |
17040 KB |
Output is correct |
58 |
Correct |
44 ms |
19748 KB |
Output is correct |
59 |
Correct |
45 ms |
19664 KB |
Output is correct |
60 |
Correct |
33 ms |
19036 KB |
Output is correct |
61 |
Correct |
61 ms |
19764 KB |
Output is correct |
62 |
Correct |
33 ms |
19036 KB |
Output is correct |
63 |
Correct |
49 ms |
19772 KB |
Output is correct |
64 |
Correct |
4 ms |
16988 KB |
Output is correct |
65 |
Correct |
3 ms |
16988 KB |
Output is correct |
66 |
Correct |
4 ms |
16988 KB |
Output is correct |
67 |
Correct |
3 ms |
16988 KB |
Output is correct |
68 |
Correct |
3 ms |
17044 KB |
Output is correct |
69 |
Correct |
3 ms |
16988 KB |
Output is correct |
70 |
Correct |
3 ms |
16988 KB |
Output is correct |
71 |
Correct |
3 ms |
16988 KB |
Output is correct |
72 |
Correct |
4 ms |
16988 KB |
Output is correct |
73 |
Correct |
4 ms |
16988 KB |
Output is correct |
74 |
Correct |
4 ms |
16988 KB |
Output is correct |
75 |
Correct |
3 ms |
16988 KB |
Output is correct |
76 |
Correct |
174 ms |
24444 KB |
Output is correct |
77 |
Correct |
178 ms |
23784 KB |
Output is correct |
78 |
Correct |
159 ms |
23884 KB |
Output is correct |
79 |
Correct |
137 ms |
24664 KB |
Output is correct |
80 |
Correct |
166 ms |
24372 KB |
Output is correct |
81 |
Correct |
176 ms |
24460 KB |
Output is correct |
82 |
Correct |
186 ms |
24400 KB |
Output is correct |
83 |
Correct |
4 ms |
16984 KB |
Output is correct |
84 |
Correct |
4 ms |
16988 KB |
Output is correct |
85 |
Correct |
4 ms |
16984 KB |
Output is correct |
86 |
Correct |
3 ms |
16988 KB |
Output is correct |
87 |
Correct |
4 ms |
16988 KB |
Output is correct |
88 |
Correct |
4 ms |
16988 KB |
Output is correct |
89 |
Correct |
4 ms |
16988 KB |
Output is correct |
90 |
Correct |
3 ms |
16988 KB |
Output is correct |
91 |
Correct |
4 ms |
16988 KB |
Output is correct |
92 |
Correct |
5 ms |
16988 KB |
Output is correct |
93 |
Correct |
3 ms |
16988 KB |
Output is correct |
94 |
Correct |
3 ms |
16988 KB |
Output is correct |
95 |
Correct |
4 ms |
16988 KB |
Output is correct |
96 |
Correct |
5 ms |
16984 KB |
Output is correct |
97 |
Correct |
3 ms |
17044 KB |
Output is correct |
98 |
Correct |
3 ms |
16988 KB |
Output is correct |
99 |
Correct |
3 ms |
16988 KB |
Output is correct |
100 |
Correct |
4 ms |
16988 KB |
Output is correct |
101 |
Correct |
4 ms |
16988 KB |
Output is correct |
102 |
Correct |
5 ms |
16984 KB |
Output is correct |
103 |
Correct |
284 ms |
26844 KB |
Output is correct |
104 |
Correct |
251 ms |
26008 KB |
Output is correct |
105 |
Correct |
294 ms |
26212 KB |
Output is correct |
106 |
Correct |
208 ms |
27020 KB |
Output is correct |
107 |
Correct |
207 ms |
26704 KB |
Output is correct |
108 |
Correct |
354 ms |
26588 KB |
Output is correct |
109 |
Correct |
297 ms |
26932 KB |
Output is correct |
110 |
Correct |
6 ms |
16844 KB |
Output is correct |
111 |
Correct |
6 ms |
16844 KB |
Output is correct |
112 |
Correct |
6 ms |
16988 KB |
Output is correct |
113 |
Correct |
6 ms |
16988 KB |
Output is correct |
114 |
Correct |
4 ms |
16988 KB |
Output is correct |
115 |
Correct |
280 ms |
28088 KB |
Output is correct |
116 |
Correct |
140 ms |
22056 KB |
Output is correct |
117 |
Correct |
179 ms |
21684 KB |
Output is correct |
118 |
Correct |
167 ms |
21840 KB |
Output is correct |
119 |
Correct |
347 ms |
27852 KB |
Output is correct |
120 |
Correct |
354 ms |
28468 KB |
Output is correct |
121 |
Correct |
389 ms |
28548 KB |
Output is correct |
122 |
Correct |
258 ms |
28756 KB |
Output is correct |
123 |
Correct |
251 ms |
28504 KB |
Output is correct |
124 |
Correct |
341 ms |
28564 KB |
Output is correct |
125 |
Correct |
365 ms |
28652 KB |
Output is correct |
126 |
Correct |
12 ms |
16984 KB |
Output is correct |
127 |
Correct |
12 ms |
16988 KB |
Output is correct |
128 |
Correct |
12 ms |
17064 KB |
Output is correct |
129 |
Correct |
12 ms |
17060 KB |
Output is correct |
130 |
Correct |
18 ms |
17060 KB |
Output is correct |
131 |
Correct |
17 ms |
16988 KB |
Output is correct |
132 |
Correct |
524 ms |
30536 KB |
Output is correct |
133 |
Correct |
470 ms |
30252 KB |
Output is correct |
134 |
Correct |
497 ms |
30552 KB |
Output is correct |
135 |
Correct |
497 ms |
30416 KB |
Output is correct |
136 |
Correct |
498 ms |
30652 KB |
Output is correct |
137 |
Correct |
429 ms |
29884 KB |
Output is correct |
138 |
Correct |
415 ms |
29864 KB |
Output is correct |
139 |
Correct |
386 ms |
30408 KB |
Output is correct |
140 |
Correct |
355 ms |
30288 KB |
Output is correct |
141 |
Correct |
445 ms |
30252 KB |
Output is correct |
142 |
Correct |
507 ms |
30672 KB |
Output is correct |