Submission #795317

# Submission time Handle Problem Language Result Execution time Memory
795317 2023-07-27T08:20:24 Z vjudge1 Council (JOI23_council) C++17
100 / 100
1575 ms 92068 KB
#include<bits/stdc++.h>

using namespace std;
using ll = long long;

const int N = 300010;
const int M = 20;

int n, m;

int a[N];
int pr[(1 << M)][5];
vector<int> v[(1 << M)];

void add(int msk, int i) {
    if((int)v[msk].size() == 2) return;
    if(v[msk].empty() || v[msk].back() != i) 
        v[msk].push_back(i);
}


int func(int msk, int i) {
    return __builtin_popcount((msk & a[i]));
}
void add1(int msk, int i) {
    if(pr[msk][0] == i || pr[msk][1] == i) return;
    pr[msk][2] = i;
    if(func(msk, pr[msk][2]) < func(msk, pr[msk][1])) 
        swap(pr[msk][1], pr[msk][2]);
    if(func(msk, pr[msk][1]) < func(msk, pr[msk][0])) 
        swap(pr[msk][0], pr[msk][1]);
    if(func(msk, pr[msk][2]) < func(msk, pr[msk][1])) 
        swap(pr[msk][1], pr[msk][2]);
} 

void print(int x) {
    for(int j = 0; j < m; j++) 
        cout << ((x >> j) & 1);
    cout << '\n';
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin >> n >> m;
    vector<int> cnt(m);
    for(int i = 0; i < n; i++) {
        for(int j = 0; j < m; j++) {
            bool bt;
            cin >> bt;
            if(bt) {
                a[i] |= (1 << j);
                cnt[j]++;
            }
        }
    }
    if(n <= 3000) {
        for(int i = 0; i < n; i++) {
            for(int k = 0; k < m; k++) 
                if(a[i] >> k & 1) 
                    cnt[k]--;
            int ans = 0;
            for(int j = 0; j < n; j++) {
                if(i == j) continue;
                int kol = 0;
                for(int k = 0; k < m; k++) {
                    if(cnt[k] - (a[j] >> k & 1) >= n / 2)
                        kol++;
                }
                ans = max(ans, kol);
            }
            for(int k = 0; k < m; k++) 
                if(a[i] >> k & 1) 
                    cnt[k]++;
            cout << ans << '\n';
        }
        return 0;
    }
    
    for(int i = 0; i < n; i++) 
        add((((1 << m) - 1) ^ a[i]), i);
    for(int i = 0; i < m; i++) for(int msk = 0; msk < (1 << m); msk++) {
        if(~msk >> i & 1) {
            for(int x : v[msk + (1 << i)])
                add(msk, x);
        }
    }
    for(int msk = 0; msk < (1 << m); msk++) {
        pr[msk][0] = 0; pr[msk][1] = 1; pr[msk][2] = 2;
        for(int x : v[msk]) 
            add1(msk, x);
    }
    
    for(int i = 0; i < m; i++) for(int msk = (1 << m) - 1; msk >= 0; msk--) {
        if(msk >> i & 1) {
            for(int c : pr[msk - (1 << i)]) 
                add1(msk, c);
        }
    }
    // for(int msk = 0; msk < (1 << m); msk++) {
    //     pr[msk][0] = 0; pr[msk][1] = 1;
    //     for(int x = msk; x > 0; x = ((x - 1) & msk)) {
    //         for(int c : v[x]) {
    //             add1(msk, c);
    //         }
    //     }
    // }
    for(int i = 0; i < n; i++) {
        int msk = 0, ans = 0;
        for(int j = 0; j < m; j++) {
            int x = cnt[j] - (a[i] >> j & 1);
            if(x >= n / 2) ans++;
            if(x == n / 2) 
                msk |= (1 << j);
        }
        int k = pr[msk][(pr[msk][0] == i)];
        ans -= func(msk, k); 
        cout << ans << '\n';
    }
}
# Verdict Execution time Memory Grader output
1 Correct 11 ms 24908 KB Output is correct
2 Correct 11 ms 24916 KB Output is correct
3 Correct 10 ms 24916 KB Output is correct
4 Correct 13 ms 24916 KB Output is correct
5 Correct 10 ms 24916 KB Output is correct
6 Correct 13 ms 24968 KB Output is correct
7 Correct 10 ms 24916 KB Output is correct
8 Correct 10 ms 24916 KB Output is correct
9 Correct 12 ms 24916 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 10 ms 24912 KB Output is correct
12 Correct 12 ms 24932 KB Output is correct
13 Correct 12 ms 24916 KB Output is correct
14 Correct 12 ms 24844 KB Output is correct
15 Correct 10 ms 24916 KB Output is correct
16 Correct 10 ms 24916 KB Output is correct
17 Correct 10 ms 24916 KB Output is correct
18 Correct 10 ms 24884 KB Output is correct
19 Correct 13 ms 24840 KB Output is correct
20 Correct 10 ms 24916 KB Output is correct
21 Correct 14 ms 24916 KB Output is correct
22 Correct 12 ms 24892 KB Output is correct
23 Correct 11 ms 24904 KB Output is correct
24 Correct 14 ms 24848 KB Output is correct
25 Correct 12 ms 24916 KB Output is correct
26 Correct 12 ms 24936 KB Output is correct
27 Correct 14 ms 24916 KB Output is correct
28 Correct 15 ms 24916 KB Output is correct
29 Correct 14 ms 24976 KB Output is correct
30 Correct 14 ms 24916 KB Output is correct
31 Correct 13 ms 24944 KB Output is correct
32 Correct 12 ms 24848 KB Output is correct
33 Correct 10 ms 24916 KB Output is correct
34 Correct 12 ms 24944 KB Output is correct
35 Correct 11 ms 24916 KB Output is correct
36 Correct 11 ms 24880 KB Output is correct
37 Correct 12 ms 24920 KB Output is correct
38 Correct 12 ms 24844 KB Output is correct
39 Correct 13 ms 24960 KB Output is correct
40 Correct 15 ms 24900 KB Output is correct
41 Correct 13 ms 24964 KB Output is correct
42 Correct 13 ms 24864 KB Output is correct
43 Correct 12 ms 24864 KB Output is correct
44 Correct 12 ms 24916 KB Output is correct
45 Correct 13 ms 24836 KB Output is correct
46 Correct 13 ms 24936 KB Output is correct
47 Correct 15 ms 24952 KB Output is correct
48 Correct 14 ms 24916 KB Output is correct
49 Correct 13 ms 24876 KB Output is correct
50 Correct 14 ms 24952 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 24908 KB Output is correct
2 Correct 11 ms 24916 KB Output is correct
3 Correct 10 ms 24916 KB Output is correct
4 Correct 13 ms 24916 KB Output is correct
5 Correct 10 ms 24916 KB Output is correct
6 Correct 13 ms 24968 KB Output is correct
7 Correct 10 ms 24916 KB Output is correct
8 Correct 10 ms 24916 KB Output is correct
9 Correct 12 ms 24916 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 10 ms 24912 KB Output is correct
12 Correct 12 ms 24932 KB Output is correct
13 Correct 12 ms 24916 KB Output is correct
14 Correct 12 ms 24844 KB Output is correct
15 Correct 10 ms 24916 KB Output is correct
16 Correct 10 ms 24916 KB Output is correct
17 Correct 10 ms 24916 KB Output is correct
18 Correct 10 ms 24884 KB Output is correct
19 Correct 13 ms 24840 KB Output is correct
20 Correct 10 ms 24916 KB Output is correct
21 Correct 14 ms 24916 KB Output is correct
22 Correct 12 ms 24892 KB Output is correct
23 Correct 11 ms 24904 KB Output is correct
24 Correct 14 ms 24848 KB Output is correct
25 Correct 12 ms 24916 KB Output is correct
26 Correct 12 ms 24936 KB Output is correct
27 Correct 14 ms 24916 KB Output is correct
28 Correct 15 ms 24916 KB Output is correct
29 Correct 14 ms 24976 KB Output is correct
30 Correct 14 ms 24916 KB Output is correct
31 Correct 13 ms 24944 KB Output is correct
32 Correct 12 ms 24848 KB Output is correct
33 Correct 10 ms 24916 KB Output is correct
34 Correct 12 ms 24944 KB Output is correct
35 Correct 11 ms 24916 KB Output is correct
36 Correct 11 ms 24880 KB Output is correct
37 Correct 12 ms 24920 KB Output is correct
38 Correct 12 ms 24844 KB Output is correct
39 Correct 13 ms 24960 KB Output is correct
40 Correct 15 ms 24900 KB Output is correct
41 Correct 13 ms 24964 KB Output is correct
42 Correct 13 ms 24864 KB Output is correct
43 Correct 12 ms 24864 KB Output is correct
44 Correct 12 ms 24916 KB Output is correct
45 Correct 13 ms 24836 KB Output is correct
46 Correct 13 ms 24936 KB Output is correct
47 Correct 15 ms 24952 KB Output is correct
48 Correct 14 ms 24916 KB Output is correct
49 Correct 13 ms 24876 KB Output is correct
50 Correct 14 ms 24952 KB Output is correct
51 Correct 192 ms 24968 KB Output is correct
52 Correct 187 ms 24936 KB Output is correct
53 Correct 185 ms 24960 KB Output is correct
54 Correct 214 ms 24956 KB Output is correct
55 Correct 39 ms 24972 KB Output is correct
56 Correct 167 ms 24916 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 24956 KB Output is correct
2 Correct 71 ms 26672 KB Output is correct
3 Correct 67 ms 25440 KB Output is correct
4 Correct 42 ms 26680 KB Output is correct
5 Correct 62 ms 26700 KB Output is correct
6 Correct 53 ms 26664 KB Output is correct
7 Correct 82 ms 26684 KB Output is correct
8 Correct 13 ms 24956 KB Output is correct
9 Correct 11 ms 24836 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 16 ms 24836 KB Output is correct
12 Correct 13 ms 24948 KB Output is correct
13 Correct 10 ms 24916 KB Output is correct
14 Correct 9 ms 24916 KB Output is correct
15 Correct 9 ms 24916 KB Output is correct
16 Correct 13 ms 24900 KB Output is correct
17 Correct 46 ms 24956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 24956 KB Output is correct
2 Correct 71 ms 26672 KB Output is correct
3 Correct 67 ms 25440 KB Output is correct
4 Correct 42 ms 26680 KB Output is correct
5 Correct 62 ms 26700 KB Output is correct
6 Correct 53 ms 26664 KB Output is correct
7 Correct 82 ms 26684 KB Output is correct
8 Correct 13 ms 24956 KB Output is correct
9 Correct 11 ms 24836 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 16 ms 24836 KB Output is correct
12 Correct 13 ms 24948 KB Output is correct
13 Correct 10 ms 24916 KB Output is correct
14 Correct 9 ms 24916 KB Output is correct
15 Correct 9 ms 24916 KB Output is correct
16 Correct 13 ms 24900 KB Output is correct
17 Correct 46 ms 24956 KB Output is correct
18 Correct 15 ms 24916 KB Output is correct
19 Correct 11 ms 24960 KB Output is correct
20 Correct 224 ms 26776 KB Output is correct
21 Correct 187 ms 26992 KB Output is correct
22 Correct 191 ms 26940 KB Output is correct
23 Correct 187 ms 27216 KB Output is correct
24 Correct 179 ms 25768 KB Output is correct
25 Correct 202 ms 26960 KB Output is correct
26 Correct 220 ms 26992 KB Output is correct
27 Correct 15 ms 24948 KB Output is correct
28 Correct 11 ms 24952 KB Output is correct
29 Correct 12 ms 24952 KB Output is correct
30 Correct 17 ms 24948 KB Output is correct
31 Correct 13 ms 24952 KB Output is correct
32 Correct 12 ms 24848 KB Output is correct
33 Correct 12 ms 24952 KB Output is correct
34 Correct 15 ms 24948 KB Output is correct
35 Correct 14 ms 24956 KB Output is correct
36 Correct 15 ms 24944 KB Output is correct
37 Correct 15 ms 24952 KB Output is correct
38 Correct 12 ms 24952 KB Output is correct
39 Correct 11 ms 24924 KB Output is correct
40 Correct 12 ms 24916 KB Output is correct
41 Correct 11 ms 24928 KB Output is correct
42 Correct 13 ms 24872 KB Output is correct
43 Correct 11 ms 24952 KB Output is correct
44 Correct 12 ms 24916 KB Output is correct
45 Correct 12 ms 24956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 24956 KB Output is correct
2 Correct 71 ms 26672 KB Output is correct
3 Correct 67 ms 25440 KB Output is correct
4 Correct 42 ms 26680 KB Output is correct
5 Correct 62 ms 26700 KB Output is correct
6 Correct 53 ms 26664 KB Output is correct
7 Correct 82 ms 26684 KB Output is correct
8 Correct 13 ms 24956 KB Output is correct
9 Correct 11 ms 24836 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 16 ms 24836 KB Output is correct
12 Correct 13 ms 24948 KB Output is correct
13 Correct 10 ms 24916 KB Output is correct
14 Correct 9 ms 24916 KB Output is correct
15 Correct 9 ms 24916 KB Output is correct
16 Correct 13 ms 24900 KB Output is correct
17 Correct 46 ms 24956 KB Output is correct
18 Correct 15 ms 24916 KB Output is correct
19 Correct 11 ms 24960 KB Output is correct
20 Correct 224 ms 26776 KB Output is correct
21 Correct 187 ms 26992 KB Output is correct
22 Correct 191 ms 26940 KB Output is correct
23 Correct 187 ms 27216 KB Output is correct
24 Correct 179 ms 25768 KB Output is correct
25 Correct 202 ms 26960 KB Output is correct
26 Correct 220 ms 26992 KB Output is correct
27 Correct 15 ms 24948 KB Output is correct
28 Correct 11 ms 24952 KB Output is correct
29 Correct 12 ms 24952 KB Output is correct
30 Correct 17 ms 24948 KB Output is correct
31 Correct 13 ms 24952 KB Output is correct
32 Correct 12 ms 24848 KB Output is correct
33 Correct 12 ms 24952 KB Output is correct
34 Correct 15 ms 24948 KB Output is correct
35 Correct 14 ms 24956 KB Output is correct
36 Correct 15 ms 24944 KB Output is correct
37 Correct 15 ms 24952 KB Output is correct
38 Correct 12 ms 24952 KB Output is correct
39 Correct 11 ms 24924 KB Output is correct
40 Correct 12 ms 24916 KB Output is correct
41 Correct 11 ms 24928 KB Output is correct
42 Correct 13 ms 24872 KB Output is correct
43 Correct 11 ms 24952 KB Output is correct
44 Correct 12 ms 24916 KB Output is correct
45 Correct 12 ms 24956 KB Output is correct
46 Correct 13 ms 24924 KB Output is correct
47 Correct 286 ms 34152 KB Output is correct
48 Correct 306 ms 33728 KB Output is correct
49 Correct 274 ms 33848 KB Output is correct
50 Correct 334 ms 34040 KB Output is correct
51 Correct 241 ms 33092 KB Output is correct
52 Correct 289 ms 34340 KB Output is correct
53 Correct 280 ms 34552 KB Output is correct
54 Correct 13 ms 24916 KB Output is correct
55 Correct 14 ms 24852 KB Output is correct
56 Correct 13 ms 24848 KB Output is correct
57 Correct 12 ms 24948 KB Output is correct
58 Correct 12 ms 24956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 24956 KB Output is correct
2 Correct 71 ms 26672 KB Output is correct
3 Correct 67 ms 25440 KB Output is correct
4 Correct 42 ms 26680 KB Output is correct
5 Correct 62 ms 26700 KB Output is correct
6 Correct 53 ms 26664 KB Output is correct
7 Correct 82 ms 26684 KB Output is correct
8 Correct 13 ms 24956 KB Output is correct
9 Correct 11 ms 24836 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 16 ms 24836 KB Output is correct
12 Correct 13 ms 24948 KB Output is correct
13 Correct 10 ms 24916 KB Output is correct
14 Correct 9 ms 24916 KB Output is correct
15 Correct 9 ms 24916 KB Output is correct
16 Correct 13 ms 24900 KB Output is correct
17 Correct 46 ms 24956 KB Output is correct
18 Correct 15 ms 24916 KB Output is correct
19 Correct 11 ms 24960 KB Output is correct
20 Correct 224 ms 26776 KB Output is correct
21 Correct 187 ms 26992 KB Output is correct
22 Correct 191 ms 26940 KB Output is correct
23 Correct 187 ms 27216 KB Output is correct
24 Correct 179 ms 25768 KB Output is correct
25 Correct 202 ms 26960 KB Output is correct
26 Correct 220 ms 26992 KB Output is correct
27 Correct 15 ms 24948 KB Output is correct
28 Correct 11 ms 24952 KB Output is correct
29 Correct 12 ms 24952 KB Output is correct
30 Correct 17 ms 24948 KB Output is correct
31 Correct 13 ms 24952 KB Output is correct
32 Correct 12 ms 24848 KB Output is correct
33 Correct 12 ms 24952 KB Output is correct
34 Correct 15 ms 24948 KB Output is correct
35 Correct 14 ms 24956 KB Output is correct
36 Correct 15 ms 24944 KB Output is correct
37 Correct 15 ms 24952 KB Output is correct
38 Correct 12 ms 24952 KB Output is correct
39 Correct 11 ms 24924 KB Output is correct
40 Correct 12 ms 24916 KB Output is correct
41 Correct 11 ms 24928 KB Output is correct
42 Correct 13 ms 24872 KB Output is correct
43 Correct 11 ms 24952 KB Output is correct
44 Correct 12 ms 24916 KB Output is correct
45 Correct 12 ms 24956 KB Output is correct
46 Correct 13 ms 24924 KB Output is correct
47 Correct 286 ms 34152 KB Output is correct
48 Correct 306 ms 33728 KB Output is correct
49 Correct 274 ms 33848 KB Output is correct
50 Correct 334 ms 34040 KB Output is correct
51 Correct 241 ms 33092 KB Output is correct
52 Correct 289 ms 34340 KB Output is correct
53 Correct 280 ms 34552 KB Output is correct
54 Correct 13 ms 24916 KB Output is correct
55 Correct 14 ms 24852 KB Output is correct
56 Correct 13 ms 24848 KB Output is correct
57 Correct 12 ms 24948 KB Output is correct
58 Correct 12 ms 24956 KB Output is correct
59 Correct 320 ms 36548 KB Output is correct
60 Correct 218 ms 35960 KB Output is correct
61 Correct 216 ms 36316 KB Output is correct
62 Correct 219 ms 36532 KB Output is correct
63 Correct 337 ms 36988 KB Output is correct
64 Correct 399 ms 39308 KB Output is correct
65 Correct 421 ms 39504 KB Output is correct
66 Correct 323 ms 36600 KB Output is correct
67 Correct 312 ms 39236 KB Output is correct
68 Correct 398 ms 40352 KB Output is correct
69 Correct 416 ms 40716 KB Output is correct
70 Correct 13 ms 24916 KB Output is correct
71 Correct 13 ms 24956 KB Output is correct
72 Correct 13 ms 24952 KB Output is correct
73 Correct 12 ms 24920 KB Output is correct
74 Correct 13 ms 24916 KB Output is correct
75 Correct 160 ms 25052 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 24908 KB Output is correct
2 Correct 11 ms 24916 KB Output is correct
3 Correct 10 ms 24916 KB Output is correct
4 Correct 13 ms 24916 KB Output is correct
5 Correct 10 ms 24916 KB Output is correct
6 Correct 13 ms 24968 KB Output is correct
7 Correct 10 ms 24916 KB Output is correct
8 Correct 10 ms 24916 KB Output is correct
9 Correct 12 ms 24916 KB Output is correct
10 Correct 10 ms 24916 KB Output is correct
11 Correct 10 ms 24912 KB Output is correct
12 Correct 12 ms 24932 KB Output is correct
13 Correct 12 ms 24916 KB Output is correct
14 Correct 12 ms 24844 KB Output is correct
15 Correct 10 ms 24916 KB Output is correct
16 Correct 10 ms 24916 KB Output is correct
17 Correct 10 ms 24916 KB Output is correct
18 Correct 10 ms 24884 KB Output is correct
19 Correct 13 ms 24840 KB Output is correct
20 Correct 10 ms 24916 KB Output is correct
21 Correct 14 ms 24916 KB Output is correct
22 Correct 12 ms 24892 KB Output is correct
23 Correct 11 ms 24904 KB Output is correct
24 Correct 14 ms 24848 KB Output is correct
25 Correct 12 ms 24916 KB Output is correct
26 Correct 12 ms 24936 KB Output is correct
27 Correct 14 ms 24916 KB Output is correct
28 Correct 15 ms 24916 KB Output is correct
29 Correct 14 ms 24976 KB Output is correct
30 Correct 14 ms 24916 KB Output is correct
31 Correct 13 ms 24944 KB Output is correct
32 Correct 12 ms 24848 KB Output is correct
33 Correct 10 ms 24916 KB Output is correct
34 Correct 12 ms 24944 KB Output is correct
35 Correct 11 ms 24916 KB Output is correct
36 Correct 11 ms 24880 KB Output is correct
37 Correct 12 ms 24920 KB Output is correct
38 Correct 12 ms 24844 KB Output is correct
39 Correct 13 ms 24960 KB Output is correct
40 Correct 15 ms 24900 KB Output is correct
41 Correct 13 ms 24964 KB Output is correct
42 Correct 13 ms 24864 KB Output is correct
43 Correct 12 ms 24864 KB Output is correct
44 Correct 12 ms 24916 KB Output is correct
45 Correct 13 ms 24836 KB Output is correct
46 Correct 13 ms 24936 KB Output is correct
47 Correct 15 ms 24952 KB Output is correct
48 Correct 14 ms 24916 KB Output is correct
49 Correct 13 ms 24876 KB Output is correct
50 Correct 14 ms 24952 KB Output is correct
51 Correct 192 ms 24968 KB Output is correct
52 Correct 187 ms 24936 KB Output is correct
53 Correct 185 ms 24960 KB Output is correct
54 Correct 214 ms 24956 KB Output is correct
55 Correct 39 ms 24972 KB Output is correct
56 Correct 167 ms 24916 KB Output is correct
57 Correct 12 ms 24956 KB Output is correct
58 Correct 71 ms 26672 KB Output is correct
59 Correct 67 ms 25440 KB Output is correct
60 Correct 42 ms 26680 KB Output is correct
61 Correct 62 ms 26700 KB Output is correct
62 Correct 53 ms 26664 KB Output is correct
63 Correct 82 ms 26684 KB Output is correct
64 Correct 13 ms 24956 KB Output is correct
65 Correct 11 ms 24836 KB Output is correct
66 Correct 10 ms 24916 KB Output is correct
67 Correct 16 ms 24836 KB Output is correct
68 Correct 13 ms 24948 KB Output is correct
69 Correct 10 ms 24916 KB Output is correct
70 Correct 9 ms 24916 KB Output is correct
71 Correct 9 ms 24916 KB Output is correct
72 Correct 13 ms 24900 KB Output is correct
73 Correct 46 ms 24956 KB Output is correct
74 Correct 15 ms 24916 KB Output is correct
75 Correct 11 ms 24960 KB Output is correct
76 Correct 224 ms 26776 KB Output is correct
77 Correct 187 ms 26992 KB Output is correct
78 Correct 191 ms 26940 KB Output is correct
79 Correct 187 ms 27216 KB Output is correct
80 Correct 179 ms 25768 KB Output is correct
81 Correct 202 ms 26960 KB Output is correct
82 Correct 220 ms 26992 KB Output is correct
83 Correct 15 ms 24948 KB Output is correct
84 Correct 11 ms 24952 KB Output is correct
85 Correct 12 ms 24952 KB Output is correct
86 Correct 17 ms 24948 KB Output is correct
87 Correct 13 ms 24952 KB Output is correct
88 Correct 12 ms 24848 KB Output is correct
89 Correct 12 ms 24952 KB Output is correct
90 Correct 15 ms 24948 KB Output is correct
91 Correct 14 ms 24956 KB Output is correct
92 Correct 15 ms 24944 KB Output is correct
93 Correct 15 ms 24952 KB Output is correct
94 Correct 12 ms 24952 KB Output is correct
95 Correct 11 ms 24924 KB Output is correct
96 Correct 12 ms 24916 KB Output is correct
97 Correct 11 ms 24928 KB Output is correct
98 Correct 13 ms 24872 KB Output is correct
99 Correct 11 ms 24952 KB Output is correct
100 Correct 12 ms 24916 KB Output is correct
101 Correct 12 ms 24956 KB Output is correct
102 Correct 13 ms 24924 KB Output is correct
103 Correct 286 ms 34152 KB Output is correct
104 Correct 306 ms 33728 KB Output is correct
105 Correct 274 ms 33848 KB Output is correct
106 Correct 334 ms 34040 KB Output is correct
107 Correct 241 ms 33092 KB Output is correct
108 Correct 289 ms 34340 KB Output is correct
109 Correct 280 ms 34552 KB Output is correct
110 Correct 13 ms 24916 KB Output is correct
111 Correct 14 ms 24852 KB Output is correct
112 Correct 13 ms 24848 KB Output is correct
113 Correct 12 ms 24948 KB Output is correct
114 Correct 12 ms 24956 KB Output is correct
115 Correct 320 ms 36548 KB Output is correct
116 Correct 218 ms 35960 KB Output is correct
117 Correct 216 ms 36316 KB Output is correct
118 Correct 219 ms 36532 KB Output is correct
119 Correct 337 ms 36988 KB Output is correct
120 Correct 399 ms 39308 KB Output is correct
121 Correct 421 ms 39504 KB Output is correct
122 Correct 323 ms 36600 KB Output is correct
123 Correct 312 ms 39236 KB Output is correct
124 Correct 398 ms 40352 KB Output is correct
125 Correct 416 ms 40716 KB Output is correct
126 Correct 13 ms 24916 KB Output is correct
127 Correct 13 ms 24956 KB Output is correct
128 Correct 13 ms 24952 KB Output is correct
129 Correct 12 ms 24920 KB Output is correct
130 Correct 13 ms 24916 KB Output is correct
131 Correct 160 ms 25052 KB Output is correct
132 Correct 1231 ms 87640 KB Output is correct
133 Correct 1244 ms 91876 KB Output is correct
134 Correct 1279 ms 92068 KB Output is correct
135 Correct 1225 ms 78440 KB Output is correct
136 Correct 1204 ms 92068 KB Output is correct
137 Correct 769 ms 60532 KB Output is correct
138 Correct 818 ms 61400 KB Output is correct
139 Correct 714 ms 59240 KB Output is correct
140 Correct 766 ms 90520 KB Output is correct
141 Correct 1575 ms 91680 KB Output is correct
142 Correct 1411 ms 92060 KB Output is correct