답안 #979018

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
979018 2024-05-10T06:18:09 Z abc864197532 Council (JOI23_council) C++17
100 / 100
554 ms 38808 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(x) x.begin(), x.end()
#define pii pair<int, int>
const int N = 300003, mod = 998244353;

int a[N], sum[20];

int main() {
    ios::sync_with_stdio(false), cin.tie(0);
    int n, m;
    cin >> n >> m;
    for (int i = 0; i < n; ++i) {
        for (int j = 0, x; j < m; ++j) {
            cin >> x;
            sum[j] += x;
            if (x) a[i] |= 1 << j;
        }
    }
    int res = 0;
    vector <int> b, c;
    for (int k = 0; k < m; ++k) {
        if (sum[k] == n / 2 + 1) {
            b.pb(1), c.pb(k);
        } else if (sum[k] == n / 2) {
            b.pb(2), c.pb(k);
        } else if (sum[k] >= n / 2) {
            res++;
        }
    }
    for (int i = 0; i < n; ++i) {
        int now = 0;
        for (int j = 0; j < c.size(); ++j) {
            if (~a[i] >> c[j] & 1) {
                now |= 1 << j;
            }
        }
        a[i] = now;
    }
    m = c.size();
    vector <array <int, 2>> dp(1 << m, {-1, -1});
    auto upd = [&](int s, int pos) {
        if (pos == dp[s][0] || pos == dp[s][1]) {
            return;
        }
        if (dp[s][0] == -1) {
            dp[s][0] = pos;
        } else if (dp[s][1] == -1) {
            dp[s][1] = pos;
        }
    };
    for (int i = 0; i < n; ++i) {
        upd(a[i], i);
    }
    for (int j = 0; j < m; ++j) {
        for (int s = 0; s < 1 << m; ++s) if (~s >> j & 1) {
            for (int i : {0, 1}) if (dp[s ^ (1 << j)][i] != -1) {
                upd(s, dp[s ^ (1 << j)][i]);
            }
        }
    }
    vector <pii> mx(1 << m, {0, -1}), smx(1 << m, {0, -1});
    for (int s = 0; s < 1 << m; ++s) {
        if (dp[s][0] != -1) {
            mx[s] = {__builtin_popcount(s), dp[s][0]};
        }
        if (dp[s][1] != -1) {
            smx[s] = {__builtin_popcount(s), dp[s][1]};
        }
    }
    auto upd2 = [&](int s, pii v) {
        if (mx[s].second == v.second) {
            mx[s] = max(mx[s], v);
        } else if (smx[s].second == v.second) {
            smx[s] = max(smx[s], v);
        } else {
            if (mx[s] < v) {
                smx[s] = mx[s], mx[s] = v;
            } else if (smx[s] < v) {
                smx[s] = v;
            }
        }
        if (mx[s] < smx[s]) {
            swap(mx[s], smx[s]);
        }
    };
    for (int s = 1; s < 1 << m; ++s) {
        for (int i = 0; i < m; ++i) if (s >> i & 1) {
            upd2(s, mx[s ^ (1 << i)]);
            upd2(s, smx[s ^ (1 << i)]);
        }
    }
    for (int i = 0; i < n; ++i) {
        int msk = 0;
        int cur = 0;
        for (int j = 0; j < m; ++j) {
            if (b[j] == 1) {
                if (a[i] >> j & 1) {
                    cur++;
                } else {
                    msk |= 1 << j;
                }
            } else {
                if (a[i] >> j & 1) {
                    msk |= 1 << j;
                }
            }
        }
        int ans;
        if (mx[msk].second == i) {
            ans = smx[msk].first;
        } else {
            ans = mx[msk].first;
        }
        int tans = 0;
        for (int j = 0; j < n; ++j) if (i ^ j) {
            tans = max(tans, __builtin_popcount(msk & a[j]));
        }
        cout << res + cur + ans << '\n';
    }
}

Compilation message

council.cpp: In function 'int main()':
council.cpp:35:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   35 |         for (int j = 0; j < c.size(); ++j) {
      |                         ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 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 138 ms 25088 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 432 KB Output is correct
10 Correct 193 ms 25084 KB Output is correct
11 Correct 250 ms 25088 KB Output is correct
12 Correct 273 ms 25328 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 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 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 0 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 348 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 460 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 600 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 412 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 2 ms 724 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 3 ms 856 KB Output is correct
45 Correct 3 ms 860 KB Output is correct
46 Correct 16 ms 3564 KB Output is correct
47 Correct 1 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 21 ms 3568 KB Output is correct
50 Correct 25 ms 3420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 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 138 ms 25088 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 432 KB Output is correct
10 Correct 193 ms 25084 KB Output is correct
11 Correct 250 ms 25088 KB Output is correct
12 Correct 273 ms 25328 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 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 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 0 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 348 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 460 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 600 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 412 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 2 ms 724 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 3 ms 856 KB Output is correct
45 Correct 3 ms 860 KB Output is correct
46 Correct 16 ms 3564 KB Output is correct
47 Correct 1 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 21 ms 3568 KB Output is correct
50 Correct 25 ms 3420 KB Output is correct
51 Correct 3 ms 600 KB Output is correct
52 Correct 3 ms 348 KB Output is correct
53 Correct 3 ms 604 KB Output is correct
54 Correct 273 ms 25224 KB Output is correct
55 Correct 1 ms 344 KB Output is correct
56 Correct 33 ms 3656 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 3300 KB Output is correct
3 Correct 38 ms 3156 KB Output is correct
4 Correct 27 ms 2652 KB Output is correct
5 Correct 41 ms 3156 KB Output is correct
6 Correct 31 ms 2648 KB Output is correct
7 Correct 47 ms 3292 KB Output is correct
8 Correct 0 ms 600 KB Output is correct
9 Correct 0 ms 348 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 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 3300 KB Output is correct
3 Correct 38 ms 3156 KB Output is correct
4 Correct 27 ms 2652 KB Output is correct
5 Correct 41 ms 3156 KB Output is correct
6 Correct 31 ms 2648 KB Output is correct
7 Correct 47 ms 3292 KB Output is correct
8 Correct 0 ms 600 KB Output is correct
9 Correct 0 ms 348 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 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 153 ms 7864 KB Output is correct
21 Correct 146 ms 7280 KB Output is correct
22 Correct 144 ms 7504 KB Output is correct
23 Correct 130 ms 8272 KB Output is correct
24 Correct 128 ms 7852 KB Output is correct
25 Correct 200 ms 7864 KB Output is correct
26 Correct 163 ms 8120 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 604 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 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 0 ms 344 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 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 1 ms 468 KB Output is correct
41 Correct 0 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 344 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 3300 KB Output is correct
3 Correct 38 ms 3156 KB Output is correct
4 Correct 27 ms 2652 KB Output is correct
5 Correct 41 ms 3156 KB Output is correct
6 Correct 31 ms 2648 KB Output is correct
7 Correct 47 ms 3292 KB Output is correct
8 Correct 0 ms 600 KB Output is correct
9 Correct 0 ms 348 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 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 153 ms 7864 KB Output is correct
21 Correct 146 ms 7280 KB Output is correct
22 Correct 144 ms 7504 KB Output is correct
23 Correct 130 ms 8272 KB Output is correct
24 Correct 128 ms 7852 KB Output is correct
25 Correct 200 ms 7864 KB Output is correct
26 Correct 163 ms 8120 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 604 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 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 0 ms 344 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 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 1 ms 468 KB Output is correct
41 Correct 0 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 344 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 215 ms 10604 KB Output is correct
48 Correct 209 ms 9816 KB Output is correct
49 Correct 198 ms 9812 KB Output is correct
50 Correct 186 ms 10636 KB Output is correct
51 Correct 168 ms 10328 KB Output is correct
52 Correct 187 ms 10324 KB Output is correct
53 Correct 227 ms 11084 KB Output is correct
54 Correct 3 ms 860 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 3 ms 860 KB Output is correct
58 Correct 3 ms 860 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 3300 KB Output is correct
3 Correct 38 ms 3156 KB Output is correct
4 Correct 27 ms 2652 KB Output is correct
5 Correct 41 ms 3156 KB Output is correct
6 Correct 31 ms 2648 KB Output is correct
7 Correct 47 ms 3292 KB Output is correct
8 Correct 0 ms 600 KB Output is correct
9 Correct 0 ms 348 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 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 153 ms 7864 KB Output is correct
21 Correct 146 ms 7280 KB Output is correct
22 Correct 144 ms 7504 KB Output is correct
23 Correct 130 ms 8272 KB Output is correct
24 Correct 128 ms 7852 KB Output is correct
25 Correct 200 ms 7864 KB Output is correct
26 Correct 163 ms 8120 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 0 ms 604 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 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 0 ms 344 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 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 1 ms 468 KB Output is correct
41 Correct 0 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 344 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 215 ms 10604 KB Output is correct
48 Correct 209 ms 9816 KB Output is correct
49 Correct 198 ms 9812 KB Output is correct
50 Correct 186 ms 10636 KB Output is correct
51 Correct 168 ms 10328 KB Output is correct
52 Correct 187 ms 10324 KB Output is correct
53 Correct 227 ms 11084 KB Output is correct
54 Correct 3 ms 860 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 3 ms 860 KB Output is correct
58 Correct 3 ms 860 KB Output is correct
59 Correct 243 ms 11856 KB Output is correct
60 Correct 135 ms 8108 KB Output is correct
61 Correct 138 ms 8392 KB Output is correct
62 Correct 147 ms 8564 KB Output is correct
63 Correct 251 ms 13060 KB Output is correct
64 Correct 280 ms 15060 KB Output is correct
65 Correct 279 ms 15184 KB Output is correct
66 Correct 204 ms 12364 KB Output is correct
67 Correct 196 ms 11960 KB Output is correct
68 Correct 229 ms 12264 KB Output is correct
69 Correct 295 ms 15444 KB Output is correct
70 Correct 16 ms 3420 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 21 ms 3572 KB Output is correct
74 Correct 24 ms 3704 KB Output is correct
75 Correct 34 ms 3672 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 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 138 ms 25088 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 432 KB Output is correct
10 Correct 193 ms 25084 KB Output is correct
11 Correct 250 ms 25088 KB Output is correct
12 Correct 273 ms 25328 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 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 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 0 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 348 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 460 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 600 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 412 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 2 ms 724 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 3 ms 856 KB Output is correct
45 Correct 3 ms 860 KB Output is correct
46 Correct 16 ms 3564 KB Output is correct
47 Correct 1 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 21 ms 3568 KB Output is correct
50 Correct 25 ms 3420 KB Output is correct
51 Correct 3 ms 600 KB Output is correct
52 Correct 3 ms 348 KB Output is correct
53 Correct 3 ms 604 KB Output is correct
54 Correct 273 ms 25224 KB Output is correct
55 Correct 1 ms 344 KB Output is correct
56 Correct 33 ms 3656 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 38 ms 3300 KB Output is correct
59 Correct 38 ms 3156 KB Output is correct
60 Correct 27 ms 2652 KB Output is correct
61 Correct 41 ms 3156 KB Output is correct
62 Correct 31 ms 2648 KB Output is correct
63 Correct 47 ms 3292 KB Output is correct
64 Correct 0 ms 600 KB Output is correct
65 Correct 0 ms 348 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 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 153 ms 7864 KB Output is correct
77 Correct 146 ms 7280 KB Output is correct
78 Correct 144 ms 7504 KB Output is correct
79 Correct 130 ms 8272 KB Output is correct
80 Correct 128 ms 7852 KB Output is correct
81 Correct 200 ms 7864 KB Output is correct
82 Correct 163 ms 8120 KB Output is correct
83 Correct 1 ms 348 KB Output is correct
84 Correct 0 ms 604 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 0 ms 344 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 0 ms 348 KB Output is correct
90 Correct 0 ms 344 KB Output is correct
91 Correct 0 ms 344 KB Output is correct
92 Correct 0 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 1 ms 468 KB Output is correct
97 Correct 0 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 344 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 215 ms 10604 KB Output is correct
104 Correct 209 ms 9816 KB Output is correct
105 Correct 198 ms 9812 KB Output is correct
106 Correct 186 ms 10636 KB Output is correct
107 Correct 168 ms 10328 KB Output is correct
108 Correct 187 ms 10324 KB Output is correct
109 Correct 227 ms 11084 KB Output is correct
110 Correct 3 ms 860 KB Output is correct
111 Correct 0 ms 348 KB Output is correct
112 Correct 0 ms 348 KB Output is correct
113 Correct 3 ms 860 KB Output is correct
114 Correct 3 ms 860 KB Output is correct
115 Correct 243 ms 11856 KB Output is correct
116 Correct 135 ms 8108 KB Output is correct
117 Correct 138 ms 8392 KB Output is correct
118 Correct 147 ms 8564 KB Output is correct
119 Correct 251 ms 13060 KB Output is correct
120 Correct 280 ms 15060 KB Output is correct
121 Correct 279 ms 15184 KB Output is correct
122 Correct 204 ms 12364 KB Output is correct
123 Correct 196 ms 11960 KB Output is correct
124 Correct 229 ms 12264 KB Output is correct
125 Correct 295 ms 15444 KB Output is correct
126 Correct 16 ms 3420 KB Output is correct
127 Correct 1 ms 348 KB Output is correct
128 Correct 0 ms 348 KB Output is correct
129 Correct 21 ms 3572 KB Output is correct
130 Correct 24 ms 3704 KB Output is correct
131 Correct 34 ms 3672 KB Output is correct
132 Correct 509 ms 38676 KB Output is correct
133 Correct 485 ms 38632 KB Output is correct
134 Correct 501 ms 38800 KB Output is correct
135 Correct 538 ms 38776 KB Output is correct
136 Correct 537 ms 38808 KB Output is correct
137 Correct 398 ms 25936 KB Output is correct
138 Correct 391 ms 25936 KB Output is correct
139 Correct 245 ms 14112 KB Output is correct
140 Correct 226 ms 13788 KB Output is correct
141 Correct 267 ms 13928 KB Output is correct
142 Correct 554 ms 38680 KB Output is correct