Submission #755275

# Submission time Handle Problem Language Result Execution time Memory
755275 2023-06-09T16:36:14 Z Lucpp Council (JOI23_council) C++17
100 / 100
900 ms 35168 KB
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pi;

int same(int x, int y){
    return __builtin_popcount(x & y);
}

int n, m;

vector<pi> dp, sec;

void add(int msk, int val){
    if(val == -1) return;
    int s = same(msk, val);
    if(s > dp[msk].first){
        sec[msk] = dp[msk];
        dp[msk] = {s, val};
    }
    else{
        if(dp[msk].second == val || sec[msk].second == val) return;
        if(s > sec[msk].first) sec[msk] = {s, val};
    }
}

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin >> n >> m;
    vector<int> a(n), c(n), cnt(1<<m);
    vector<int> total(m);
    dp.assign(1<<m, {-1, -1});
    sec.assign(1<<m, {-1, -1});
    for(int i = 0; i < n; i++){
        int x = 0, y;
        for(int j = 0; j < m; j++){
            cin >> y;
            x += y*(1<<j);
            total[j] += y;
        }
        a[i] = x;
        c[i] = (~x)&((1<<m)-1);
        dp[c[i]] = {same(c[i], c[i]), c[i]};
        cnt[c[i]]++;
    }
    for(int msk = (1<<m)-1; msk >= 0; msk--){
        for(int i = 0; i < m; i++){
            if(msk & (1<<i)){
                add(msk ^ (1<<i), dp[msk].second);
                add(msk ^ (1<<i), sec[msk].second);
            }
        }
    }
    for(int msk = 0; msk < (1<<m); msk++){
        for(int i = 0; i < m; i++){
            if(msk & (1<<i)){
                add(msk, dp[msk ^ (1<<i)].second);
                add(msk, sec[msk ^ (1<<i)].second);
            }
        }
    }
    for(int i : a){
        int ans = 0;
        int crit = 0;
        for(int j = 0; j < m; j++){
            int votes = total[j];
            if(i & (1<<j)) votes--;
            if(votes > n/2){
                ans++;
            }
            if(votes == n/2){
                crit |= (1<<j);
            }
        }
        int x = dp[crit].second;
        if(x == -1 || (((~i)&((1<<m)-1)) == x && cnt[x] == 1)) x = sec[crit].second;
        if(x != -1) ans += same(x, crit);
        cout << ans << "\n";
    }
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 392 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 299 ms 20840 KB Output is correct
6 Correct 243 ms 20856 KB Output is correct
7 Correct 325 ms 20840 KB Output is correct
8 Correct 408 ms 20840 KB Output is correct
9 Correct 391 ms 20756 KB Output is correct
10 Correct 355 ms 20940 KB Output is correct
11 Correct 382 ms 20844 KB Output is correct
12 Correct 398 ms 20872 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 224 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 1 ms 316 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 1 ms 320 KB Output is correct
21 Correct 1 ms 320 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 316 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 320 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 1 ms 212 KB Output is correct
38 Correct 1 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 5 ms 596 KB Output is correct
42 Correct 6 ms 596 KB Output is correct
43 Correct 5 ms 596 KB Output is correct
44 Correct 5 ms 652 KB Output is correct
45 Correct 5 ms 596 KB Output is correct
46 Correct 41 ms 2884 KB Output is correct
47 Correct 34 ms 2900 KB Output is correct
48 Correct 41 ms 2900 KB Output is correct
49 Correct 35 ms 2900 KB Output is correct
50 Correct 47 ms 2900 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 392 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 299 ms 20840 KB Output is correct
6 Correct 243 ms 20856 KB Output is correct
7 Correct 325 ms 20840 KB Output is correct
8 Correct 408 ms 20840 KB Output is correct
9 Correct 391 ms 20756 KB Output is correct
10 Correct 355 ms 20940 KB Output is correct
11 Correct 382 ms 20844 KB Output is correct
12 Correct 398 ms 20872 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 224 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 1 ms 316 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 1 ms 320 KB Output is correct
21 Correct 1 ms 320 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 316 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 320 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 1 ms 212 KB Output is correct
38 Correct 1 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 5 ms 596 KB Output is correct
42 Correct 6 ms 596 KB Output is correct
43 Correct 5 ms 596 KB Output is correct
44 Correct 5 ms 652 KB Output is correct
45 Correct 5 ms 596 KB Output is correct
46 Correct 41 ms 2884 KB Output is correct
47 Correct 34 ms 2900 KB Output is correct
48 Correct 41 ms 2900 KB Output is correct
49 Correct 35 ms 2900 KB Output is correct
50 Correct 47 ms 2900 KB Output is correct
51 Correct 249 ms 20980 KB Output is correct
52 Correct 293 ms 20948 KB Output is correct
53 Correct 410 ms 20972 KB Output is correct
54 Correct 417 ms 20972 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 70 ms 3004 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 64 ms 4248 KB Output is correct
3 Correct 58 ms 4252 KB Output is correct
4 Correct 45 ms 3652 KB Output is correct
5 Correct 68 ms 4272 KB Output is correct
6 Correct 46 ms 3908 KB Output is correct
7 Correct 83 ms 4200 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 64 ms 4248 KB Output is correct
3 Correct 58 ms 4252 KB Output is correct
4 Correct 45 ms 3652 KB Output is correct
5 Correct 68 ms 4272 KB Output is correct
6 Correct 46 ms 3908 KB Output is correct
7 Correct 83 ms 4200 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 208 ms 8216 KB Output is correct
21 Correct 181 ms 7468 KB Output is correct
22 Correct 185 ms 7580 KB Output is correct
23 Correct 168 ms 8408 KB Output is correct
24 Correct 203 ms 8128 KB Output is correct
25 Correct 189 ms 8228 KB Output is correct
26 Correct 250 ms 8292 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 1 ms 324 KB Output is correct
37 Correct 1 ms 212 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 316 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 212 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 64 ms 4248 KB Output is correct
3 Correct 58 ms 4252 KB Output is correct
4 Correct 45 ms 3652 KB Output is correct
5 Correct 68 ms 4272 KB Output is correct
6 Correct 46 ms 3908 KB Output is correct
7 Correct 83 ms 4200 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 208 ms 8216 KB Output is correct
21 Correct 181 ms 7468 KB Output is correct
22 Correct 185 ms 7580 KB Output is correct
23 Correct 168 ms 8408 KB Output is correct
24 Correct 203 ms 8128 KB Output is correct
25 Correct 189 ms 8228 KB Output is correct
26 Correct 250 ms 8292 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 1 ms 324 KB Output is correct
37 Correct 1 ms 212 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 316 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 212 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 2 ms 324 KB Output is correct
47 Correct 288 ms 10672 KB Output is correct
48 Correct 267 ms 9864 KB Output is correct
49 Correct 291 ms 10248 KB Output is correct
50 Correct 269 ms 10536 KB Output is correct
51 Correct 311 ms 10336 KB Output is correct
52 Correct 300 ms 10284 KB Output is correct
53 Correct 328 ms 11116 KB Output is correct
54 Correct 5 ms 664 KB Output is correct
55 Correct 5 ms 596 KB Output is correct
56 Correct 5 ms 576 KB Output is correct
57 Correct 5 ms 568 KB Output is correct
58 Correct 5 ms 596 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 64 ms 4248 KB Output is correct
3 Correct 58 ms 4252 KB Output is correct
4 Correct 45 ms 3652 KB Output is correct
5 Correct 68 ms 4272 KB Output is correct
6 Correct 46 ms 3908 KB Output is correct
7 Correct 83 ms 4200 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 208 ms 8216 KB Output is correct
21 Correct 181 ms 7468 KB Output is correct
22 Correct 185 ms 7580 KB Output is correct
23 Correct 168 ms 8408 KB Output is correct
24 Correct 203 ms 8128 KB Output is correct
25 Correct 189 ms 8228 KB Output is correct
26 Correct 250 ms 8292 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 1 ms 324 KB Output is correct
37 Correct 1 ms 212 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 1 ms 316 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 1 ms 212 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 2 ms 324 KB Output is correct
47 Correct 288 ms 10672 KB Output is correct
48 Correct 267 ms 9864 KB Output is correct
49 Correct 291 ms 10248 KB Output is correct
50 Correct 269 ms 10536 KB Output is correct
51 Correct 311 ms 10336 KB Output is correct
52 Correct 300 ms 10284 KB Output is correct
53 Correct 328 ms 11116 KB Output is correct
54 Correct 5 ms 664 KB Output is correct
55 Correct 5 ms 596 KB Output is correct
56 Correct 5 ms 576 KB Output is correct
57 Correct 5 ms 568 KB Output is correct
58 Correct 5 ms 596 KB Output is correct
59 Correct 381 ms 13080 KB Output is correct
60 Correct 199 ms 7320 KB Output is correct
61 Correct 199 ms 7576 KB Output is correct
62 Correct 193 ms 7712 KB Output is correct
63 Correct 396 ms 12912 KB Output is correct
64 Correct 438 ms 14468 KB Output is correct
65 Correct 380 ms 14416 KB Output is correct
66 Correct 300 ms 14924 KB Output is correct
67 Correct 307 ms 14384 KB Output is correct
68 Correct 368 ms 14384 KB Output is correct
69 Correct 386 ms 15004 KB Output is correct
70 Correct 34 ms 2900 KB Output is correct
71 Correct 33 ms 2900 KB Output is correct
72 Correct 40 ms 2900 KB Output is correct
73 Correct 36 ms 2900 KB Output is correct
74 Correct 42 ms 2900 KB Output is correct
75 Correct 61 ms 3016 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 392 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 299 ms 20840 KB Output is correct
6 Correct 243 ms 20856 KB Output is correct
7 Correct 325 ms 20840 KB Output is correct
8 Correct 408 ms 20840 KB Output is correct
9 Correct 391 ms 20756 KB Output is correct
10 Correct 355 ms 20940 KB Output is correct
11 Correct 382 ms 20844 KB Output is correct
12 Correct 398 ms 20872 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 0 ms 224 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 1 ms 316 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 212 KB Output is correct
20 Correct 1 ms 320 KB Output is correct
21 Correct 1 ms 320 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 316 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 320 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 212 KB Output is correct
33 Correct 1 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 1 ms 212 KB Output is correct
36 Correct 0 ms 212 KB Output is correct
37 Correct 1 ms 212 KB Output is correct
38 Correct 1 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 5 ms 596 KB Output is correct
42 Correct 6 ms 596 KB Output is correct
43 Correct 5 ms 596 KB Output is correct
44 Correct 5 ms 652 KB Output is correct
45 Correct 5 ms 596 KB Output is correct
46 Correct 41 ms 2884 KB Output is correct
47 Correct 34 ms 2900 KB Output is correct
48 Correct 41 ms 2900 KB Output is correct
49 Correct 35 ms 2900 KB Output is correct
50 Correct 47 ms 2900 KB Output is correct
51 Correct 249 ms 20980 KB Output is correct
52 Correct 293 ms 20948 KB Output is correct
53 Correct 410 ms 20972 KB Output is correct
54 Correct 417 ms 20972 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 70 ms 3004 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 64 ms 4248 KB Output is correct
59 Correct 58 ms 4252 KB Output is correct
60 Correct 45 ms 3652 KB Output is correct
61 Correct 68 ms 4272 KB Output is correct
62 Correct 46 ms 3908 KB Output is correct
63 Correct 83 ms 4200 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 1 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 1 ms 212 KB Output is correct
68 Correct 1 ms 212 KB Output is correct
69 Correct 1 ms 212 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 1 ms 212 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 212 KB Output is correct
76 Correct 208 ms 8216 KB Output is correct
77 Correct 181 ms 7468 KB Output is correct
78 Correct 185 ms 7580 KB Output is correct
79 Correct 168 ms 8408 KB Output is correct
80 Correct 203 ms 8128 KB Output is correct
81 Correct 189 ms 8228 KB Output is correct
82 Correct 250 ms 8292 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 1 ms 212 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 1 ms 212 KB Output is correct
92 Correct 1 ms 324 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 0 ms 212 KB Output is correct
95 Correct 1 ms 212 KB Output is correct
96 Correct 1 ms 212 KB Output is correct
97 Correct 1 ms 316 KB Output is correct
98 Correct 1 ms 212 KB Output is correct
99 Correct 1 ms 212 KB Output is correct
100 Correct 1 ms 340 KB Output is correct
101 Correct 1 ms 340 KB Output is correct
102 Correct 2 ms 324 KB Output is correct
103 Correct 288 ms 10672 KB Output is correct
104 Correct 267 ms 9864 KB Output is correct
105 Correct 291 ms 10248 KB Output is correct
106 Correct 269 ms 10536 KB Output is correct
107 Correct 311 ms 10336 KB Output is correct
108 Correct 300 ms 10284 KB Output is correct
109 Correct 328 ms 11116 KB Output is correct
110 Correct 5 ms 664 KB Output is correct
111 Correct 5 ms 596 KB Output is correct
112 Correct 5 ms 576 KB Output is correct
113 Correct 5 ms 568 KB Output is correct
114 Correct 5 ms 596 KB Output is correct
115 Correct 381 ms 13080 KB Output is correct
116 Correct 199 ms 7320 KB Output is correct
117 Correct 199 ms 7576 KB Output is correct
118 Correct 193 ms 7712 KB Output is correct
119 Correct 396 ms 12912 KB Output is correct
120 Correct 438 ms 14468 KB Output is correct
121 Correct 380 ms 14416 KB Output is correct
122 Correct 300 ms 14924 KB Output is correct
123 Correct 307 ms 14384 KB Output is correct
124 Correct 368 ms 14384 KB Output is correct
125 Correct 386 ms 15004 KB Output is correct
126 Correct 34 ms 2900 KB Output is correct
127 Correct 33 ms 2900 KB Output is correct
128 Correct 40 ms 2900 KB Output is correct
129 Correct 36 ms 2900 KB Output is correct
130 Correct 42 ms 2900 KB Output is correct
131 Correct 61 ms 3016 KB Output is correct
132 Correct 752 ms 34136 KB Output is correct
133 Correct 754 ms 34264 KB Output is correct
134 Correct 744 ms 34656 KB Output is correct
135 Correct 739 ms 34636 KB Output is correct
136 Correct 868 ms 34296 KB Output is correct
137 Correct 553 ms 23784 KB Output is correct
138 Correct 528 ms 24548 KB Output is correct
139 Correct 547 ms 34860 KB Output is correct
140 Correct 568 ms 34088 KB Output is correct
141 Correct 825 ms 34008 KB Output is correct
142 Correct 900 ms 35168 KB Output is correct