답안 #794977

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
794977 2023-07-27T04:49:14 Z vjudge1 Council (JOI23_council) C++17
100 / 100
1734 ms 30516 KB
#include <bits/stdc++.h>

#define fi first
#define se second

const int N = 300200;
const int mod = 1e9 + 7;

using namespace std;

int n;
int m;
int a[N];
int c[20];
pair<int, int> d[1 << 20];
pair<int, int> f[1 << 20];

void comb(int mask, vector<pair<int, int>> v)
{
    v.push_back(d[mask]);
    v.push_back(f[mask]);
    sort(v.rbegin(), v.rend());

    d[mask] = v[0];
    f[mask] = {0, -2};
    for (int i = 1; i < v.size(); i++) {
        if (v[i].se != v[0].se) {
            f[mask] = v[i];
            break;
        }
    }
}

int main() {
    #ifdef zxc
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
    ios_base::sync_with_stdio(0);

    cin >> n >> m;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            int x;
            cin >> x;
            a[i] |= (x << j);
            c[j] += x;
        }
    }

    for (int i = 0; i < (1 << m); i++) {
        d[i] = {0, -1};
        f[i] = {0, -2};
    }
    for (int i = 0; i < n; i++) {
        int mask = a[i] ^ ((1 << m) - 1);
        comb(mask, {make_pair(__builtin_popcount(mask), i)});
    }
    for (int i = (1 << m) - 1; i > 0; i--) {
        for (int j = 0; j < m; j++) {
            if (i & (1 << j)) {
                d[i].fi -= 1;
                f[i].fi -= 1;
                comb(i ^ (1 << j), {d[i], f[i]});
                d[i].fi += 1;
                f[i].fi += 1;
            }
        }
    }
    for (int i = 0; i < (1 << m); i++) {
        for (int j = 0; j < m; j++) {
            if (i & (1 << j)) {
                continue;
            }
            comb(i ^ (1 << j), {d[i], f[i]});
        }
    }

    for (int i = 0; i < n; i++) {
        int mask = 0, res = 0;
        for (int j = 0; j < m; j++) {
            int g = (a[i] >> j) & 1;
            if (c[j] - g > n / 2) {
                res += 1;
            } else if (c[j] - g == n / 2) {
                mask |= (1 << j);
            }
        }

        cout << res + (d[mask].se == i ? f[mask].fi : d[mask].fi) << "\n";
    }
}

Compilation message

council.cpp: In function 'void comb(int, std::vector<std::pair<int, int> >)':
council.cpp:26:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |     for (int i = 1; i < v.size(); i++) {
      |                     ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 4 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1282 ms 16736 KB Output is correct
6 Correct 1259 ms 16728 KB Output is correct
7 Correct 1326 ms 16724 KB Output is correct
8 Correct 1347 ms 16724 KB Output is correct
9 Correct 1403 ms 16740 KB Output is correct
10 Correct 1342 ms 16740 KB Output is correct
11 Correct 1384 ms 16728 KB Output is correct
12 Correct 1374 ms 16724 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 0 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 0 ms 340 KB Output is correct
26 Correct 0 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 0 ms 340 KB Output is correct
36 Correct 0 ms 340 KB Output is correct
37 Correct 0 ms 224 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 15 ms 596 KB Output is correct
42 Correct 15 ms 596 KB Output is correct
43 Correct 16 ms 588 KB Output is correct
44 Correct 15 ms 468 KB Output is correct
45 Correct 15 ms 596 KB Output is correct
46 Correct 136 ms 2388 KB Output is correct
47 Correct 140 ms 2388 KB Output is correct
48 Correct 150 ms 2388 KB Output is correct
49 Correct 141 ms 2388 KB Output is correct
50 Correct 146 ms 2508 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 4 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1282 ms 16736 KB Output is correct
6 Correct 1259 ms 16728 KB Output is correct
7 Correct 1326 ms 16724 KB Output is correct
8 Correct 1347 ms 16724 KB Output is correct
9 Correct 1403 ms 16740 KB Output is correct
10 Correct 1342 ms 16740 KB Output is correct
11 Correct 1384 ms 16728 KB Output is correct
12 Correct 1374 ms 16724 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 0 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 0 ms 340 KB Output is correct
26 Correct 0 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 0 ms 340 KB Output is correct
36 Correct 0 ms 340 KB Output is correct
37 Correct 0 ms 224 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 15 ms 596 KB Output is correct
42 Correct 15 ms 596 KB Output is correct
43 Correct 16 ms 588 KB Output is correct
44 Correct 15 ms 468 KB Output is correct
45 Correct 15 ms 596 KB Output is correct
46 Correct 136 ms 2388 KB Output is correct
47 Correct 140 ms 2388 KB Output is correct
48 Correct 150 ms 2388 KB Output is correct
49 Correct 141 ms 2388 KB Output is correct
50 Correct 146 ms 2508 KB Output is correct
51 Correct 1288 ms 16736 KB Output is correct
52 Correct 1282 ms 16732 KB Output is correct
53 Correct 1324 ms 16740 KB Output is correct
54 Correct 1369 ms 16736 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 147 ms 2392 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 74 ms 2004 KB Output is correct
3 Correct 62 ms 2000 KB Output is correct
4 Correct 49 ms 2040 KB Output is correct
5 Correct 65 ms 2040 KB Output is correct
6 Correct 50 ms 2028 KB Output is correct
7 Correct 67 ms 2004 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 74 ms 2004 KB Output is correct
3 Correct 62 ms 2000 KB Output is correct
4 Correct 49 ms 2040 KB Output is correct
5 Correct 65 ms 2040 KB Output is correct
6 Correct 50 ms 2028 KB Output is correct
7 Correct 67 ms 2004 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 185 ms 2100 KB Output is correct
21 Correct 173 ms 2024 KB Output is correct
22 Correct 172 ms 1996 KB Output is correct
23 Correct 161 ms 2316 KB Output is correct
24 Correct 160 ms 2020 KB Output is correct
25 Correct 182 ms 2024 KB Output is correct
26 Correct 190 ms 8056 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 324 KB Output is correct
35 Correct 2 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 324 KB Output is correct
38 Correct 0 ms 340 KB Output is correct
39 Correct 1 ms 320 KB Output is correct
40 Correct 1 ms 332 KB Output is correct
41 Correct 1 ms 324 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 74 ms 2004 KB Output is correct
3 Correct 62 ms 2000 KB Output is correct
4 Correct 49 ms 2040 KB Output is correct
5 Correct 65 ms 2040 KB Output is correct
6 Correct 50 ms 2028 KB Output is correct
7 Correct 67 ms 2004 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 185 ms 2100 KB Output is correct
21 Correct 173 ms 2024 KB Output is correct
22 Correct 172 ms 1996 KB Output is correct
23 Correct 161 ms 2316 KB Output is correct
24 Correct 160 ms 2020 KB Output is correct
25 Correct 182 ms 2024 KB Output is correct
26 Correct 190 ms 8056 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 324 KB Output is correct
35 Correct 2 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 324 KB Output is correct
38 Correct 0 ms 340 KB Output is correct
39 Correct 1 ms 320 KB Output is correct
40 Correct 1 ms 332 KB Output is correct
41 Correct 1 ms 324 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 4 ms 408 KB Output is correct
47 Correct 265 ms 10488 KB Output is correct
48 Correct 242 ms 9784 KB Output is correct
49 Correct 243 ms 9804 KB Output is correct
50 Correct 228 ms 10744 KB Output is correct
51 Correct 225 ms 10536 KB Output is correct
52 Correct 255 ms 10572 KB Output is correct
53 Correct 271 ms 10712 KB Output is correct
54 Correct 15 ms 596 KB Output is correct
55 Correct 19 ms 596 KB Output is correct
56 Correct 17 ms 600 KB Output is correct
57 Correct 17 ms 468 KB Output is correct
58 Correct 16 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 74 ms 2004 KB Output is correct
3 Correct 62 ms 2000 KB Output is correct
4 Correct 49 ms 2040 KB Output is correct
5 Correct 65 ms 2040 KB Output is correct
6 Correct 50 ms 2028 KB Output is correct
7 Correct 67 ms 2004 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 185 ms 2100 KB Output is correct
21 Correct 173 ms 2024 KB Output is correct
22 Correct 172 ms 1996 KB Output is correct
23 Correct 161 ms 2316 KB Output is correct
24 Correct 160 ms 2020 KB Output is correct
25 Correct 182 ms 2024 KB Output is correct
26 Correct 190 ms 8056 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 1 ms 340 KB Output is correct
34 Correct 1 ms 324 KB Output is correct
35 Correct 2 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 324 KB Output is correct
38 Correct 0 ms 340 KB Output is correct
39 Correct 1 ms 320 KB Output is correct
40 Correct 1 ms 332 KB Output is correct
41 Correct 1 ms 324 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 4 ms 408 KB Output is correct
47 Correct 265 ms 10488 KB Output is correct
48 Correct 242 ms 9784 KB Output is correct
49 Correct 243 ms 9804 KB Output is correct
50 Correct 228 ms 10744 KB Output is correct
51 Correct 225 ms 10536 KB Output is correct
52 Correct 255 ms 10572 KB Output is correct
53 Correct 271 ms 10712 KB Output is correct
54 Correct 15 ms 596 KB Output is correct
55 Correct 19 ms 596 KB Output is correct
56 Correct 17 ms 600 KB Output is correct
57 Correct 17 ms 468 KB Output is correct
58 Correct 16 ms 604 KB Output is correct
59 Correct 330 ms 12748 KB Output is correct
60 Correct 260 ms 6896 KB Output is correct
61 Correct 266 ms 7196 KB Output is correct
62 Correct 269 ms 7484 KB Output is correct
63 Correct 353 ms 12392 KB Output is correct
64 Correct 443 ms 14004 KB Output is correct
65 Correct 444 ms 14128 KB Output is correct
66 Correct 378 ms 14312 KB Output is correct
67 Correct 384 ms 14024 KB Output is correct
68 Correct 423 ms 14064 KB Output is correct
69 Correct 439 ms 14412 KB Output is correct
70 Correct 144 ms 2388 KB Output is correct
71 Correct 140 ms 2388 KB Output is correct
72 Correct 147 ms 2388 KB Output is correct
73 Correct 142 ms 2388 KB Output is correct
74 Correct 144 ms 2388 KB Output is correct
75 Correct 147 ms 2504 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 4 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1282 ms 16736 KB Output is correct
6 Correct 1259 ms 16728 KB Output is correct
7 Correct 1326 ms 16724 KB Output is correct
8 Correct 1347 ms 16724 KB Output is correct
9 Correct 1403 ms 16740 KB Output is correct
10 Correct 1342 ms 16740 KB Output is correct
11 Correct 1384 ms 16728 KB Output is correct
12 Correct 1374 ms 16724 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 0 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 0 ms 340 KB Output is correct
26 Correct 0 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 0 ms 340 KB Output is correct
36 Correct 0 ms 340 KB Output is correct
37 Correct 0 ms 224 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 15 ms 596 KB Output is correct
42 Correct 15 ms 596 KB Output is correct
43 Correct 16 ms 588 KB Output is correct
44 Correct 15 ms 468 KB Output is correct
45 Correct 15 ms 596 KB Output is correct
46 Correct 136 ms 2388 KB Output is correct
47 Correct 140 ms 2388 KB Output is correct
48 Correct 150 ms 2388 KB Output is correct
49 Correct 141 ms 2388 KB Output is correct
50 Correct 146 ms 2508 KB Output is correct
51 Correct 1288 ms 16736 KB Output is correct
52 Correct 1282 ms 16732 KB Output is correct
53 Correct 1324 ms 16740 KB Output is correct
54 Correct 1369 ms 16736 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 147 ms 2392 KB Output is correct
57 Correct 0 ms 340 KB Output is correct
58 Correct 74 ms 2004 KB Output is correct
59 Correct 62 ms 2000 KB Output is correct
60 Correct 49 ms 2040 KB Output is correct
61 Correct 65 ms 2040 KB Output is correct
62 Correct 50 ms 2028 KB Output is correct
63 Correct 67 ms 2004 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 0 ms 212 KB Output is correct
67 Correct 0 ms 340 KB Output is correct
68 Correct 0 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 0 ms 340 KB Output is correct
71 Correct 0 ms 340 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 185 ms 2100 KB Output is correct
77 Correct 173 ms 2024 KB Output is correct
78 Correct 172 ms 1996 KB Output is correct
79 Correct 161 ms 2316 KB Output is correct
80 Correct 160 ms 2020 KB Output is correct
81 Correct 182 ms 2024 KB Output is correct
82 Correct 190 ms 8056 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 0 ms 340 KB Output is correct
85 Correct 0 ms 340 KB Output is correct
86 Correct 1 ms 340 KB Output is correct
87 Correct 1 ms 340 KB Output is correct
88 Correct 0 ms 340 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 1 ms 324 KB Output is correct
91 Correct 2 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 1 ms 324 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 1 ms 320 KB Output is correct
96 Correct 1 ms 332 KB Output is correct
97 Correct 1 ms 324 KB Output is correct
98 Correct 1 ms 340 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 340 KB Output is correct
101 Correct 1 ms 340 KB Output is correct
102 Correct 4 ms 408 KB Output is correct
103 Correct 265 ms 10488 KB Output is correct
104 Correct 242 ms 9784 KB Output is correct
105 Correct 243 ms 9804 KB Output is correct
106 Correct 228 ms 10744 KB Output is correct
107 Correct 225 ms 10536 KB Output is correct
108 Correct 255 ms 10572 KB Output is correct
109 Correct 271 ms 10712 KB Output is correct
110 Correct 15 ms 596 KB Output is correct
111 Correct 19 ms 596 KB Output is correct
112 Correct 17 ms 600 KB Output is correct
113 Correct 17 ms 468 KB Output is correct
114 Correct 16 ms 604 KB Output is correct
115 Correct 330 ms 12748 KB Output is correct
116 Correct 260 ms 6896 KB Output is correct
117 Correct 266 ms 7196 KB Output is correct
118 Correct 269 ms 7484 KB Output is correct
119 Correct 353 ms 12392 KB Output is correct
120 Correct 443 ms 14004 KB Output is correct
121 Correct 444 ms 14128 KB Output is correct
122 Correct 378 ms 14312 KB Output is correct
123 Correct 384 ms 14024 KB Output is correct
124 Correct 423 ms 14064 KB Output is correct
125 Correct 439 ms 14412 KB Output is correct
126 Correct 144 ms 2388 KB Output is correct
127 Correct 140 ms 2388 KB Output is correct
128 Correct 147 ms 2388 KB Output is correct
129 Correct 142 ms 2388 KB Output is correct
130 Correct 144 ms 2388 KB Output is correct
131 Correct 147 ms 2504 KB Output is correct
132 Correct 1613 ms 30504 KB Output is correct
133 Correct 1626 ms 30336 KB Output is correct
134 Correct 1608 ms 30508 KB Output is correct
135 Correct 1734 ms 30392 KB Output is correct
136 Correct 1681 ms 30504 KB Output is correct
137 Correct 985 ms 21476 KB Output is correct
138 Correct 960 ms 21712 KB Output is correct
139 Correct 1571 ms 30516 KB Output is correct
140 Correct 1553 ms 30120 KB Output is correct
141 Correct 1662 ms 30216 KB Output is correct
142 Correct 1700 ms 30504 KB Output is correct