답안 #931899

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
931899 2024-02-22T14:19:53 Z alextodoran Council (JOI23_council) C++17
100 / 100
511 ms 51964 KB
/**
 _  _   __  _ _ _  _  _ _
 |a  ||t  ||o    d | |o  |
| __    _| | _ | __|  _ |
| __ |/_  | __  /__\ / _\|

**/

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const int N_MAX = 300000;
const int M_MAX = 20;

int N, M;
bool vote[N_MAX][M_MAX];
int total[M_MAX];

struct Nirvana {
    int max1, max1i;
    int max2, max2i;
};

Nirvana max (const Nirvana &a, const Nirvana &b) {
    Nirvana c;
    c.max1 = max(a.max1, b.max1);
    c.max1i = (c.max1 == a.max1 ? a.max1i : b.max1i);
    c.max2 = 0; c.max2i = 0;
    if (a.max1 > c.max2 && a.max1i != c.max1i) {
        c.max2 = a.max1; c.max2i = a.max1i;
    }
    if (b.max1 > c.max2 && b.max1i != c.max1i) {
        c.max2 = b.max1; c.max2i = b.max1i;
    }
    if (a.max2 > c.max2 && a.max2i != c.max1i) {
        c.max2 = a.max2; c.max2i = a.max2i;
    }
    if (b.max2 > c.max2 && b.max2i != c.max1i) {
        c.max2 = b.max2; c.max2i = b.max2i;
    }
    return c;
}

Nirvana dp1[1 << M_MAX];
Nirvana dp2[1 << M_MAX];

int main () {
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    cin >> N >> M;
    for (int i = 0; i < N; i++) {
        int mask = 0;
        for (int j = 0; j < M; j++) {
            cin >> vote[i][j];
            mask ^= (!vote[i][j] << j);
            total[j] += vote[i][j];
        }
        dp1[mask] = max(dp1[mask], Nirvana{1, i, 0, 0});
    }
    for (int j = 0; j < M; j++) {
        int bit = (1 << j);
        for (int mask = bit; mask < (1 << M); mask = ((mask + 1) | bit)) {
            dp1[mask ^ bit] = max(dp1[mask ^ bit], dp1[mask]);
        }
    }
    for (int mask = 0; mask < (1 << M); mask++) {
        int cnt = __builtin_popcount(mask);
        if (dp1[mask].max1 == 1) {
            dp2[mask].max1 = cnt; dp2[mask].max1i = dp1[mask].max1i;
        }
        if (dp1[mask].max2 == 1) {
            dp2[mask].max2 = cnt; dp2[mask].max2i = dp1[mask].max2i;
        }
    }
    for (int j = 0; j < M; j++) {
        int bit = (1 << j);
        for (int mask = bit; mask < (1 << M); mask = ((mask + 1) | bit)) {
            dp2[mask] = max(dp2[mask], dp2[mask ^ bit]);
        }
    }
    for (int i = 0; i < N; i++) {
        int cnt_ok = 0;
        int mask_bonus = 0;
        for (int j = 0; j < M; j++) {
            if ((total[j] - vote[i][j] - 1) * 2 > N - 2) {
                cnt_ok++;
            } else if ((total[j] - vote[i][j] - 0) * 2 > N - 2) {
                mask_bonus ^= (1 << j);
            }
        }
        Nirvana a = dp2[mask_bonus];
        cout << cnt_ok + (a.max1i != i ? a.max1 : a.max2) << "\n";
    }

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 1 ms 2396 KB Output is correct
3 Correct 0 ms 2396 KB Output is correct
4 Correct 1 ms 2396 KB Output is correct
5 Correct 98 ms 33448 KB Output is correct
6 Correct 81 ms 33360 KB Output is correct
7 Correct 94 ms 33404 KB Output is correct
8 Correct 97 ms 33620 KB Output is correct
9 Correct 113 ms 33360 KB Output is correct
10 Correct 95 ms 33364 KB Output is correct
11 Correct 105 ms 33644 KB Output is correct
12 Correct 116 ms 33364 KB Output is correct
13 Correct 1 ms 2392 KB Output is correct
14 Correct 0 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 1 ms 2396 KB Output is correct
22 Correct 1 ms 2396 KB Output is correct
23 Correct 1 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2396 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2392 KB Output is correct
33 Correct 1 ms 2648 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 2 ms 2908 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 2 ms 4956 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 10 ms 6800 KB Output is correct
47 Correct 10 ms 6748 KB Output is correct
48 Correct 11 ms 6744 KB Output is correct
49 Correct 10 ms 6748 KB Output is correct
50 Correct 11 ms 6748 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 1 ms 2396 KB Output is correct
3 Correct 0 ms 2396 KB Output is correct
4 Correct 1 ms 2396 KB Output is correct
5 Correct 98 ms 33448 KB Output is correct
6 Correct 81 ms 33360 KB Output is correct
7 Correct 94 ms 33404 KB Output is correct
8 Correct 97 ms 33620 KB Output is correct
9 Correct 113 ms 33360 KB Output is correct
10 Correct 95 ms 33364 KB Output is correct
11 Correct 105 ms 33644 KB Output is correct
12 Correct 116 ms 33364 KB Output is correct
13 Correct 1 ms 2392 KB Output is correct
14 Correct 0 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 1 ms 2396 KB Output is correct
22 Correct 1 ms 2396 KB Output is correct
23 Correct 1 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2396 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2392 KB Output is correct
33 Correct 1 ms 2648 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 2 ms 2908 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 2 ms 4956 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 10 ms 6800 KB Output is correct
47 Correct 10 ms 6748 KB Output is correct
48 Correct 11 ms 6744 KB Output is correct
49 Correct 10 ms 6748 KB Output is correct
50 Correct 11 ms 6748 KB Output is correct
51 Correct 86 ms 33360 KB Output is correct
52 Correct 97 ms 33360 KB Output is correct
53 Correct 126 ms 33576 KB Output is correct
54 Correct 146 ms 33572 KB Output is correct
55 Correct 1 ms 2392 KB Output is correct
56 Correct 18 ms 6916 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 47 ms 8604 KB Output is correct
3 Correct 43 ms 8660 KB Output is correct
4 Correct 34 ms 8796 KB Output is correct
5 Correct 47 ms 8596 KB Output is correct
6 Correct 33 ms 8692 KB Output is correct
7 Correct 48 ms 8572 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 2396 KB Output is correct
11 Correct 1 ms 2396 KB Output is correct
12 Correct 1 ms 2484 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 1 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 47 ms 8604 KB Output is correct
3 Correct 43 ms 8660 KB Output is correct
4 Correct 34 ms 8796 KB Output is correct
5 Correct 47 ms 8596 KB Output is correct
6 Correct 33 ms 8692 KB Output is correct
7 Correct 48 ms 8572 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 2396 KB Output is correct
11 Correct 1 ms 2396 KB Output is correct
12 Correct 1 ms 2484 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 1 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 171 ms 8788 KB Output is correct
21 Correct 160 ms 8784 KB Output is correct
22 Correct 157 ms 8788 KB Output is correct
23 Correct 167 ms 9040 KB Output is correct
24 Correct 148 ms 8664 KB Output is correct
25 Correct 175 ms 9040 KB Output is correct
26 Correct 177 ms 8664 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 1 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2392 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 1 ms 2392 KB Output is correct
42 Correct 1 ms 2396 KB Output is correct
43 Correct 1 ms 2396 KB Output is correct
44 Correct 1 ms 2396 KB Output is correct
45 Correct 1 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 47 ms 8604 KB Output is correct
3 Correct 43 ms 8660 KB Output is correct
4 Correct 34 ms 8796 KB Output is correct
5 Correct 47 ms 8596 KB Output is correct
6 Correct 33 ms 8692 KB Output is correct
7 Correct 48 ms 8572 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 2396 KB Output is correct
11 Correct 1 ms 2396 KB Output is correct
12 Correct 1 ms 2484 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 1 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 171 ms 8788 KB Output is correct
21 Correct 160 ms 8784 KB Output is correct
22 Correct 157 ms 8788 KB Output is correct
23 Correct 167 ms 9040 KB Output is correct
24 Correct 148 ms 8664 KB Output is correct
25 Correct 175 ms 9040 KB Output is correct
26 Correct 177 ms 8664 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 1 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2392 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 1 ms 2392 KB Output is correct
42 Correct 1 ms 2396 KB Output is correct
43 Correct 1 ms 2396 KB Output is correct
44 Correct 1 ms 2396 KB Output is correct
45 Correct 1 ms 2396 KB Output is correct
46 Correct 1 ms 2396 KB Output is correct
47 Correct 243 ms 11224 KB Output is correct
48 Correct 215 ms 9040 KB Output is correct
49 Correct 219 ms 8968 KB Output is correct
50 Correct 229 ms 9556 KB Output is correct
51 Correct 209 ms 17880 KB Output is correct
52 Correct 234 ms 19280 KB Output is correct
53 Correct 245 ms 19536 KB Output is correct
54 Correct 2 ms 2908 KB Output is correct
55 Correct 2 ms 4956 KB Output is correct
56 Correct 3 ms 5016 KB Output is correct
57 Correct 2 ms 4956 KB Output is correct
58 Correct 2 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 47 ms 8604 KB Output is correct
3 Correct 43 ms 8660 KB Output is correct
4 Correct 34 ms 8796 KB Output is correct
5 Correct 47 ms 8596 KB Output is correct
6 Correct 33 ms 8692 KB Output is correct
7 Correct 48 ms 8572 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 2396 KB Output is correct
11 Correct 1 ms 2396 KB Output is correct
12 Correct 1 ms 2484 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 1 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 171 ms 8788 KB Output is correct
21 Correct 160 ms 8784 KB Output is correct
22 Correct 157 ms 8788 KB Output is correct
23 Correct 167 ms 9040 KB Output is correct
24 Correct 148 ms 8664 KB Output is correct
25 Correct 175 ms 9040 KB Output is correct
26 Correct 177 ms 8664 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 1 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2392 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 1 ms 2392 KB Output is correct
42 Correct 1 ms 2396 KB Output is correct
43 Correct 1 ms 2396 KB Output is correct
44 Correct 1 ms 2396 KB Output is correct
45 Correct 1 ms 2396 KB Output is correct
46 Correct 1 ms 2396 KB Output is correct
47 Correct 243 ms 11224 KB Output is correct
48 Correct 215 ms 9040 KB Output is correct
49 Correct 219 ms 8968 KB Output is correct
50 Correct 229 ms 9556 KB Output is correct
51 Correct 209 ms 17880 KB Output is correct
52 Correct 234 ms 19280 KB Output is correct
53 Correct 245 ms 19536 KB Output is correct
54 Correct 2 ms 2908 KB Output is correct
55 Correct 2 ms 4956 KB Output is correct
56 Correct 3 ms 5016 KB Output is correct
57 Correct 2 ms 4956 KB Output is correct
58 Correct 2 ms 4956 KB Output is correct
59 Correct 277 ms 21692 KB Output is correct
60 Correct 127 ms 14916 KB Output is correct
61 Correct 134 ms 15188 KB Output is correct
62 Correct 147 ms 15696 KB Output is correct
63 Correct 270 ms 21304 KB Output is correct
64 Correct 299 ms 22864 KB Output is correct
65 Correct 293 ms 22956 KB Output is correct
66 Correct 285 ms 23160 KB Output is correct
67 Correct 261 ms 22960 KB Output is correct
68 Correct 294 ms 22864 KB Output is correct
69 Correct 314 ms 23240 KB Output is correct
70 Correct 10 ms 6748 KB Output is correct
71 Correct 10 ms 6624 KB Output is correct
72 Correct 11 ms 6748 KB Output is correct
73 Correct 10 ms 7000 KB Output is correct
74 Correct 11 ms 6748 KB Output is correct
75 Correct 18 ms 6836 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 1 ms 2396 KB Output is correct
3 Correct 0 ms 2396 KB Output is correct
4 Correct 1 ms 2396 KB Output is correct
5 Correct 98 ms 33448 KB Output is correct
6 Correct 81 ms 33360 KB Output is correct
7 Correct 94 ms 33404 KB Output is correct
8 Correct 97 ms 33620 KB Output is correct
9 Correct 113 ms 33360 KB Output is correct
10 Correct 95 ms 33364 KB Output is correct
11 Correct 105 ms 33644 KB Output is correct
12 Correct 116 ms 33364 KB Output is correct
13 Correct 1 ms 2392 KB Output is correct
14 Correct 0 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 1 ms 2396 KB Output is correct
22 Correct 1 ms 2396 KB Output is correct
23 Correct 1 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2396 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2392 KB Output is correct
33 Correct 1 ms 2648 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 2 ms 2908 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 2 ms 4956 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 10 ms 6800 KB Output is correct
47 Correct 10 ms 6748 KB Output is correct
48 Correct 11 ms 6744 KB Output is correct
49 Correct 10 ms 6748 KB Output is correct
50 Correct 11 ms 6748 KB Output is correct
51 Correct 86 ms 33360 KB Output is correct
52 Correct 97 ms 33360 KB Output is correct
53 Correct 126 ms 33576 KB Output is correct
54 Correct 146 ms 33572 KB Output is correct
55 Correct 1 ms 2392 KB Output is correct
56 Correct 18 ms 6916 KB Output is correct
57 Correct 1 ms 2396 KB Output is correct
58 Correct 47 ms 8604 KB Output is correct
59 Correct 43 ms 8660 KB Output is correct
60 Correct 34 ms 8796 KB Output is correct
61 Correct 47 ms 8596 KB Output is correct
62 Correct 33 ms 8692 KB Output is correct
63 Correct 48 ms 8572 KB Output is correct
64 Correct 1 ms 2396 KB Output is correct
65 Correct 0 ms 2396 KB Output is correct
66 Correct 1 ms 2396 KB Output is correct
67 Correct 1 ms 2396 KB Output is correct
68 Correct 1 ms 2484 KB Output is correct
69 Correct 1 ms 2396 KB Output is correct
70 Correct 1 ms 2396 KB Output is correct
71 Correct 0 ms 2396 KB Output is correct
72 Correct 1 ms 2396 KB Output is correct
73 Correct 1 ms 2396 KB Output is correct
74 Correct 1 ms 2396 KB Output is correct
75 Correct 1 ms 2396 KB Output is correct
76 Correct 171 ms 8788 KB Output is correct
77 Correct 160 ms 8784 KB Output is correct
78 Correct 157 ms 8788 KB Output is correct
79 Correct 167 ms 9040 KB Output is correct
80 Correct 148 ms 8664 KB Output is correct
81 Correct 175 ms 9040 KB Output is correct
82 Correct 177 ms 8664 KB Output is correct
83 Correct 1 ms 2396 KB Output is correct
84 Correct 1 ms 2396 KB Output is correct
85 Correct 1 ms 2396 KB Output is correct
86 Correct 1 ms 2392 KB Output is correct
87 Correct 1 ms 2396 KB Output is correct
88 Correct 1 ms 2396 KB Output is correct
89 Correct 1 ms 2396 KB Output is correct
90 Correct 1 ms 2392 KB Output is correct
91 Correct 1 ms 2396 KB Output is correct
92 Correct 1 ms 2396 KB Output is correct
93 Correct 1 ms 2396 KB Output is correct
94 Correct 1 ms 2396 KB Output is correct
95 Correct 1 ms 2396 KB Output is correct
96 Correct 1 ms 2396 KB Output is correct
97 Correct 1 ms 2392 KB Output is correct
98 Correct 1 ms 2396 KB Output is correct
99 Correct 1 ms 2396 KB Output is correct
100 Correct 1 ms 2396 KB Output is correct
101 Correct 1 ms 2396 KB Output is correct
102 Correct 1 ms 2396 KB Output is correct
103 Correct 243 ms 11224 KB Output is correct
104 Correct 215 ms 9040 KB Output is correct
105 Correct 219 ms 8968 KB Output is correct
106 Correct 229 ms 9556 KB Output is correct
107 Correct 209 ms 17880 KB Output is correct
108 Correct 234 ms 19280 KB Output is correct
109 Correct 245 ms 19536 KB Output is correct
110 Correct 2 ms 2908 KB Output is correct
111 Correct 2 ms 4956 KB Output is correct
112 Correct 3 ms 5016 KB Output is correct
113 Correct 2 ms 4956 KB Output is correct
114 Correct 2 ms 4956 KB Output is correct
115 Correct 277 ms 21692 KB Output is correct
116 Correct 127 ms 14916 KB Output is correct
117 Correct 134 ms 15188 KB Output is correct
118 Correct 147 ms 15696 KB Output is correct
119 Correct 270 ms 21304 KB Output is correct
120 Correct 299 ms 22864 KB Output is correct
121 Correct 293 ms 22956 KB Output is correct
122 Correct 285 ms 23160 KB Output is correct
123 Correct 261 ms 22960 KB Output is correct
124 Correct 294 ms 22864 KB Output is correct
125 Correct 314 ms 23240 KB Output is correct
126 Correct 10 ms 6748 KB Output is correct
127 Correct 10 ms 6624 KB Output is correct
128 Correct 11 ms 6748 KB Output is correct
129 Correct 10 ms 7000 KB Output is correct
130 Correct 11 ms 6748 KB Output is correct
131 Correct 18 ms 6836 KB Output is correct
132 Correct 480 ms 51700 KB Output is correct
133 Correct 450 ms 51372 KB Output is correct
134 Correct 473 ms 51540 KB Output is correct
135 Correct 498 ms 51600 KB Output is correct
136 Correct 480 ms 51540 KB Output is correct
137 Correct 392 ms 36548 KB Output is correct
138 Correct 387 ms 36692 KB Output is correct
139 Correct 403 ms 51540 KB Output is correct
140 Correct 389 ms 51348 KB Output is correct
141 Correct 461 ms 51368 KB Output is correct
142 Correct 511 ms 51964 KB Output is correct