답안 #921569

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
921569 2024-02-04T06:51:41 Z vjudge1 Council (JOI23_council) C++17
100 / 100
914 ms 57696 KB
// I stand with PALESTINE




//#pragma GCC optimize("Ofast,O3")
//#pragma GCC target("avx,avx2")
#include "bits/stdc++.h"

using namespace std;
using ll = long long;

int btc(int a) { return __builtin_popcount(a); }

void solve() {
    int n, m;
    cin >> n >> m;
    vector a(n, vector(m, 0));
    vector<pair<int, int>> cnt(1 << m, make_pair(n, n));
    vector<int> bta(n + 1), have(m);
    auto upd = [&](int bt, int i) -> void {
        if (btc(bta[cnt[bt].first] & bt) < btc(bta[i] & bt)) cnt[bt] = make_pair(i, cnt[bt].first);
        else if (cnt[bt].first != i and btc(bta[cnt[bt].second] & bt) < btc(bta[i] & bt))
            cnt[bt].second = i;
    };
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> a[i][j];
            if (!a[i][j]) bta[i] |= 1 << j;
            have[j] += a[i][j];
        }
        upd(bta[i], i);
    }
    for (int bt = (1 << m) - 1; bt >= 0; bt--) {
        for (int j = 0; j < m; j++) {
            if (bt & (1 << j)) continue;
            upd(bt, cnt[bt | (1 << j)].first);
            upd(bt, cnt[bt | (1 << j)].second);
        }
    }
    for (int bt = 0; bt < (1 << m); bt++) {
        for (int j = 0; j < m; j++) {
            if (bt & (1 << j)) continue;
            upd(bt | (1 << j), cnt[bt].first);
            upd(bt | (1 << j), cnt[bt].second);
        }
    }
    for (int i = 0; i < n; i++) {
        int ans = 0, bt = 0;
        for (int j = 0; j < m; j++) {
            have[j] -= a[i][j];
            if (have[j] != n / 2) ans += have[j] > n / 2;
            else bt |= 1 << j;
            have[j] += a[i][j];
        }
//        int mx = 0;
//        for (int j = 0; j < n; j++) {
//            if (i == j) continue;
//            mx = max(mx, __builtin_popcount(bta[j] & bt));
//        }
//        ans += mx;
//        cout << ans << ' ' << bta[i] << ' ' << bt << ' ' << cnt[bt].first << ' ' << cnt[bt].second << endl;
//        cout << ans << ' ' << bta[i] << ' ' << __builtin_popcount(bta[i]) << endl;
        if (i == cnt[bt].first) ans += btc(bta[cnt[bt].second] & bt);
        else ans += btc( bta[cnt[bt].first] & bt);
        cout << ans << '\n';
    }
}

int main() {
    cin.tie(0)->sync_with_stdio(false);
#ifdef sunnatov
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    int q = 1;
//    cin >> q;
    while (q--)  {
        solve();
        cout << '\n';
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 329 ms 8444 KB Output is correct
6 Correct 288 ms 8540 KB Output is correct
7 Correct 312 ms 8540 KB Output is correct
8 Correct 327 ms 8536 KB Output is correct
9 Correct 356 ms 8536 KB Output is correct
10 Correct 316 ms 8540 KB Output is correct
11 Correct 345 ms 8536 KB Output is correct
12 Correct 357 ms 8540 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 600 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 4 ms 348 KB Output is correct
42 Correct 4 ms 348 KB Output is correct
43 Correct 5 ms 348 KB Output is correct
44 Correct 4 ms 460 KB Output is correct
45 Correct 4 ms 344 KB Output is correct
46 Correct 36 ms 1380 KB Output is correct
47 Correct 35 ms 1372 KB Output is correct
48 Correct 37 ms 1372 KB Output is correct
49 Correct 35 ms 1372 KB Output is correct
50 Correct 37 ms 1368 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 329 ms 8444 KB Output is correct
6 Correct 288 ms 8540 KB Output is correct
7 Correct 312 ms 8540 KB Output is correct
8 Correct 327 ms 8536 KB Output is correct
9 Correct 356 ms 8536 KB Output is correct
10 Correct 316 ms 8540 KB Output is correct
11 Correct 345 ms 8536 KB Output is correct
12 Correct 357 ms 8540 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 600 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 4 ms 348 KB Output is correct
42 Correct 4 ms 348 KB Output is correct
43 Correct 5 ms 348 KB Output is correct
44 Correct 4 ms 460 KB Output is correct
45 Correct 4 ms 344 KB Output is correct
46 Correct 36 ms 1380 KB Output is correct
47 Correct 35 ms 1372 KB Output is correct
48 Correct 37 ms 1372 KB Output is correct
49 Correct 35 ms 1372 KB Output is correct
50 Correct 37 ms 1368 KB Output is correct
51 Correct 286 ms 8796 KB Output is correct
52 Correct 335 ms 9044 KB Output is correct
53 Correct 347 ms 9048 KB Output is correct
54 Correct 366 ms 8796 KB Output is correct
55 Correct 2 ms 600 KB Output is correct
56 Correct 56 ms 1628 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 57 ms 18644 KB Output is correct
3 Correct 57 ms 19792 KB Output is correct
4 Correct 50 ms 19032 KB Output is correct
5 Correct 64 ms 19792 KB Output is correct
6 Correct 51 ms 19028 KB Output is correct
7 Correct 69 ms 19652 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 492 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 57 ms 18644 KB Output is correct
3 Correct 57 ms 19792 KB Output is correct
4 Correct 50 ms 19032 KB Output is correct
5 Correct 64 ms 19792 KB Output is correct
6 Correct 51 ms 19028 KB Output is correct
7 Correct 69 ms 19652 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 492 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 189 ms 29152 KB Output is correct
21 Correct 172 ms 28504 KB Output is correct
22 Correct 182 ms 28416 KB Output is correct
23 Correct 169 ms 29272 KB Output is correct
24 Correct 165 ms 29172 KB Output is correct
25 Correct 184 ms 29020 KB Output is correct
26 Correct 201 ms 29152 KB Output is correct
27 Correct 1 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 456 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 456 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 1 ms 452 KB Output is correct
43 Correct 1 ms 348 KB Output is correct
44 Correct 1 ms 348 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 57 ms 18644 KB Output is correct
3 Correct 57 ms 19792 KB Output is correct
4 Correct 50 ms 19032 KB Output is correct
5 Correct 64 ms 19792 KB Output is correct
6 Correct 51 ms 19028 KB Output is correct
7 Correct 69 ms 19652 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 492 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 189 ms 29152 KB Output is correct
21 Correct 172 ms 28504 KB Output is correct
22 Correct 182 ms 28416 KB Output is correct
23 Correct 169 ms 29272 KB Output is correct
24 Correct 165 ms 29172 KB Output is correct
25 Correct 184 ms 29020 KB Output is correct
26 Correct 201 ms 29152 KB Output is correct
27 Correct 1 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 456 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 456 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 1 ms 452 KB Output is correct
43 Correct 1 ms 348 KB Output is correct
44 Correct 1 ms 348 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 257 ms 36156 KB Output is correct
48 Correct 246 ms 35564 KB Output is correct
49 Correct 249 ms 35560 KB Output is correct
50 Correct 233 ms 36652 KB Output is correct
51 Correct 214 ms 36180 KB Output is correct
52 Correct 240 ms 36148 KB Output is correct
53 Correct 262 ms 36432 KB Output is correct
54 Correct 4 ms 600 KB Output is correct
55 Correct 4 ms 344 KB Output is correct
56 Correct 5 ms 348 KB Output is correct
57 Correct 4 ms 472 KB Output is correct
58 Correct 5 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 57 ms 18644 KB Output is correct
3 Correct 57 ms 19792 KB Output is correct
4 Correct 50 ms 19032 KB Output is correct
5 Correct 64 ms 19792 KB Output is correct
6 Correct 51 ms 19028 KB Output is correct
7 Correct 69 ms 19652 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 492 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 189 ms 29152 KB Output is correct
21 Correct 172 ms 28504 KB Output is correct
22 Correct 182 ms 28416 KB Output is correct
23 Correct 169 ms 29272 KB Output is correct
24 Correct 165 ms 29172 KB Output is correct
25 Correct 184 ms 29020 KB Output is correct
26 Correct 201 ms 29152 KB Output is correct
27 Correct 1 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 456 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 456 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 1 ms 452 KB Output is correct
43 Correct 1 ms 348 KB Output is correct
44 Correct 1 ms 348 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 257 ms 36156 KB Output is correct
48 Correct 246 ms 35564 KB Output is correct
49 Correct 249 ms 35560 KB Output is correct
50 Correct 233 ms 36652 KB Output is correct
51 Correct 214 ms 36180 KB Output is correct
52 Correct 240 ms 36148 KB Output is correct
53 Correct 262 ms 36432 KB Output is correct
54 Correct 4 ms 600 KB Output is correct
55 Correct 4 ms 344 KB Output is correct
56 Correct 5 ms 348 KB Output is correct
57 Correct 4 ms 472 KB Output is correct
58 Correct 5 ms 348 KB Output is correct
59 Correct 286 ms 42836 KB Output is correct
60 Correct 158 ms 17744 KB Output is correct
61 Correct 168 ms 18772 KB Output is correct
62 Correct 175 ms 19380 KB Output is correct
63 Correct 315 ms 42580 KB Output is correct
64 Correct 342 ms 43720 KB Output is correct
65 Correct 370 ms 43652 KB Output is correct
66 Correct 294 ms 44036 KB Output is correct
67 Correct 274 ms 43600 KB Output is correct
68 Correct 330 ms 43644 KB Output is correct
69 Correct 359 ms 44244 KB Output is correct
70 Correct 36 ms 1372 KB Output is correct
71 Correct 35 ms 1372 KB Output is correct
72 Correct 37 ms 1368 KB Output is correct
73 Correct 35 ms 1368 KB Output is correct
74 Correct 37 ms 1368 KB Output is correct
75 Correct 47 ms 1884 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 329 ms 8444 KB Output is correct
6 Correct 288 ms 8540 KB Output is correct
7 Correct 312 ms 8540 KB Output is correct
8 Correct 327 ms 8536 KB Output is correct
9 Correct 356 ms 8536 KB Output is correct
10 Correct 316 ms 8540 KB Output is correct
11 Correct 345 ms 8536 KB Output is correct
12 Correct 357 ms 8540 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 600 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 4 ms 348 KB Output is correct
42 Correct 4 ms 348 KB Output is correct
43 Correct 5 ms 348 KB Output is correct
44 Correct 4 ms 460 KB Output is correct
45 Correct 4 ms 344 KB Output is correct
46 Correct 36 ms 1380 KB Output is correct
47 Correct 35 ms 1372 KB Output is correct
48 Correct 37 ms 1372 KB Output is correct
49 Correct 35 ms 1372 KB Output is correct
50 Correct 37 ms 1368 KB Output is correct
51 Correct 286 ms 8796 KB Output is correct
52 Correct 335 ms 9044 KB Output is correct
53 Correct 347 ms 9048 KB Output is correct
54 Correct 366 ms 8796 KB Output is correct
55 Correct 2 ms 600 KB Output is correct
56 Correct 56 ms 1628 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 57 ms 18644 KB Output is correct
59 Correct 57 ms 19792 KB Output is correct
60 Correct 50 ms 19032 KB Output is correct
61 Correct 64 ms 19792 KB Output is correct
62 Correct 51 ms 19028 KB Output is correct
63 Correct 69 ms 19652 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 1 ms 348 KB Output is correct
68 Correct 1 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 1 ms 492 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 189 ms 29152 KB Output is correct
77 Correct 172 ms 28504 KB Output is correct
78 Correct 182 ms 28416 KB Output is correct
79 Correct 169 ms 29272 KB Output is correct
80 Correct 165 ms 29172 KB Output is correct
81 Correct 184 ms 29020 KB Output is correct
82 Correct 201 ms 29152 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 456 KB Output is correct
90 Correct 1 ms 348 KB Output is correct
91 Correct 1 ms 456 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 1 ms 344 KB Output is correct
97 Correct 1 ms 348 KB Output is correct
98 Correct 1 ms 452 KB Output is correct
99 Correct 1 ms 348 KB Output is correct
100 Correct 1 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 257 ms 36156 KB Output is correct
104 Correct 246 ms 35564 KB Output is correct
105 Correct 249 ms 35560 KB Output is correct
106 Correct 233 ms 36652 KB Output is correct
107 Correct 214 ms 36180 KB Output is correct
108 Correct 240 ms 36148 KB Output is correct
109 Correct 262 ms 36432 KB Output is correct
110 Correct 4 ms 600 KB Output is correct
111 Correct 4 ms 344 KB Output is correct
112 Correct 5 ms 348 KB Output is correct
113 Correct 4 ms 472 KB Output is correct
114 Correct 5 ms 348 KB Output is correct
115 Correct 286 ms 42836 KB Output is correct
116 Correct 158 ms 17744 KB Output is correct
117 Correct 168 ms 18772 KB Output is correct
118 Correct 175 ms 19380 KB Output is correct
119 Correct 315 ms 42580 KB Output is correct
120 Correct 342 ms 43720 KB Output is correct
121 Correct 370 ms 43652 KB Output is correct
122 Correct 294 ms 44036 KB Output is correct
123 Correct 274 ms 43600 KB Output is correct
124 Correct 330 ms 43644 KB Output is correct
125 Correct 359 ms 44244 KB Output is correct
126 Correct 36 ms 1372 KB Output is correct
127 Correct 35 ms 1372 KB Output is correct
128 Correct 37 ms 1368 KB Output is correct
129 Correct 35 ms 1368 KB Output is correct
130 Correct 37 ms 1368 KB Output is correct
131 Correct 47 ms 1884 KB Output is correct
132 Correct 735 ms 57696 KB Output is correct
133 Correct 752 ms 57540 KB Output is correct
134 Correct 733 ms 57468 KB Output is correct
135 Correct 746 ms 57544 KB Output is correct
136 Correct 743 ms 57540 KB Output is correct
137 Correct 534 ms 52816 KB Output is correct
138 Correct 523 ms 52816 KB Output is correct
139 Correct 574 ms 57680 KB Output is correct
140 Correct 610 ms 57328 KB Output is correct
141 Correct 753 ms 57352 KB Output is correct
142 Correct 914 ms 57212 KB Output is correct