답안 #922111

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
922111 2024-02-05T05:36:21 Z The_Samurai Council (JOI23_council) C++17
100 / 100
832 ms 57956 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 348 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 328 ms 8648 KB Output is correct
6 Correct 301 ms 8540 KB Output is correct
7 Correct 310 ms 8540 KB Output is correct
8 Correct 342 ms 8540 KB Output is correct
9 Correct 361 ms 8796 KB Output is correct
10 Correct 316 ms 8540 KB Output is correct
11 Correct 342 ms 8540 KB Output is correct
12 Correct 364 ms 8540 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 372 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 408 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 512 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 0 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 344 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 604 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 344 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 472 KB Output is correct
42 Correct 4 ms 348 KB Output is correct
43 Correct 5 ms 472 KB Output is correct
44 Correct 5 ms 348 KB Output is correct
45 Correct 5 ms 348 KB Output is correct
46 Correct 36 ms 1528 KB Output is correct
47 Correct 35 ms 1368 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 1372 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 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 328 ms 8648 KB Output is correct
6 Correct 301 ms 8540 KB Output is correct
7 Correct 310 ms 8540 KB Output is correct
8 Correct 342 ms 8540 KB Output is correct
9 Correct 361 ms 8796 KB Output is correct
10 Correct 316 ms 8540 KB Output is correct
11 Correct 342 ms 8540 KB Output is correct
12 Correct 364 ms 8540 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 372 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 408 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 512 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 0 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 344 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 604 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 344 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 472 KB Output is correct
42 Correct 4 ms 348 KB Output is correct
43 Correct 5 ms 472 KB Output is correct
44 Correct 5 ms 348 KB Output is correct
45 Correct 5 ms 348 KB Output is correct
46 Correct 36 ms 1528 KB Output is correct
47 Correct 35 ms 1368 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 1372 KB Output is correct
51 Correct 308 ms 9156 KB Output is correct
52 Correct 355 ms 9140 KB Output is correct
53 Correct 365 ms 9156 KB Output is correct
54 Correct 363 ms 9312 KB Output is correct
55 Correct 1 ms 600 KB Output is correct
56 Correct 45 ms 1884 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 63 ms 19796 KB Output is correct
3 Correct 57 ms 19600 KB Output is correct
4 Correct 50 ms 19024 KB Output is correct
5 Correct 63 ms 19792 KB Output is correct
6 Correct 50 ms 19084 KB Output is correct
7 Correct 68 ms 19792 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 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 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 63 ms 19796 KB Output is correct
3 Correct 57 ms 19600 KB Output is correct
4 Correct 50 ms 19024 KB Output is correct
5 Correct 63 ms 19792 KB Output is correct
6 Correct 50 ms 19084 KB Output is correct
7 Correct 68 ms 19792 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 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 1 ms 604 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 460 KB Output is correct
20 Correct 212 ms 29060 KB Output is correct
21 Correct 188 ms 28520 KB Output is correct
22 Correct 176 ms 28620 KB Output is correct
23 Correct 164 ms 29400 KB Output is correct
24 Correct 154 ms 29012 KB Output is correct
25 Correct 191 ms 29412 KB Output is correct
26 Correct 191 ms 29128 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 708 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 1 ms 348 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 0 ms 348 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 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 1 ms 348 KB Output is correct
2 Correct 63 ms 19796 KB Output is correct
3 Correct 57 ms 19600 KB Output is correct
4 Correct 50 ms 19024 KB Output is correct
5 Correct 63 ms 19792 KB Output is correct
6 Correct 50 ms 19084 KB Output is correct
7 Correct 68 ms 19792 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 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 1 ms 604 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 460 KB Output is correct
20 Correct 212 ms 29060 KB Output is correct
21 Correct 188 ms 28520 KB Output is correct
22 Correct 176 ms 28620 KB Output is correct
23 Correct 164 ms 29400 KB Output is correct
24 Correct 154 ms 29012 KB Output is correct
25 Correct 191 ms 29412 KB Output is correct
26 Correct 191 ms 29128 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 708 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 1 ms 348 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 0 ms 348 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 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 2 ms 344 KB Output is correct
47 Correct 261 ms 36304 KB Output is correct
48 Correct 234 ms 35668 KB Output is correct
49 Correct 234 ms 35704 KB Output is correct
50 Correct 216 ms 36688 KB Output is correct
51 Correct 203 ms 36212 KB Output is correct
52 Correct 253 ms 36460 KB Output is correct
53 Correct 261 ms 36544 KB Output is correct
54 Correct 5 ms 600 KB Output is correct
55 Correct 4 ms 348 KB Output is correct
56 Correct 5 ms 344 KB Output is correct
57 Correct 6 ms 348 KB Output is correct
58 Correct 4 ms 468 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 63 ms 19796 KB Output is correct
3 Correct 57 ms 19600 KB Output is correct
4 Correct 50 ms 19024 KB Output is correct
5 Correct 63 ms 19792 KB Output is correct
6 Correct 50 ms 19084 KB Output is correct
7 Correct 68 ms 19792 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 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 1 ms 604 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 460 KB Output is correct
20 Correct 212 ms 29060 KB Output is correct
21 Correct 188 ms 28520 KB Output is correct
22 Correct 176 ms 28620 KB Output is correct
23 Correct 164 ms 29400 KB Output is correct
24 Correct 154 ms 29012 KB Output is correct
25 Correct 191 ms 29412 KB Output is correct
26 Correct 191 ms 29128 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 708 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 1 ms 348 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 0 ms 348 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 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 2 ms 344 KB Output is correct
47 Correct 261 ms 36304 KB Output is correct
48 Correct 234 ms 35668 KB Output is correct
49 Correct 234 ms 35704 KB Output is correct
50 Correct 216 ms 36688 KB Output is correct
51 Correct 203 ms 36212 KB Output is correct
52 Correct 253 ms 36460 KB Output is correct
53 Correct 261 ms 36544 KB Output is correct
54 Correct 5 ms 600 KB Output is correct
55 Correct 4 ms 348 KB Output is correct
56 Correct 5 ms 344 KB Output is correct
57 Correct 6 ms 348 KB Output is correct
58 Correct 4 ms 468 KB Output is correct
59 Correct 284 ms 42836 KB Output is correct
60 Correct 161 ms 17556 KB Output is correct
61 Correct 167 ms 18820 KB Output is correct
62 Correct 172 ms 19508 KB Output is correct
63 Correct 311 ms 42580 KB Output is correct
64 Correct 343 ms 43548 KB Output is correct
65 Correct 344 ms 43732 KB Output is correct
66 Correct 275 ms 43860 KB Output is correct
67 Correct 272 ms 43672 KB Output is correct
68 Correct 339 ms 43672 KB Output is correct
69 Correct 413 ms 44172 KB Output is correct
70 Correct 37 ms 1368 KB Output is correct
71 Correct 35 ms 1368 KB Output is correct
72 Correct 37 ms 1372 KB Output is correct
73 Correct 35 ms 1368 KB Output is correct
74 Correct 39 ms 1372 KB Output is correct
75 Correct 49 ms 2136 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 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 328 ms 8648 KB Output is correct
6 Correct 301 ms 8540 KB Output is correct
7 Correct 310 ms 8540 KB Output is correct
8 Correct 342 ms 8540 KB Output is correct
9 Correct 361 ms 8796 KB Output is correct
10 Correct 316 ms 8540 KB Output is correct
11 Correct 342 ms 8540 KB Output is correct
12 Correct 364 ms 8540 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 372 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 408 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 512 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 0 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 344 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 604 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 344 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 472 KB Output is correct
42 Correct 4 ms 348 KB Output is correct
43 Correct 5 ms 472 KB Output is correct
44 Correct 5 ms 348 KB Output is correct
45 Correct 5 ms 348 KB Output is correct
46 Correct 36 ms 1528 KB Output is correct
47 Correct 35 ms 1368 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 1372 KB Output is correct
51 Correct 308 ms 9156 KB Output is correct
52 Correct 355 ms 9140 KB Output is correct
53 Correct 365 ms 9156 KB Output is correct
54 Correct 363 ms 9312 KB Output is correct
55 Correct 1 ms 600 KB Output is correct
56 Correct 45 ms 1884 KB Output is correct
57 Correct 1 ms 348 KB Output is correct
58 Correct 63 ms 19796 KB Output is correct
59 Correct 57 ms 19600 KB Output is correct
60 Correct 50 ms 19024 KB Output is correct
61 Correct 63 ms 19792 KB Output is correct
62 Correct 50 ms 19084 KB Output is correct
63 Correct 68 ms 19792 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 ms 344 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 0 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 460 KB Output is correct
76 Correct 212 ms 29060 KB Output is correct
77 Correct 188 ms 28520 KB Output is correct
78 Correct 176 ms 28620 KB Output is correct
79 Correct 164 ms 29400 KB Output is correct
80 Correct 154 ms 29012 KB Output is correct
81 Correct 191 ms 29412 KB Output is correct
82 Correct 191 ms 29128 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 708 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 1 ms 348 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 0 ms 348 KB Output is correct
96 Correct 0 ms 344 KB Output is correct
97 Correct 1 ms 348 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 0 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 2 ms 344 KB Output is correct
103 Correct 261 ms 36304 KB Output is correct
104 Correct 234 ms 35668 KB Output is correct
105 Correct 234 ms 35704 KB Output is correct
106 Correct 216 ms 36688 KB Output is correct
107 Correct 203 ms 36212 KB Output is correct
108 Correct 253 ms 36460 KB Output is correct
109 Correct 261 ms 36544 KB Output is correct
110 Correct 5 ms 600 KB Output is correct
111 Correct 4 ms 348 KB Output is correct
112 Correct 5 ms 344 KB Output is correct
113 Correct 6 ms 348 KB Output is correct
114 Correct 4 ms 468 KB Output is correct
115 Correct 284 ms 42836 KB Output is correct
116 Correct 161 ms 17556 KB Output is correct
117 Correct 167 ms 18820 KB Output is correct
118 Correct 172 ms 19508 KB Output is correct
119 Correct 311 ms 42580 KB Output is correct
120 Correct 343 ms 43548 KB Output is correct
121 Correct 344 ms 43732 KB Output is correct
122 Correct 275 ms 43860 KB Output is correct
123 Correct 272 ms 43672 KB Output is correct
124 Correct 339 ms 43672 KB Output is correct
125 Correct 413 ms 44172 KB Output is correct
126 Correct 37 ms 1368 KB Output is correct
127 Correct 35 ms 1368 KB Output is correct
128 Correct 37 ms 1372 KB Output is correct
129 Correct 35 ms 1368 KB Output is correct
130 Correct 39 ms 1372 KB Output is correct
131 Correct 49 ms 2136 KB Output is correct
132 Correct 753 ms 57580 KB Output is correct
133 Correct 715 ms 57540 KB Output is correct
134 Correct 751 ms 57596 KB Output is correct
135 Correct 747 ms 57600 KB Output is correct
136 Correct 770 ms 57956 KB Output is correct
137 Correct 525 ms 52712 KB Output is correct
138 Correct 534 ms 53144 KB Output is correct
139 Correct 570 ms 57572 KB Output is correct
140 Correct 659 ms 57332 KB Output is correct
141 Correct 755 ms 57324 KB Output is correct
142 Correct 832 ms 57504 KB Output is correct