Submission #769608

# Submission time Handle Problem Language Result Execution time Memory
769608 2023-06-29T20:44:25 Z MilosMilutinovic Council (JOI23_council) C++14
100 / 100
2164 ms 164788 KB
#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
const int M = 22;
int n, m, a[N][M], b[N][M], v[N], cnt[M], bst[1 << M], ans[N];
void dfs(int i, int x) {
    bst[i] = x;
    for (int j = 1; j <= m; j++) {
        int ni = (i ^ (1 << j));
        if (__builtin_popcount(bst[ni] & ni) > __builtin_popcount(x & ni)) {
            bst[ni] = x;
            dfs(ni, x);
        }
    }
}
int main() {
    scanf("%d%d", &n, &m);
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= m; j++) {
            scanf("%d", &a[i][j]);
        }
    }
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= m; j++) {
            cnt[j] += a[i][j];
        }
    }
    int full_mask = 0;
    for (int j = 1; j <= m; j++) {
        full_mask += (1 << j);
    }
    for (int iter = 1; iter <= 2; iter++) {
        for (int i = 1; i <= n; i++) {
            v[i] = 0;
            for (int j = 1; j <= m; j++) {
                if (a[i][j] == 1) {
                    v[i] += (1 << j);
                }
            }
        }
        for (int i = 0; i < (1 << M); i++) {
            bst[i] = i;
        }
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= m; j++) {
                cnt[j] -= a[i][j];
            }
            int msk = 0, good = 0;
            for (int j = 1; j <= m; j++) {
                if (cnt[j] == (n / 2)) {
                    msk ^= (1 << j);
                }
                if (cnt[j] >= (n / 2)) {
                    good += 1;
                }
            }
            ans[iter == 1 ? i : n - i + 1] = max(ans[iter == 1 ? i : n - i + 1], good - __builtin_popcount(bst[msk] & msk));
            for (int j = 1; j <= m; j++) {
                cnt[j] += a[i][j];
            }
            dfs(full_mask ^ v[i], v[i]);
        }
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= m; j++) {
                b[n - i + 1][j] = a[i][j];
            }
        }
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= m; j++) {
                a[i][j] = b[i][j];
            }
        }
    }
    for (int i = 1; i <= n; i++) {
        printf("%d\n", ans[i]);
    }
    return 0;
}

Compilation message

council.cpp: In function 'int main()':
council.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   17 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
council.cpp:20:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   20 |             scanf("%d", &a[i][j]);
      |             ~~~~~^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 10 ms 16724 KB Output is correct
2 Correct 10 ms 16972 KB Output is correct
3 Correct 9 ms 16648 KB Output is correct
4 Correct 9 ms 16724 KB Output is correct
5 Correct 515 ms 98808 KB Output is correct
6 Correct 10 ms 16724 KB Output is correct
7 Correct 745 ms 98764 KB Output is correct
8 Correct 1014 ms 98156 KB Output is correct
9 Correct 1203 ms 98816 KB Output is correct
10 Correct 606 ms 98844 KB Output is correct
11 Correct 794 ms 98764 KB Output is correct
12 Correct 1280 ms 98812 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 10 ms 16724 KB Output is correct
15 Correct 10 ms 16636 KB Output is correct
16 Correct 9 ms 16724 KB Output is correct
17 Correct 10 ms 16800 KB Output is correct
18 Correct 10 ms 16724 KB Output is correct
19 Correct 9 ms 16724 KB Output is correct
20 Correct 10 ms 16748 KB Output is correct
21 Correct 10 ms 16692 KB Output is correct
22 Correct 10 ms 16724 KB Output is correct
23 Correct 10 ms 16744 KB Output is correct
24 Correct 9 ms 16684 KB Output is correct
25 Correct 10 ms 16724 KB Output is correct
26 Correct 10 ms 16772 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 9 ms 16732 KB Output is correct
29 Correct 10 ms 16788 KB Output is correct
30 Correct 10 ms 16724 KB Output is correct
31 Correct 11 ms 16880 KB Output is correct
32 Correct 10 ms 16656 KB Output is correct
33 Correct 10 ms 16724 KB Output is correct
34 Correct 10 ms 16672 KB Output is correct
35 Correct 11 ms 16852 KB Output is correct
36 Correct 9 ms 16756 KB Output is correct
37 Correct 9 ms 16688 KB Output is correct
38 Correct 9 ms 16704 KB Output is correct
39 Correct 12 ms 16824 KB Output is correct
40 Correct 10 ms 16824 KB Output is correct
41 Correct 16 ms 18004 KB Output is correct
42 Correct 15 ms 18004 KB Output is correct
43 Correct 18 ms 17996 KB Output is correct
44 Correct 14 ms 17976 KB Output is correct
45 Correct 18 ms 17984 KB Output is correct
46 Correct 58 ms 26992 KB Output is correct
47 Correct 59 ms 26976 KB Output is correct
48 Correct 74 ms 26984 KB Output is correct
49 Correct 65 ms 26968 KB Output is correct
50 Correct 75 ms 26948 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 16724 KB Output is correct
2 Correct 10 ms 16972 KB Output is correct
3 Correct 9 ms 16648 KB Output is correct
4 Correct 9 ms 16724 KB Output is correct
5 Correct 515 ms 98808 KB Output is correct
6 Correct 10 ms 16724 KB Output is correct
7 Correct 745 ms 98764 KB Output is correct
8 Correct 1014 ms 98156 KB Output is correct
9 Correct 1203 ms 98816 KB Output is correct
10 Correct 606 ms 98844 KB Output is correct
11 Correct 794 ms 98764 KB Output is correct
12 Correct 1280 ms 98812 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 10 ms 16724 KB Output is correct
15 Correct 10 ms 16636 KB Output is correct
16 Correct 9 ms 16724 KB Output is correct
17 Correct 10 ms 16800 KB Output is correct
18 Correct 10 ms 16724 KB Output is correct
19 Correct 9 ms 16724 KB Output is correct
20 Correct 10 ms 16748 KB Output is correct
21 Correct 10 ms 16692 KB Output is correct
22 Correct 10 ms 16724 KB Output is correct
23 Correct 10 ms 16744 KB Output is correct
24 Correct 9 ms 16684 KB Output is correct
25 Correct 10 ms 16724 KB Output is correct
26 Correct 10 ms 16772 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 9 ms 16732 KB Output is correct
29 Correct 10 ms 16788 KB Output is correct
30 Correct 10 ms 16724 KB Output is correct
31 Correct 11 ms 16880 KB Output is correct
32 Correct 10 ms 16656 KB Output is correct
33 Correct 10 ms 16724 KB Output is correct
34 Correct 10 ms 16672 KB Output is correct
35 Correct 11 ms 16852 KB Output is correct
36 Correct 9 ms 16756 KB Output is correct
37 Correct 9 ms 16688 KB Output is correct
38 Correct 9 ms 16704 KB Output is correct
39 Correct 12 ms 16824 KB Output is correct
40 Correct 10 ms 16824 KB Output is correct
41 Correct 16 ms 18004 KB Output is correct
42 Correct 15 ms 18004 KB Output is correct
43 Correct 18 ms 17996 KB Output is correct
44 Correct 14 ms 17976 KB Output is correct
45 Correct 18 ms 17984 KB Output is correct
46 Correct 58 ms 26992 KB Output is correct
47 Correct 59 ms 26976 KB Output is correct
48 Correct 74 ms 26984 KB Output is correct
49 Correct 65 ms 26968 KB Output is correct
50 Correct 75 ms 26948 KB Output is correct
51 Correct 15 ms 17396 KB Output is correct
52 Correct 320 ms 99440 KB Output is correct
53 Correct 1454 ms 99424 KB Output is correct
54 Correct 1281 ms 99408 KB Output is correct
55 Correct 11 ms 17236 KB Output is correct
56 Correct 112 ms 27588 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 16724 KB Output is correct
2 Correct 113 ms 71300 KB Output is correct
3 Correct 111 ms 71244 KB Output is correct
4 Correct 94 ms 71252 KB Output is correct
5 Correct 118 ms 71196 KB Output is correct
6 Correct 96 ms 71292 KB Output is correct
7 Correct 125 ms 71308 KB Output is correct
8 Correct 9 ms 16724 KB Output is correct
9 Correct 9 ms 16724 KB Output is correct
10 Correct 9 ms 16724 KB Output is correct
11 Correct 9 ms 16724 KB Output is correct
12 Correct 9 ms 16724 KB Output is correct
13 Correct 10 ms 16648 KB Output is correct
14 Correct 9 ms 16688 KB Output is correct
15 Correct 9 ms 16724 KB Output is correct
16 Correct 10 ms 16724 KB Output is correct
17 Correct 10 ms 17236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 16724 KB Output is correct
2 Correct 113 ms 71300 KB Output is correct
3 Correct 111 ms 71244 KB Output is correct
4 Correct 94 ms 71252 KB Output is correct
5 Correct 118 ms 71196 KB Output is correct
6 Correct 96 ms 71292 KB Output is correct
7 Correct 125 ms 71308 KB Output is correct
8 Correct 9 ms 16724 KB Output is correct
9 Correct 9 ms 16724 KB Output is correct
10 Correct 9 ms 16724 KB Output is correct
11 Correct 9 ms 16724 KB Output is correct
12 Correct 9 ms 16724 KB Output is correct
13 Correct 10 ms 16648 KB Output is correct
14 Correct 9 ms 16688 KB Output is correct
15 Correct 9 ms 16724 KB Output is correct
16 Correct 10 ms 16724 KB Output is correct
17 Correct 10 ms 17236 KB Output is correct
18 Correct 10 ms 16724 KB Output is correct
19 Correct 9 ms 16724 KB Output is correct
20 Correct 388 ms 71292 KB Output is correct
21 Correct 322 ms 75372 KB Output is correct
22 Correct 325 ms 75652 KB Output is correct
23 Correct 309 ms 76456 KB Output is correct
24 Correct 279 ms 76152 KB Output is correct
25 Correct 335 ms 76512 KB Output is correct
26 Correct 360 ms 76340 KB Output is correct
27 Correct 10 ms 16724 KB Output is correct
28 Correct 10 ms 16724 KB Output is correct
29 Correct 9 ms 16744 KB Output is correct
30 Correct 10 ms 16724 KB Output is correct
31 Correct 10 ms 16724 KB Output is correct
32 Correct 10 ms 16664 KB Output is correct
33 Correct 9 ms 16724 KB Output is correct
34 Correct 10 ms 16776 KB Output is correct
35 Correct 9 ms 16708 KB Output is correct
36 Correct 10 ms 16852 KB Output is correct
37 Correct 10 ms 16724 KB Output is correct
38 Correct 10 ms 16724 KB Output is correct
39 Correct 9 ms 16724 KB Output is correct
40 Correct 9 ms 16688 KB Output is correct
41 Correct 10 ms 16724 KB Output is correct
42 Correct 9 ms 16724 KB Output is correct
43 Correct 10 ms 16784 KB Output is correct
44 Correct 10 ms 16832 KB Output is correct
45 Correct 10 ms 16852 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 16724 KB Output is correct
2 Correct 113 ms 71300 KB Output is correct
3 Correct 111 ms 71244 KB Output is correct
4 Correct 94 ms 71252 KB Output is correct
5 Correct 118 ms 71196 KB Output is correct
6 Correct 96 ms 71292 KB Output is correct
7 Correct 125 ms 71308 KB Output is correct
8 Correct 9 ms 16724 KB Output is correct
9 Correct 9 ms 16724 KB Output is correct
10 Correct 9 ms 16724 KB Output is correct
11 Correct 9 ms 16724 KB Output is correct
12 Correct 9 ms 16724 KB Output is correct
13 Correct 10 ms 16648 KB Output is correct
14 Correct 9 ms 16688 KB Output is correct
15 Correct 9 ms 16724 KB Output is correct
16 Correct 10 ms 16724 KB Output is correct
17 Correct 10 ms 17236 KB Output is correct
18 Correct 10 ms 16724 KB Output is correct
19 Correct 9 ms 16724 KB Output is correct
20 Correct 388 ms 71292 KB Output is correct
21 Correct 322 ms 75372 KB Output is correct
22 Correct 325 ms 75652 KB Output is correct
23 Correct 309 ms 76456 KB Output is correct
24 Correct 279 ms 76152 KB Output is correct
25 Correct 335 ms 76512 KB Output is correct
26 Correct 360 ms 76340 KB Output is correct
27 Correct 10 ms 16724 KB Output is correct
28 Correct 10 ms 16724 KB Output is correct
29 Correct 9 ms 16744 KB Output is correct
30 Correct 10 ms 16724 KB Output is correct
31 Correct 10 ms 16724 KB Output is correct
32 Correct 10 ms 16664 KB Output is correct
33 Correct 9 ms 16724 KB Output is correct
34 Correct 10 ms 16776 KB Output is correct
35 Correct 9 ms 16708 KB Output is correct
36 Correct 10 ms 16852 KB Output is correct
37 Correct 10 ms 16724 KB Output is correct
38 Correct 10 ms 16724 KB Output is correct
39 Correct 9 ms 16724 KB Output is correct
40 Correct 9 ms 16688 KB Output is correct
41 Correct 10 ms 16724 KB Output is correct
42 Correct 9 ms 16724 KB Output is correct
43 Correct 10 ms 16784 KB Output is correct
44 Correct 10 ms 16832 KB Output is correct
45 Correct 10 ms 16852 KB Output is correct
46 Correct 10 ms 16980 KB Output is correct
47 Correct 468 ms 79688 KB Output is correct
48 Correct 453 ms 78412 KB Output is correct
49 Correct 438 ms 78796 KB Output is correct
50 Correct 413 ms 78140 KB Output is correct
51 Correct 363 ms 79332 KB Output is correct
52 Correct 468 ms 79300 KB Output is correct
53 Correct 481 ms 80088 KB Output is correct
54 Correct 13 ms 18004 KB Output is correct
55 Correct 14 ms 18012 KB Output is correct
56 Correct 17 ms 18004 KB Output is correct
57 Correct 14 ms 18024 KB Output is correct
58 Correct 17 ms 18004 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 16724 KB Output is correct
2 Correct 113 ms 71300 KB Output is correct
3 Correct 111 ms 71244 KB Output is correct
4 Correct 94 ms 71252 KB Output is correct
5 Correct 118 ms 71196 KB Output is correct
6 Correct 96 ms 71292 KB Output is correct
7 Correct 125 ms 71308 KB Output is correct
8 Correct 9 ms 16724 KB Output is correct
9 Correct 9 ms 16724 KB Output is correct
10 Correct 9 ms 16724 KB Output is correct
11 Correct 9 ms 16724 KB Output is correct
12 Correct 9 ms 16724 KB Output is correct
13 Correct 10 ms 16648 KB Output is correct
14 Correct 9 ms 16688 KB Output is correct
15 Correct 9 ms 16724 KB Output is correct
16 Correct 10 ms 16724 KB Output is correct
17 Correct 10 ms 17236 KB Output is correct
18 Correct 10 ms 16724 KB Output is correct
19 Correct 9 ms 16724 KB Output is correct
20 Correct 388 ms 71292 KB Output is correct
21 Correct 322 ms 75372 KB Output is correct
22 Correct 325 ms 75652 KB Output is correct
23 Correct 309 ms 76456 KB Output is correct
24 Correct 279 ms 76152 KB Output is correct
25 Correct 335 ms 76512 KB Output is correct
26 Correct 360 ms 76340 KB Output is correct
27 Correct 10 ms 16724 KB Output is correct
28 Correct 10 ms 16724 KB Output is correct
29 Correct 9 ms 16744 KB Output is correct
30 Correct 10 ms 16724 KB Output is correct
31 Correct 10 ms 16724 KB Output is correct
32 Correct 10 ms 16664 KB Output is correct
33 Correct 9 ms 16724 KB Output is correct
34 Correct 10 ms 16776 KB Output is correct
35 Correct 9 ms 16708 KB Output is correct
36 Correct 10 ms 16852 KB Output is correct
37 Correct 10 ms 16724 KB Output is correct
38 Correct 10 ms 16724 KB Output is correct
39 Correct 9 ms 16724 KB Output is correct
40 Correct 9 ms 16688 KB Output is correct
41 Correct 10 ms 16724 KB Output is correct
42 Correct 9 ms 16724 KB Output is correct
43 Correct 10 ms 16784 KB Output is correct
44 Correct 10 ms 16832 KB Output is correct
45 Correct 10 ms 16852 KB Output is correct
46 Correct 10 ms 16980 KB Output is correct
47 Correct 468 ms 79688 KB Output is correct
48 Correct 453 ms 78412 KB Output is correct
49 Correct 438 ms 78796 KB Output is correct
50 Correct 413 ms 78140 KB Output is correct
51 Correct 363 ms 79332 KB Output is correct
52 Correct 468 ms 79300 KB Output is correct
53 Correct 481 ms 80088 KB Output is correct
54 Correct 13 ms 18004 KB Output is correct
55 Correct 14 ms 18012 KB Output is correct
56 Correct 17 ms 18004 KB Output is correct
57 Correct 14 ms 18024 KB Output is correct
58 Correct 17 ms 18004 KB Output is correct
59 Correct 540 ms 84912 KB Output is correct
60 Correct 345 ms 51096 KB Output is correct
61 Correct 362 ms 52784 KB Output is correct
62 Correct 366 ms 53772 KB Output is correct
63 Correct 586 ms 84588 KB Output is correct
64 Correct 685 ms 90308 KB Output is correct
65 Correct 691 ms 90164 KB Output is correct
66 Correct 492 ms 80400 KB Output is correct
67 Correct 469 ms 90188 KB Output is correct
68 Correct 633 ms 90064 KB Output is correct
69 Correct 709 ms 90640 KB Output is correct
70 Correct 57 ms 26988 KB Output is correct
71 Correct 58 ms 26972 KB Output is correct
72 Correct 74 ms 26984 KB Output is correct
73 Correct 64 ms 26948 KB Output is correct
74 Correct 75 ms 26956 KB Output is correct
75 Correct 112 ms 27508 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 16724 KB Output is correct
2 Correct 10 ms 16972 KB Output is correct
3 Correct 9 ms 16648 KB Output is correct
4 Correct 9 ms 16724 KB Output is correct
5 Correct 515 ms 98808 KB Output is correct
6 Correct 10 ms 16724 KB Output is correct
7 Correct 745 ms 98764 KB Output is correct
8 Correct 1014 ms 98156 KB Output is correct
9 Correct 1203 ms 98816 KB Output is correct
10 Correct 606 ms 98844 KB Output is correct
11 Correct 794 ms 98764 KB Output is correct
12 Correct 1280 ms 98812 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 10 ms 16724 KB Output is correct
15 Correct 10 ms 16636 KB Output is correct
16 Correct 9 ms 16724 KB Output is correct
17 Correct 10 ms 16800 KB Output is correct
18 Correct 10 ms 16724 KB Output is correct
19 Correct 9 ms 16724 KB Output is correct
20 Correct 10 ms 16748 KB Output is correct
21 Correct 10 ms 16692 KB Output is correct
22 Correct 10 ms 16724 KB Output is correct
23 Correct 10 ms 16744 KB Output is correct
24 Correct 9 ms 16684 KB Output is correct
25 Correct 10 ms 16724 KB Output is correct
26 Correct 10 ms 16772 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 9 ms 16732 KB Output is correct
29 Correct 10 ms 16788 KB Output is correct
30 Correct 10 ms 16724 KB Output is correct
31 Correct 11 ms 16880 KB Output is correct
32 Correct 10 ms 16656 KB Output is correct
33 Correct 10 ms 16724 KB Output is correct
34 Correct 10 ms 16672 KB Output is correct
35 Correct 11 ms 16852 KB Output is correct
36 Correct 9 ms 16756 KB Output is correct
37 Correct 9 ms 16688 KB Output is correct
38 Correct 9 ms 16704 KB Output is correct
39 Correct 12 ms 16824 KB Output is correct
40 Correct 10 ms 16824 KB Output is correct
41 Correct 16 ms 18004 KB Output is correct
42 Correct 15 ms 18004 KB Output is correct
43 Correct 18 ms 17996 KB Output is correct
44 Correct 14 ms 17976 KB Output is correct
45 Correct 18 ms 17984 KB Output is correct
46 Correct 58 ms 26992 KB Output is correct
47 Correct 59 ms 26976 KB Output is correct
48 Correct 74 ms 26984 KB Output is correct
49 Correct 65 ms 26968 KB Output is correct
50 Correct 75 ms 26948 KB Output is correct
51 Correct 15 ms 17396 KB Output is correct
52 Correct 320 ms 99440 KB Output is correct
53 Correct 1454 ms 99424 KB Output is correct
54 Correct 1281 ms 99408 KB Output is correct
55 Correct 11 ms 17236 KB Output is correct
56 Correct 112 ms 27588 KB Output is correct
57 Correct 9 ms 16724 KB Output is correct
58 Correct 113 ms 71300 KB Output is correct
59 Correct 111 ms 71244 KB Output is correct
60 Correct 94 ms 71252 KB Output is correct
61 Correct 118 ms 71196 KB Output is correct
62 Correct 96 ms 71292 KB Output is correct
63 Correct 125 ms 71308 KB Output is correct
64 Correct 9 ms 16724 KB Output is correct
65 Correct 9 ms 16724 KB Output is correct
66 Correct 9 ms 16724 KB Output is correct
67 Correct 9 ms 16724 KB Output is correct
68 Correct 9 ms 16724 KB Output is correct
69 Correct 10 ms 16648 KB Output is correct
70 Correct 9 ms 16688 KB Output is correct
71 Correct 9 ms 16724 KB Output is correct
72 Correct 10 ms 16724 KB Output is correct
73 Correct 10 ms 17236 KB Output is correct
74 Correct 10 ms 16724 KB Output is correct
75 Correct 9 ms 16724 KB Output is correct
76 Correct 388 ms 71292 KB Output is correct
77 Correct 322 ms 75372 KB Output is correct
78 Correct 325 ms 75652 KB Output is correct
79 Correct 309 ms 76456 KB Output is correct
80 Correct 279 ms 76152 KB Output is correct
81 Correct 335 ms 76512 KB Output is correct
82 Correct 360 ms 76340 KB Output is correct
83 Correct 10 ms 16724 KB Output is correct
84 Correct 10 ms 16724 KB Output is correct
85 Correct 9 ms 16744 KB Output is correct
86 Correct 10 ms 16724 KB Output is correct
87 Correct 10 ms 16724 KB Output is correct
88 Correct 10 ms 16664 KB Output is correct
89 Correct 9 ms 16724 KB Output is correct
90 Correct 10 ms 16776 KB Output is correct
91 Correct 9 ms 16708 KB Output is correct
92 Correct 10 ms 16852 KB Output is correct
93 Correct 10 ms 16724 KB Output is correct
94 Correct 10 ms 16724 KB Output is correct
95 Correct 9 ms 16724 KB Output is correct
96 Correct 9 ms 16688 KB Output is correct
97 Correct 10 ms 16724 KB Output is correct
98 Correct 9 ms 16724 KB Output is correct
99 Correct 10 ms 16784 KB Output is correct
100 Correct 10 ms 16832 KB Output is correct
101 Correct 10 ms 16852 KB Output is correct
102 Correct 10 ms 16980 KB Output is correct
103 Correct 468 ms 79688 KB Output is correct
104 Correct 453 ms 78412 KB Output is correct
105 Correct 438 ms 78796 KB Output is correct
106 Correct 413 ms 78140 KB Output is correct
107 Correct 363 ms 79332 KB Output is correct
108 Correct 468 ms 79300 KB Output is correct
109 Correct 481 ms 80088 KB Output is correct
110 Correct 13 ms 18004 KB Output is correct
111 Correct 14 ms 18012 KB Output is correct
112 Correct 17 ms 18004 KB Output is correct
113 Correct 14 ms 18024 KB Output is correct
114 Correct 17 ms 18004 KB Output is correct
115 Correct 540 ms 84912 KB Output is correct
116 Correct 345 ms 51096 KB Output is correct
117 Correct 362 ms 52784 KB Output is correct
118 Correct 366 ms 53772 KB Output is correct
119 Correct 586 ms 84588 KB Output is correct
120 Correct 685 ms 90308 KB Output is correct
121 Correct 691 ms 90164 KB Output is correct
122 Correct 492 ms 80400 KB Output is correct
123 Correct 469 ms 90188 KB Output is correct
124 Correct 633 ms 90064 KB Output is correct
125 Correct 709 ms 90640 KB Output is correct
126 Correct 57 ms 26988 KB Output is correct
127 Correct 58 ms 26972 KB Output is correct
128 Correct 74 ms 26984 KB Output is correct
129 Correct 64 ms 26948 KB Output is correct
130 Correct 75 ms 26956 KB Output is correct
131 Correct 112 ms 27508 KB Output is correct
132 Correct 1616 ms 163616 KB Output is correct
133 Correct 1535 ms 163660 KB Output is correct
134 Correct 1283 ms 164240 KB Output is correct
135 Correct 1977 ms 164172 KB Output is correct
136 Correct 2164 ms 163764 KB Output is correct
137 Correct 1248 ms 122612 KB Output is correct
138 Correct 1237 ms 123304 KB Output is correct
139 Correct 549 ms 82480 KB Output is correct
140 Correct 795 ms 163764 KB Output is correct
141 Correct 1870 ms 163644 KB Output is correct
142 Correct 2052 ms 164788 KB Output is correct