Submission #741722

# Submission time Handle Problem Language Result Execution time Memory
741722 2023-05-14T16:48:28 Z stevancv Council (JOI23_council) C++14
100 / 100
693 ms 76052 KB
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define sp ' '
#define en '\n'
#define smin(a, b) a = min(a, b)
#define smax(a, b) a = max(a, b)
using namespace std;
const int N = 3e5 + 2;
const int K = 20;
const int M = 1 << K;
const ll linf = 1e18;
pair<int, int> mx[M][2], pom[M][2];
vector<int> pos[M];
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n, m;
    cin >> n >> m;
    int k = n / 2;
    vector<int> a(n), cnt(m);
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            int x; cin >> x;
            if (x == 1) {
                cnt[j] += 1;
                a[i] += 1 << j;
            }
        }
    }
    int www = 0;
    int p = 0, q = 0;
    for (int i = 0; i < m; i++) {
        if (cnt[i] >= k + 2) www++;
        if (cnt[i] == k + 1) p += (1 << i);
        if (cnt[i] == k) q += (1 << i);
    }
    for (int i = 0; i < n; i++) a[i] ^= p ^ q;
    if (n <= 3000) {
        for (int i = 0; i < n; i++) {
            int mx = 0;
            for (int j = 0; j < n; j++) if (i != j) {
                smax(mx, __builtin_popcount(p & (a[i] | a[j])) + __builtin_popcount(q & (a[i] & a[j])));
            }
            cout << mx + www << en;
        }
        return 0;
    }
    for (int i = 0; i < n; i++) {
        if (pos[a[i]].size() < 2) pos[a[i]].push_back(i);
    }
    for (int mask = M - 1; mask >= 0; mask--) {
        int o = __builtin_popcount(mask);
        pom[mask][0] = pom[mask][1] = {-1, -1};
        for (int i = 0; i < pos[mask].size(); i++) pom[mask][i] = {o, pos[mask][i]};
        for (int i = 0; i < K; i++) {
            int sm = (1 << i) ^ mask;
            if (!((1 << i) & mask)) {
                for (int j = 0; j < 2; j++) {
                    if (pom[sm][j].second != -1 && pom[sm][j].second != pom[mask][0].second) {
                        pom[mask][1] = pom[mask][0];
                        pom[mask][0] = {o, pom[sm][j].second};
                    }
                    else if (pom[sm][j].second != -1 && pom[sm][j].second != pom[mask][0].second) {
                        pom[mask][1] = {o, pom[sm][j].second};
                    }
                }
            }
        }
    }
    for (int mask = 0; mask < M; mask++) {
        int o = __builtin_popcount(mask);
        mx[mask][0] = pom[mask][0];
        mx[mask][1] = pom[mask][1];
        for (int i = 0; i < K; i++) {
            int smask = mask ^ (1 << i);
            for (int j = 0; j < 2; j++) {
                if (mx[smask][j] > mx[mask][0] && mx[smask][j].second != mx[mask][0].second) {
                    mx[mask][1] = mx[mask][0];
                    mx[mask][0] = mx[smask][j];
                }
                else if (mx[smask][j] > mx[mask][1] && mx[smask][j].second != mx[mask][0].second) mx[mask][1] = mx[smask][j];
            }
            if (smask == 0) break;
        }
    }
    for (int i = 0; i < n; i++) {
        int x = a[i] & q;
        int y = a[i] ^ p;
        y &= p;
        x |= y;
        int sol = www;
        sol += __builtin_popcount(a[i] & p);
        if (mx[x][0].second == i && mx[x][1].second != -1) sol += mx[x][1].first;
        else if (mx[x][0].second != -1) sol += mx[x][0].first;
        cout << sol << en;
    }
    return 0;
}

Compilation message

council.cpp: In function 'int main()':
council.cpp:56:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 |         for (int i = 0; i < pos[mask].size(); i++) pom[mask][i] = {o, pos[mask][i]};
      |                         ~~^~~~~~~~~~~~~~~~~~
council.cpp:73:13: warning: unused variable 'o' [-Wunused-variable]
   73 |         int o = __builtin_popcount(mask);
      |             ^
# Verdict Execution time Memory Grader output
1 Correct 14 ms 24916 KB Output is correct
2 Correct 13 ms 24916 KB Output is correct
3 Correct 13 ms 24916 KB Output is correct
4 Correct 14 ms 24952 KB Output is correct
5 Correct 14 ms 24928 KB Output is correct
6 Correct 14 ms 24912 KB Output is correct
7 Correct 14 ms 24916 KB Output is correct
8 Correct 14 ms 24840 KB Output is correct
9 Correct 16 ms 24916 KB Output is correct
10 Correct 13 ms 24856 KB Output is correct
11 Correct 13 ms 24948 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 13 ms 24908 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24912 KB Output is correct
16 Correct 14 ms 24952 KB Output is correct
17 Correct 14 ms 24916 KB Output is correct
18 Correct 13 ms 24916 KB Output is correct
19 Correct 13 ms 24916 KB Output is correct
20 Correct 12 ms 24948 KB Output is correct
21 Correct 12 ms 24916 KB Output is correct
22 Correct 12 ms 24916 KB Output is correct
23 Correct 13 ms 24916 KB Output is correct
24 Correct 13 ms 24892 KB Output is correct
25 Correct 13 ms 24916 KB Output is correct
26 Correct 14 ms 24916 KB Output is correct
27 Correct 13 ms 24916 KB Output is correct
28 Correct 13 ms 24916 KB Output is correct
29 Correct 13 ms 24916 KB Output is correct
30 Correct 13 ms 24932 KB Output is correct
31 Correct 13 ms 24916 KB Output is correct
32 Correct 13 ms 24916 KB Output is correct
33 Correct 12 ms 24896 KB Output is correct
34 Correct 14 ms 24916 KB Output is correct
35 Correct 14 ms 24860 KB Output is correct
36 Correct 14 ms 24916 KB Output is correct
37 Correct 13 ms 24916 KB Output is correct
38 Correct 13 ms 24940 KB Output is correct
39 Correct 14 ms 24892 KB Output is correct
40 Correct 13 ms 24916 KB Output is correct
41 Correct 13 ms 24916 KB Output is correct
42 Correct 13 ms 24920 KB Output is correct
43 Correct 13 ms 24884 KB Output is correct
44 Correct 13 ms 24916 KB Output is correct
45 Correct 14 ms 24856 KB Output is correct
46 Correct 14 ms 24916 KB Output is correct
47 Correct 13 ms 24916 KB Output is correct
48 Correct 13 ms 24916 KB Output is correct
49 Correct 18 ms 24952 KB Output is correct
50 Correct 13 ms 24900 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 24916 KB Output is correct
2 Correct 13 ms 24916 KB Output is correct
3 Correct 13 ms 24916 KB Output is correct
4 Correct 14 ms 24952 KB Output is correct
5 Correct 14 ms 24928 KB Output is correct
6 Correct 14 ms 24912 KB Output is correct
7 Correct 14 ms 24916 KB Output is correct
8 Correct 14 ms 24840 KB Output is correct
9 Correct 16 ms 24916 KB Output is correct
10 Correct 13 ms 24856 KB Output is correct
11 Correct 13 ms 24948 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 13 ms 24908 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24912 KB Output is correct
16 Correct 14 ms 24952 KB Output is correct
17 Correct 14 ms 24916 KB Output is correct
18 Correct 13 ms 24916 KB Output is correct
19 Correct 13 ms 24916 KB Output is correct
20 Correct 12 ms 24948 KB Output is correct
21 Correct 12 ms 24916 KB Output is correct
22 Correct 12 ms 24916 KB Output is correct
23 Correct 13 ms 24916 KB Output is correct
24 Correct 13 ms 24892 KB Output is correct
25 Correct 13 ms 24916 KB Output is correct
26 Correct 14 ms 24916 KB Output is correct
27 Correct 13 ms 24916 KB Output is correct
28 Correct 13 ms 24916 KB Output is correct
29 Correct 13 ms 24916 KB Output is correct
30 Correct 13 ms 24932 KB Output is correct
31 Correct 13 ms 24916 KB Output is correct
32 Correct 13 ms 24916 KB Output is correct
33 Correct 12 ms 24896 KB Output is correct
34 Correct 14 ms 24916 KB Output is correct
35 Correct 14 ms 24860 KB Output is correct
36 Correct 14 ms 24916 KB Output is correct
37 Correct 13 ms 24916 KB Output is correct
38 Correct 13 ms 24940 KB Output is correct
39 Correct 14 ms 24892 KB Output is correct
40 Correct 13 ms 24916 KB Output is correct
41 Correct 13 ms 24916 KB Output is correct
42 Correct 13 ms 24920 KB Output is correct
43 Correct 13 ms 24884 KB Output is correct
44 Correct 13 ms 24916 KB Output is correct
45 Correct 14 ms 24856 KB Output is correct
46 Correct 14 ms 24916 KB Output is correct
47 Correct 13 ms 24916 KB Output is correct
48 Correct 13 ms 24916 KB Output is correct
49 Correct 18 ms 24952 KB Output is correct
50 Correct 13 ms 24900 KB Output is correct
51 Correct 68 ms 24968 KB Output is correct
52 Correct 65 ms 24980 KB Output is correct
53 Correct 66 ms 25004 KB Output is correct
54 Correct 67 ms 25036 KB Output is correct
55 Correct 62 ms 24948 KB Output is correct
56 Correct 67 ms 24992 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 24920 KB Output is correct
2 Correct 322 ms 59612 KB Output is correct
3 Correct 318 ms 59556 KB Output is correct
4 Correct 321 ms 59632 KB Output is correct
5 Correct 333 ms 59628 KB Output is correct
6 Correct 316 ms 59668 KB Output is correct
7 Correct 330 ms 59960 KB Output is correct
8 Correct 13 ms 24860 KB Output is correct
9 Correct 14 ms 24916 KB Output is correct
10 Correct 13 ms 24916 KB Output is correct
11 Correct 13 ms 24864 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 14 ms 24884 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24844 KB Output is correct
16 Correct 14 ms 24916 KB Output is correct
17 Correct 61 ms 24960 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 24920 KB Output is correct
2 Correct 322 ms 59612 KB Output is correct
3 Correct 318 ms 59556 KB Output is correct
4 Correct 321 ms 59632 KB Output is correct
5 Correct 333 ms 59628 KB Output is correct
6 Correct 316 ms 59668 KB Output is correct
7 Correct 330 ms 59960 KB Output is correct
8 Correct 13 ms 24860 KB Output is correct
9 Correct 14 ms 24916 KB Output is correct
10 Correct 13 ms 24916 KB Output is correct
11 Correct 13 ms 24864 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 14 ms 24884 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24844 KB Output is correct
16 Correct 14 ms 24916 KB Output is correct
17 Correct 61 ms 24960 KB Output is correct
18 Correct 13 ms 24916 KB Output is correct
19 Correct 12 ms 24916 KB Output is correct
20 Correct 486 ms 59980 KB Output is correct
21 Correct 472 ms 61812 KB Output is correct
22 Correct 472 ms 62040 KB Output is correct
23 Correct 453 ms 62840 KB Output is correct
24 Correct 406 ms 62304 KB Output is correct
25 Correct 444 ms 62572 KB Output is correct
26 Correct 449 ms 62792 KB Output is correct
27 Correct 12 ms 24916 KB Output is correct
28 Correct 13 ms 24828 KB Output is correct
29 Correct 16 ms 24916 KB Output is correct
30 Correct 14 ms 24904 KB Output is correct
31 Correct 13 ms 24916 KB Output is correct
32 Correct 13 ms 24916 KB Output is correct
33 Correct 13 ms 24944 KB Output is correct
34 Correct 13 ms 24916 KB Output is correct
35 Correct 13 ms 24904 KB Output is correct
36 Correct 14 ms 24948 KB Output is correct
37 Correct 12 ms 24916 KB Output is correct
38 Correct 13 ms 24952 KB Output is correct
39 Correct 13 ms 24864 KB Output is correct
40 Correct 13 ms 24956 KB Output is correct
41 Correct 13 ms 24856 KB Output is correct
42 Correct 12 ms 24916 KB Output is correct
43 Correct 13 ms 24852 KB Output is correct
44 Correct 12 ms 24944 KB Output is correct
45 Correct 13 ms 24956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 24920 KB Output is correct
2 Correct 322 ms 59612 KB Output is correct
3 Correct 318 ms 59556 KB Output is correct
4 Correct 321 ms 59632 KB Output is correct
5 Correct 333 ms 59628 KB Output is correct
6 Correct 316 ms 59668 KB Output is correct
7 Correct 330 ms 59960 KB Output is correct
8 Correct 13 ms 24860 KB Output is correct
9 Correct 14 ms 24916 KB Output is correct
10 Correct 13 ms 24916 KB Output is correct
11 Correct 13 ms 24864 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 14 ms 24884 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24844 KB Output is correct
16 Correct 14 ms 24916 KB Output is correct
17 Correct 61 ms 24960 KB Output is correct
18 Correct 13 ms 24916 KB Output is correct
19 Correct 12 ms 24916 KB Output is correct
20 Correct 486 ms 59980 KB Output is correct
21 Correct 472 ms 61812 KB Output is correct
22 Correct 472 ms 62040 KB Output is correct
23 Correct 453 ms 62840 KB Output is correct
24 Correct 406 ms 62304 KB Output is correct
25 Correct 444 ms 62572 KB Output is correct
26 Correct 449 ms 62792 KB Output is correct
27 Correct 12 ms 24916 KB Output is correct
28 Correct 13 ms 24828 KB Output is correct
29 Correct 16 ms 24916 KB Output is correct
30 Correct 14 ms 24904 KB Output is correct
31 Correct 13 ms 24916 KB Output is correct
32 Correct 13 ms 24916 KB Output is correct
33 Correct 13 ms 24944 KB Output is correct
34 Correct 13 ms 24916 KB Output is correct
35 Correct 13 ms 24904 KB Output is correct
36 Correct 14 ms 24948 KB Output is correct
37 Correct 12 ms 24916 KB Output is correct
38 Correct 13 ms 24952 KB Output is correct
39 Correct 13 ms 24864 KB Output is correct
40 Correct 13 ms 24956 KB Output is correct
41 Correct 13 ms 24856 KB Output is correct
42 Correct 12 ms 24916 KB Output is correct
43 Correct 13 ms 24852 KB Output is correct
44 Correct 12 ms 24944 KB Output is correct
45 Correct 13 ms 24956 KB Output is correct
46 Correct 12 ms 24916 KB Output is correct
47 Correct 532 ms 63624 KB Output is correct
48 Correct 544 ms 63388 KB Output is correct
49 Correct 546 ms 63736 KB Output is correct
50 Correct 509 ms 64220 KB Output is correct
51 Correct 474 ms 63348 KB Output is correct
52 Correct 501 ms 63900 KB Output is correct
53 Correct 500 ms 64048 KB Output is correct
54 Correct 12 ms 24952 KB Output is correct
55 Correct 14 ms 24896 KB Output is correct
56 Correct 12 ms 24956 KB Output is correct
57 Correct 12 ms 24948 KB Output is correct
58 Correct 12 ms 24932 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 24920 KB Output is correct
2 Correct 322 ms 59612 KB Output is correct
3 Correct 318 ms 59556 KB Output is correct
4 Correct 321 ms 59632 KB Output is correct
5 Correct 333 ms 59628 KB Output is correct
6 Correct 316 ms 59668 KB Output is correct
7 Correct 330 ms 59960 KB Output is correct
8 Correct 13 ms 24860 KB Output is correct
9 Correct 14 ms 24916 KB Output is correct
10 Correct 13 ms 24916 KB Output is correct
11 Correct 13 ms 24864 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 14 ms 24884 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24844 KB Output is correct
16 Correct 14 ms 24916 KB Output is correct
17 Correct 61 ms 24960 KB Output is correct
18 Correct 13 ms 24916 KB Output is correct
19 Correct 12 ms 24916 KB Output is correct
20 Correct 486 ms 59980 KB Output is correct
21 Correct 472 ms 61812 KB Output is correct
22 Correct 472 ms 62040 KB Output is correct
23 Correct 453 ms 62840 KB Output is correct
24 Correct 406 ms 62304 KB Output is correct
25 Correct 444 ms 62572 KB Output is correct
26 Correct 449 ms 62792 KB Output is correct
27 Correct 12 ms 24916 KB Output is correct
28 Correct 13 ms 24828 KB Output is correct
29 Correct 16 ms 24916 KB Output is correct
30 Correct 14 ms 24904 KB Output is correct
31 Correct 13 ms 24916 KB Output is correct
32 Correct 13 ms 24916 KB Output is correct
33 Correct 13 ms 24944 KB Output is correct
34 Correct 13 ms 24916 KB Output is correct
35 Correct 13 ms 24904 KB Output is correct
36 Correct 14 ms 24948 KB Output is correct
37 Correct 12 ms 24916 KB Output is correct
38 Correct 13 ms 24952 KB Output is correct
39 Correct 13 ms 24864 KB Output is correct
40 Correct 13 ms 24956 KB Output is correct
41 Correct 13 ms 24856 KB Output is correct
42 Correct 12 ms 24916 KB Output is correct
43 Correct 13 ms 24852 KB Output is correct
44 Correct 12 ms 24944 KB Output is correct
45 Correct 13 ms 24956 KB Output is correct
46 Correct 12 ms 24916 KB Output is correct
47 Correct 532 ms 63624 KB Output is correct
48 Correct 544 ms 63388 KB Output is correct
49 Correct 546 ms 63736 KB Output is correct
50 Correct 509 ms 64220 KB Output is correct
51 Correct 474 ms 63348 KB Output is correct
52 Correct 501 ms 63900 KB Output is correct
53 Correct 500 ms 64048 KB Output is correct
54 Correct 12 ms 24952 KB Output is correct
55 Correct 14 ms 24896 KB Output is correct
56 Correct 12 ms 24956 KB Output is correct
57 Correct 12 ms 24948 KB Output is correct
58 Correct 12 ms 24932 KB Output is correct
59 Correct 531 ms 66020 KB Output is correct
60 Correct 401 ms 64172 KB Output is correct
61 Correct 401 ms 64500 KB Output is correct
62 Correct 410 ms 64956 KB Output is correct
63 Correct 571 ms 64880 KB Output is correct
64 Correct 599 ms 65280 KB Output is correct
65 Correct 593 ms 65484 KB Output is correct
66 Correct 498 ms 64716 KB Output is correct
67 Correct 516 ms 64800 KB Output is correct
68 Correct 574 ms 68636 KB Output is correct
69 Correct 560 ms 67972 KB Output is correct
70 Correct 11 ms 24916 KB Output is correct
71 Correct 13 ms 24952 KB Output is correct
72 Correct 14 ms 24940 KB Output is correct
73 Correct 12 ms 24916 KB Output is correct
74 Correct 13 ms 24920 KB Output is correct
75 Correct 67 ms 24952 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 24916 KB Output is correct
2 Correct 13 ms 24916 KB Output is correct
3 Correct 13 ms 24916 KB Output is correct
4 Correct 14 ms 24952 KB Output is correct
5 Correct 14 ms 24928 KB Output is correct
6 Correct 14 ms 24912 KB Output is correct
7 Correct 14 ms 24916 KB Output is correct
8 Correct 14 ms 24840 KB Output is correct
9 Correct 16 ms 24916 KB Output is correct
10 Correct 13 ms 24856 KB Output is correct
11 Correct 13 ms 24948 KB Output is correct
12 Correct 14 ms 24916 KB Output is correct
13 Correct 13 ms 24908 KB Output is correct
14 Correct 13 ms 24916 KB Output is correct
15 Correct 13 ms 24912 KB Output is correct
16 Correct 14 ms 24952 KB Output is correct
17 Correct 14 ms 24916 KB Output is correct
18 Correct 13 ms 24916 KB Output is correct
19 Correct 13 ms 24916 KB Output is correct
20 Correct 12 ms 24948 KB Output is correct
21 Correct 12 ms 24916 KB Output is correct
22 Correct 12 ms 24916 KB Output is correct
23 Correct 13 ms 24916 KB Output is correct
24 Correct 13 ms 24892 KB Output is correct
25 Correct 13 ms 24916 KB Output is correct
26 Correct 14 ms 24916 KB Output is correct
27 Correct 13 ms 24916 KB Output is correct
28 Correct 13 ms 24916 KB Output is correct
29 Correct 13 ms 24916 KB Output is correct
30 Correct 13 ms 24932 KB Output is correct
31 Correct 13 ms 24916 KB Output is correct
32 Correct 13 ms 24916 KB Output is correct
33 Correct 12 ms 24896 KB Output is correct
34 Correct 14 ms 24916 KB Output is correct
35 Correct 14 ms 24860 KB Output is correct
36 Correct 14 ms 24916 KB Output is correct
37 Correct 13 ms 24916 KB Output is correct
38 Correct 13 ms 24940 KB Output is correct
39 Correct 14 ms 24892 KB Output is correct
40 Correct 13 ms 24916 KB Output is correct
41 Correct 13 ms 24916 KB Output is correct
42 Correct 13 ms 24920 KB Output is correct
43 Correct 13 ms 24884 KB Output is correct
44 Correct 13 ms 24916 KB Output is correct
45 Correct 14 ms 24856 KB Output is correct
46 Correct 14 ms 24916 KB Output is correct
47 Correct 13 ms 24916 KB Output is correct
48 Correct 13 ms 24916 KB Output is correct
49 Correct 18 ms 24952 KB Output is correct
50 Correct 13 ms 24900 KB Output is correct
51 Correct 68 ms 24968 KB Output is correct
52 Correct 65 ms 24980 KB Output is correct
53 Correct 66 ms 25004 KB Output is correct
54 Correct 67 ms 25036 KB Output is correct
55 Correct 62 ms 24948 KB Output is correct
56 Correct 67 ms 24992 KB Output is correct
57 Correct 13 ms 24920 KB Output is correct
58 Correct 322 ms 59612 KB Output is correct
59 Correct 318 ms 59556 KB Output is correct
60 Correct 321 ms 59632 KB Output is correct
61 Correct 333 ms 59628 KB Output is correct
62 Correct 316 ms 59668 KB Output is correct
63 Correct 330 ms 59960 KB Output is correct
64 Correct 13 ms 24860 KB Output is correct
65 Correct 14 ms 24916 KB Output is correct
66 Correct 13 ms 24916 KB Output is correct
67 Correct 13 ms 24864 KB Output is correct
68 Correct 14 ms 24916 KB Output is correct
69 Correct 14 ms 24884 KB Output is correct
70 Correct 13 ms 24916 KB Output is correct
71 Correct 13 ms 24844 KB Output is correct
72 Correct 14 ms 24916 KB Output is correct
73 Correct 61 ms 24960 KB Output is correct
74 Correct 13 ms 24916 KB Output is correct
75 Correct 12 ms 24916 KB Output is correct
76 Correct 486 ms 59980 KB Output is correct
77 Correct 472 ms 61812 KB Output is correct
78 Correct 472 ms 62040 KB Output is correct
79 Correct 453 ms 62840 KB Output is correct
80 Correct 406 ms 62304 KB Output is correct
81 Correct 444 ms 62572 KB Output is correct
82 Correct 449 ms 62792 KB Output is correct
83 Correct 12 ms 24916 KB Output is correct
84 Correct 13 ms 24828 KB Output is correct
85 Correct 16 ms 24916 KB Output is correct
86 Correct 14 ms 24904 KB Output is correct
87 Correct 13 ms 24916 KB Output is correct
88 Correct 13 ms 24916 KB Output is correct
89 Correct 13 ms 24944 KB Output is correct
90 Correct 13 ms 24916 KB Output is correct
91 Correct 13 ms 24904 KB Output is correct
92 Correct 14 ms 24948 KB Output is correct
93 Correct 12 ms 24916 KB Output is correct
94 Correct 13 ms 24952 KB Output is correct
95 Correct 13 ms 24864 KB Output is correct
96 Correct 13 ms 24956 KB Output is correct
97 Correct 13 ms 24856 KB Output is correct
98 Correct 12 ms 24916 KB Output is correct
99 Correct 13 ms 24852 KB Output is correct
100 Correct 12 ms 24944 KB Output is correct
101 Correct 13 ms 24956 KB Output is correct
102 Correct 12 ms 24916 KB Output is correct
103 Correct 532 ms 63624 KB Output is correct
104 Correct 544 ms 63388 KB Output is correct
105 Correct 546 ms 63736 KB Output is correct
106 Correct 509 ms 64220 KB Output is correct
107 Correct 474 ms 63348 KB Output is correct
108 Correct 501 ms 63900 KB Output is correct
109 Correct 500 ms 64048 KB Output is correct
110 Correct 12 ms 24952 KB Output is correct
111 Correct 14 ms 24896 KB Output is correct
112 Correct 12 ms 24956 KB Output is correct
113 Correct 12 ms 24948 KB Output is correct
114 Correct 12 ms 24932 KB Output is correct
115 Correct 531 ms 66020 KB Output is correct
116 Correct 401 ms 64172 KB Output is correct
117 Correct 401 ms 64500 KB Output is correct
118 Correct 410 ms 64956 KB Output is correct
119 Correct 571 ms 64880 KB Output is correct
120 Correct 599 ms 65280 KB Output is correct
121 Correct 593 ms 65484 KB Output is correct
122 Correct 498 ms 64716 KB Output is correct
123 Correct 516 ms 64800 KB Output is correct
124 Correct 574 ms 68636 KB Output is correct
125 Correct 560 ms 67972 KB Output is correct
126 Correct 11 ms 24916 KB Output is correct
127 Correct 13 ms 24952 KB Output is correct
128 Correct 14 ms 24940 KB Output is correct
129 Correct 12 ms 24916 KB Output is correct
130 Correct 13 ms 24920 KB Output is correct
131 Correct 67 ms 24952 KB Output is correct
132 Correct 578 ms 73140 KB Output is correct
133 Correct 622 ms 73704 KB Output is correct
134 Correct 597 ms 74136 KB Output is correct
135 Correct 693 ms 72524 KB Output is correct
136 Correct 666 ms 70704 KB Output is correct
137 Correct 665 ms 69092 KB Output is correct
138 Correct 655 ms 71200 KB Output is correct
139 Correct 504 ms 67400 KB Output is correct
140 Correct 538 ms 66456 KB Output is correct
141 Correct 629 ms 74180 KB Output is correct
142 Correct 642 ms 76052 KB Output is correct