Submission #989129

# Submission time Handle Problem Language Result Execution time Memory
989129 2024-05-27T14:56:14 Z AlphaMale06 Council (JOI23_council) C++17
78 / 100
4000 ms 24916 KB
#include <bits/stdc++.h>

using namespace std;

const int N = 300001;
const int M = 20;
int a[N];
int sum[M], ans[N], mn[N], masks[N];

int dp[1<<10][1<<10], ppcnt[1<<10][1<<10];

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int n, m;
    cin >> n >> m;
    for(int i=0; i< n; i++){
        for(int j=0; j< m; j++){
            int x;
            cin >> x;
            a[i]+=x<<j;
            sum[j]+=x;
        }
    }
    for(int i=0; i< n; i++)mn[i]=1e9;
    for(int i=0; i< n; i++){
        for(int j=0; j< m; j++)sum[j]-=(a[i] & (1<<j))>>j;
        for(int j=0; j< m; j++){
            if(sum[j]>=n/2)ans[i]++;
            if(sum[j]==n/2)masks[i]+=1<<j;
        }
        for(int j=0; j< m; j++)sum[j]+=(a[i] & (1<<j))>>j;
    }
    for(int i=0; i< (1<<M); i++){
        int f = i>>10;
        int s = i%1024;
        dp[f][s]=1e9;
        ppcnt[f][s]=__builtin_popcount(f & s);
    }
    for(int i=0; i< n-1; i++){
        int x = a[i];
        int f = x>>10;
        int s = x%1024;
        for(int j = 0; j<(1<<max(0, m-10)); j++){
            dp[j][s]= min(dp[j][s], ppcnt[j][f]);
        }
        x = masks[i+1];
        f = x>>10;
        s = x%1024;
        for(int j=0; j<(1<<10); j++){
            mn[i+1]=min(mn[i+1], dp[f][j]+ppcnt[s][j]);
        }
    }
    for(int i=0; i< (1<<M); i++){
        int f = i>>10;
        int s = i%1024;
        dp[f][s]=1e9;
    }
    for(int i=n-1; i>0; i--){
        int x = a[i];
        int f = x>>10;
        int s = x%1024;
        for(int j = 0; j<(1<<max(0, m-10)); j++){
            dp[j][s]= min(dp[j][s], ppcnt[j][f]);
        }
        x = masks[i-1];
        f = x>>10;
        s = x%1024;
        for(int j=0; j<(1<<10); j++){
            mn[i-1]=min(mn[i-1], dp[f][j]+ppcnt[s][j]);
        }
    }
    for(int i=0; i< n; i++){
        cout << ans[i]-mn[i] << '\n';
    }
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 12892 KB Output is correct
2 Correct 5 ms 12892 KB Output is correct
3 Correct 5 ms 12948 KB Output is correct
4 Correct 5 ms 12892 KB Output is correct
5 Correct 7 ms 12892 KB Output is correct
6 Correct 26 ms 12888 KB Output is correct
7 Correct 5 ms 12892 KB Output is correct
8 Correct 9 ms 12952 KB Output is correct
9 Correct 19 ms 12892 KB Output is correct
10 Correct 5 ms 12892 KB Output is correct
11 Correct 6 ms 12892 KB Output is correct
12 Correct 19 ms 12956 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12892 KB Output is correct
15 Correct 5 ms 12888 KB Output is correct
16 Correct 5 ms 12952 KB Output is correct
17 Correct 5 ms 12888 KB Output is correct
18 Correct 5 ms 12892 KB Output is correct
19 Correct 5 ms 12892 KB Output is correct
20 Correct 5 ms 12948 KB Output is correct
21 Correct 6 ms 12892 KB Output is correct
22 Correct 5 ms 12948 KB Output is correct
23 Correct 5 ms 12892 KB Output is correct
24 Correct 5 ms 12892 KB Output is correct
25 Correct 5 ms 12892 KB Output is correct
26 Correct 5 ms 12888 KB Output is correct
27 Correct 5 ms 12952 KB Output is correct
28 Correct 5 ms 12892 KB Output is correct
29 Correct 5 ms 13144 KB Output is correct
30 Correct 5 ms 12892 KB Output is correct
31 Correct 5 ms 12892 KB Output is correct
32 Correct 5 ms 12892 KB Output is correct
33 Correct 5 ms 12892 KB Output is correct
34 Correct 5 ms 12952 KB Output is correct
35 Correct 5 ms 12892 KB Output is correct
36 Correct 5 ms 12888 KB Output is correct
37 Correct 5 ms 12892 KB Output is correct
38 Correct 5 ms 12892 KB Output is correct
39 Correct 5 ms 12892 KB Output is correct
40 Correct 5 ms 12892 KB Output is correct
41 Correct 5 ms 12892 KB Output is correct
42 Correct 5 ms 12948 KB Output is correct
43 Correct 5 ms 12924 KB Output is correct
44 Correct 6 ms 12888 KB Output is correct
45 Correct 5 ms 12952 KB Output is correct
46 Correct 5 ms 12888 KB Output is correct
47 Correct 5 ms 12952 KB Output is correct
48 Correct 5 ms 12892 KB Output is correct
49 Correct 5 ms 12892 KB Output is correct
50 Correct 6 ms 12892 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 12892 KB Output is correct
2 Correct 5 ms 12892 KB Output is correct
3 Correct 5 ms 12948 KB Output is correct
4 Correct 5 ms 12892 KB Output is correct
5 Correct 7 ms 12892 KB Output is correct
6 Correct 26 ms 12888 KB Output is correct
7 Correct 5 ms 12892 KB Output is correct
8 Correct 9 ms 12952 KB Output is correct
9 Correct 19 ms 12892 KB Output is correct
10 Correct 5 ms 12892 KB Output is correct
11 Correct 6 ms 12892 KB Output is correct
12 Correct 19 ms 12956 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12892 KB Output is correct
15 Correct 5 ms 12888 KB Output is correct
16 Correct 5 ms 12952 KB Output is correct
17 Correct 5 ms 12888 KB Output is correct
18 Correct 5 ms 12892 KB Output is correct
19 Correct 5 ms 12892 KB Output is correct
20 Correct 5 ms 12948 KB Output is correct
21 Correct 6 ms 12892 KB Output is correct
22 Correct 5 ms 12948 KB Output is correct
23 Correct 5 ms 12892 KB Output is correct
24 Correct 5 ms 12892 KB Output is correct
25 Correct 5 ms 12892 KB Output is correct
26 Correct 5 ms 12888 KB Output is correct
27 Correct 5 ms 12952 KB Output is correct
28 Correct 5 ms 12892 KB Output is correct
29 Correct 5 ms 13144 KB Output is correct
30 Correct 5 ms 12892 KB Output is correct
31 Correct 5 ms 12892 KB Output is correct
32 Correct 5 ms 12892 KB Output is correct
33 Correct 5 ms 12892 KB Output is correct
34 Correct 5 ms 12952 KB Output is correct
35 Correct 5 ms 12892 KB Output is correct
36 Correct 5 ms 12888 KB Output is correct
37 Correct 5 ms 12892 KB Output is correct
38 Correct 5 ms 12892 KB Output is correct
39 Correct 5 ms 12892 KB Output is correct
40 Correct 5 ms 12892 KB Output is correct
41 Correct 5 ms 12892 KB Output is correct
42 Correct 5 ms 12948 KB Output is correct
43 Correct 5 ms 12924 KB Output is correct
44 Correct 6 ms 12888 KB Output is correct
45 Correct 5 ms 12952 KB Output is correct
46 Correct 5 ms 12888 KB Output is correct
47 Correct 5 ms 12952 KB Output is correct
48 Correct 5 ms 12892 KB Output is correct
49 Correct 5 ms 12892 KB Output is correct
50 Correct 6 ms 12892 KB Output is correct
51 Correct 212 ms 12928 KB Output is correct
52 Correct 204 ms 12892 KB Output is correct
53 Correct 140 ms 12932 KB Output is correct
54 Correct 140 ms 12944 KB Output is correct
55 Correct 9 ms 12892 KB Output is correct
56 Correct 25 ms 12888 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 12892 KB Output is correct
2 Correct 441 ms 13844 KB Output is correct
3 Correct 438 ms 15020 KB Output is correct
4 Correct 432 ms 14420 KB Output is correct
5 Correct 446 ms 15020 KB Output is correct
6 Correct 433 ms 14444 KB Output is correct
7 Correct 451 ms 14928 KB Output is correct
8 Correct 6 ms 12892 KB Output is correct
9 Correct 5 ms 12888 KB Output is correct
10 Correct 6 ms 12892 KB Output is correct
11 Correct 8 ms 12748 KB Output is correct
12 Correct 5 ms 12888 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12956 KB Output is correct
15 Correct 5 ms 12892 KB Output is correct
16 Correct 5 ms 12892 KB Output is correct
17 Correct 10 ms 12964 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 12892 KB Output is correct
2 Correct 441 ms 13844 KB Output is correct
3 Correct 438 ms 15020 KB Output is correct
4 Correct 432 ms 14420 KB Output is correct
5 Correct 446 ms 15020 KB Output is correct
6 Correct 433 ms 14444 KB Output is correct
7 Correct 451 ms 14928 KB Output is correct
8 Correct 6 ms 12892 KB Output is correct
9 Correct 5 ms 12888 KB Output is correct
10 Correct 6 ms 12892 KB Output is correct
11 Correct 8 ms 12748 KB Output is correct
12 Correct 5 ms 12888 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12956 KB Output is correct
15 Correct 5 ms 12892 KB Output is correct
16 Correct 5 ms 12892 KB Output is correct
17 Correct 10 ms 12964 KB Output is correct
18 Correct 6 ms 12892 KB Output is correct
19 Correct 5 ms 12892 KB Output is correct
20 Correct 605 ms 19724 KB Output is correct
21 Correct 566 ms 19028 KB Output is correct
22 Correct 550 ms 19028 KB Output is correct
23 Correct 527 ms 20056 KB Output is correct
24 Correct 525 ms 19716 KB Output is correct
25 Correct 552 ms 19624 KB Output is correct
26 Correct 566 ms 19792 KB Output is correct
27 Correct 5 ms 12888 KB Output is correct
28 Correct 5 ms 12892 KB Output is correct
29 Correct 5 ms 12892 KB Output is correct
30 Correct 7 ms 12892 KB Output is correct
31 Correct 6 ms 12892 KB Output is correct
32 Correct 6 ms 12892 KB Output is correct
33 Correct 5 ms 12956 KB Output is correct
34 Correct 5 ms 12892 KB Output is correct
35 Correct 5 ms 12952 KB Output is correct
36 Correct 6 ms 12892 KB Output is correct
37 Correct 5 ms 12892 KB Output is correct
38 Correct 5 ms 12892 KB Output is correct
39 Correct 5 ms 12892 KB Output is correct
40 Correct 6 ms 12964 KB Output is correct
41 Correct 5 ms 12892 KB Output is correct
42 Correct 5 ms 12952 KB Output is correct
43 Correct 5 ms 12892 KB Output is correct
44 Correct 5 ms 12768 KB Output is correct
45 Correct 5 ms 12888 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 12892 KB Output is correct
2 Correct 441 ms 13844 KB Output is correct
3 Correct 438 ms 15020 KB Output is correct
4 Correct 432 ms 14420 KB Output is correct
5 Correct 446 ms 15020 KB Output is correct
6 Correct 433 ms 14444 KB Output is correct
7 Correct 451 ms 14928 KB Output is correct
8 Correct 6 ms 12892 KB Output is correct
9 Correct 5 ms 12888 KB Output is correct
10 Correct 6 ms 12892 KB Output is correct
11 Correct 8 ms 12748 KB Output is correct
12 Correct 5 ms 12888 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12956 KB Output is correct
15 Correct 5 ms 12892 KB Output is correct
16 Correct 5 ms 12892 KB Output is correct
17 Correct 10 ms 12964 KB Output is correct
18 Correct 6 ms 12892 KB Output is correct
19 Correct 5 ms 12892 KB Output is correct
20 Correct 605 ms 19724 KB Output is correct
21 Correct 566 ms 19028 KB Output is correct
22 Correct 550 ms 19028 KB Output is correct
23 Correct 527 ms 20056 KB Output is correct
24 Correct 525 ms 19716 KB Output is correct
25 Correct 552 ms 19624 KB Output is correct
26 Correct 566 ms 19792 KB Output is correct
27 Correct 5 ms 12888 KB Output is correct
28 Correct 5 ms 12892 KB Output is correct
29 Correct 5 ms 12892 KB Output is correct
30 Correct 7 ms 12892 KB Output is correct
31 Correct 6 ms 12892 KB Output is correct
32 Correct 6 ms 12892 KB Output is correct
33 Correct 5 ms 12956 KB Output is correct
34 Correct 5 ms 12892 KB Output is correct
35 Correct 5 ms 12952 KB Output is correct
36 Correct 6 ms 12892 KB Output is correct
37 Correct 5 ms 12892 KB Output is correct
38 Correct 5 ms 12892 KB Output is correct
39 Correct 5 ms 12892 KB Output is correct
40 Correct 6 ms 12964 KB Output is correct
41 Correct 5 ms 12892 KB Output is correct
42 Correct 5 ms 12952 KB Output is correct
43 Correct 5 ms 12892 KB Output is correct
44 Correct 5 ms 12768 KB Output is correct
45 Correct 5 ms 12888 KB Output is correct
46 Correct 6 ms 12892 KB Output is correct
47 Correct 669 ms 22196 KB Output is correct
48 Correct 596 ms 21332 KB Output is correct
49 Correct 611 ms 21332 KB Output is correct
50 Correct 614 ms 22456 KB Output is correct
51 Correct 646 ms 21952 KB Output is correct
52 Correct 626 ms 22060 KB Output is correct
53 Correct 640 ms 22576 KB Output is correct
54 Correct 6 ms 12892 KB Output is correct
55 Correct 5 ms 12892 KB Output is correct
56 Correct 5 ms 12892 KB Output is correct
57 Correct 5 ms 12892 KB Output is correct
58 Correct 5 ms 12952 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 12892 KB Output is correct
2 Correct 441 ms 13844 KB Output is correct
3 Correct 438 ms 15020 KB Output is correct
4 Correct 432 ms 14420 KB Output is correct
5 Correct 446 ms 15020 KB Output is correct
6 Correct 433 ms 14444 KB Output is correct
7 Correct 451 ms 14928 KB Output is correct
8 Correct 6 ms 12892 KB Output is correct
9 Correct 5 ms 12888 KB Output is correct
10 Correct 6 ms 12892 KB Output is correct
11 Correct 8 ms 12748 KB Output is correct
12 Correct 5 ms 12888 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12956 KB Output is correct
15 Correct 5 ms 12892 KB Output is correct
16 Correct 5 ms 12892 KB Output is correct
17 Correct 10 ms 12964 KB Output is correct
18 Correct 6 ms 12892 KB Output is correct
19 Correct 5 ms 12892 KB Output is correct
20 Correct 605 ms 19724 KB Output is correct
21 Correct 566 ms 19028 KB Output is correct
22 Correct 550 ms 19028 KB Output is correct
23 Correct 527 ms 20056 KB Output is correct
24 Correct 525 ms 19716 KB Output is correct
25 Correct 552 ms 19624 KB Output is correct
26 Correct 566 ms 19792 KB Output is correct
27 Correct 5 ms 12888 KB Output is correct
28 Correct 5 ms 12892 KB Output is correct
29 Correct 5 ms 12892 KB Output is correct
30 Correct 7 ms 12892 KB Output is correct
31 Correct 6 ms 12892 KB Output is correct
32 Correct 6 ms 12892 KB Output is correct
33 Correct 5 ms 12956 KB Output is correct
34 Correct 5 ms 12892 KB Output is correct
35 Correct 5 ms 12952 KB Output is correct
36 Correct 6 ms 12892 KB Output is correct
37 Correct 5 ms 12892 KB Output is correct
38 Correct 5 ms 12892 KB Output is correct
39 Correct 5 ms 12892 KB Output is correct
40 Correct 6 ms 12964 KB Output is correct
41 Correct 5 ms 12892 KB Output is correct
42 Correct 5 ms 12952 KB Output is correct
43 Correct 5 ms 12892 KB Output is correct
44 Correct 5 ms 12768 KB Output is correct
45 Correct 5 ms 12888 KB Output is correct
46 Correct 6 ms 12892 KB Output is correct
47 Correct 669 ms 22196 KB Output is correct
48 Correct 596 ms 21332 KB Output is correct
49 Correct 611 ms 21332 KB Output is correct
50 Correct 614 ms 22456 KB Output is correct
51 Correct 646 ms 21952 KB Output is correct
52 Correct 626 ms 22060 KB Output is correct
53 Correct 640 ms 22576 KB Output is correct
54 Correct 6 ms 12892 KB Output is correct
55 Correct 5 ms 12892 KB Output is correct
56 Correct 5 ms 12892 KB Output is correct
57 Correct 5 ms 12892 KB Output is correct
58 Correct 5 ms 12952 KB Output is correct
59 Correct 1042 ms 23472 KB Output is correct
60 Correct 725 ms 16960 KB Output is correct
61 Correct 756 ms 17232 KB Output is correct
62 Correct 820 ms 17404 KB Output is correct
63 Correct 1145 ms 23224 KB Output is correct
64 Correct 1886 ms 23816 KB Output is correct
65 Correct 1829 ms 23888 KB Output is correct
66 Correct 1771 ms 24144 KB Output is correct
67 Correct 2568 ms 23888 KB Output is correct
68 Correct 1819 ms 23888 KB Output is correct
69 Correct 1888 ms 24144 KB Output is correct
70 Correct 5 ms 12892 KB Output is correct
71 Correct 5 ms 12892 KB Output is correct
72 Correct 5 ms 12892 KB Output is correct
73 Correct 5 ms 12956 KB Output is correct
74 Correct 5 ms 12892 KB Output is correct
75 Correct 27 ms 13024 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 12892 KB Output is correct
2 Correct 5 ms 12892 KB Output is correct
3 Correct 5 ms 12948 KB Output is correct
4 Correct 5 ms 12892 KB Output is correct
5 Correct 7 ms 12892 KB Output is correct
6 Correct 26 ms 12888 KB Output is correct
7 Correct 5 ms 12892 KB Output is correct
8 Correct 9 ms 12952 KB Output is correct
9 Correct 19 ms 12892 KB Output is correct
10 Correct 5 ms 12892 KB Output is correct
11 Correct 6 ms 12892 KB Output is correct
12 Correct 19 ms 12956 KB Output is correct
13 Correct 5 ms 12892 KB Output is correct
14 Correct 5 ms 12892 KB Output is correct
15 Correct 5 ms 12888 KB Output is correct
16 Correct 5 ms 12952 KB Output is correct
17 Correct 5 ms 12888 KB Output is correct
18 Correct 5 ms 12892 KB Output is correct
19 Correct 5 ms 12892 KB Output is correct
20 Correct 5 ms 12948 KB Output is correct
21 Correct 6 ms 12892 KB Output is correct
22 Correct 5 ms 12948 KB Output is correct
23 Correct 5 ms 12892 KB Output is correct
24 Correct 5 ms 12892 KB Output is correct
25 Correct 5 ms 12892 KB Output is correct
26 Correct 5 ms 12888 KB Output is correct
27 Correct 5 ms 12952 KB Output is correct
28 Correct 5 ms 12892 KB Output is correct
29 Correct 5 ms 13144 KB Output is correct
30 Correct 5 ms 12892 KB Output is correct
31 Correct 5 ms 12892 KB Output is correct
32 Correct 5 ms 12892 KB Output is correct
33 Correct 5 ms 12892 KB Output is correct
34 Correct 5 ms 12952 KB Output is correct
35 Correct 5 ms 12892 KB Output is correct
36 Correct 5 ms 12888 KB Output is correct
37 Correct 5 ms 12892 KB Output is correct
38 Correct 5 ms 12892 KB Output is correct
39 Correct 5 ms 12892 KB Output is correct
40 Correct 5 ms 12892 KB Output is correct
41 Correct 5 ms 12892 KB Output is correct
42 Correct 5 ms 12948 KB Output is correct
43 Correct 5 ms 12924 KB Output is correct
44 Correct 6 ms 12888 KB Output is correct
45 Correct 5 ms 12952 KB Output is correct
46 Correct 5 ms 12888 KB Output is correct
47 Correct 5 ms 12952 KB Output is correct
48 Correct 5 ms 12892 KB Output is correct
49 Correct 5 ms 12892 KB Output is correct
50 Correct 6 ms 12892 KB Output is correct
51 Correct 212 ms 12928 KB Output is correct
52 Correct 204 ms 12892 KB Output is correct
53 Correct 140 ms 12932 KB Output is correct
54 Correct 140 ms 12944 KB Output is correct
55 Correct 9 ms 12892 KB Output is correct
56 Correct 25 ms 12888 KB Output is correct
57 Correct 5 ms 12892 KB Output is correct
58 Correct 441 ms 13844 KB Output is correct
59 Correct 438 ms 15020 KB Output is correct
60 Correct 432 ms 14420 KB Output is correct
61 Correct 446 ms 15020 KB Output is correct
62 Correct 433 ms 14444 KB Output is correct
63 Correct 451 ms 14928 KB Output is correct
64 Correct 6 ms 12892 KB Output is correct
65 Correct 5 ms 12888 KB Output is correct
66 Correct 6 ms 12892 KB Output is correct
67 Correct 8 ms 12748 KB Output is correct
68 Correct 5 ms 12888 KB Output is correct
69 Correct 5 ms 12892 KB Output is correct
70 Correct 5 ms 12956 KB Output is correct
71 Correct 5 ms 12892 KB Output is correct
72 Correct 5 ms 12892 KB Output is correct
73 Correct 10 ms 12964 KB Output is correct
74 Correct 6 ms 12892 KB Output is correct
75 Correct 5 ms 12892 KB Output is correct
76 Correct 605 ms 19724 KB Output is correct
77 Correct 566 ms 19028 KB Output is correct
78 Correct 550 ms 19028 KB Output is correct
79 Correct 527 ms 20056 KB Output is correct
80 Correct 525 ms 19716 KB Output is correct
81 Correct 552 ms 19624 KB Output is correct
82 Correct 566 ms 19792 KB Output is correct
83 Correct 5 ms 12888 KB Output is correct
84 Correct 5 ms 12892 KB Output is correct
85 Correct 5 ms 12892 KB Output is correct
86 Correct 7 ms 12892 KB Output is correct
87 Correct 6 ms 12892 KB Output is correct
88 Correct 6 ms 12892 KB Output is correct
89 Correct 5 ms 12956 KB Output is correct
90 Correct 5 ms 12892 KB Output is correct
91 Correct 5 ms 12952 KB Output is correct
92 Correct 6 ms 12892 KB Output is correct
93 Correct 5 ms 12892 KB Output is correct
94 Correct 5 ms 12892 KB Output is correct
95 Correct 5 ms 12892 KB Output is correct
96 Correct 6 ms 12964 KB Output is correct
97 Correct 5 ms 12892 KB Output is correct
98 Correct 5 ms 12952 KB Output is correct
99 Correct 5 ms 12892 KB Output is correct
100 Correct 5 ms 12768 KB Output is correct
101 Correct 5 ms 12888 KB Output is correct
102 Correct 6 ms 12892 KB Output is correct
103 Correct 669 ms 22196 KB Output is correct
104 Correct 596 ms 21332 KB Output is correct
105 Correct 611 ms 21332 KB Output is correct
106 Correct 614 ms 22456 KB Output is correct
107 Correct 646 ms 21952 KB Output is correct
108 Correct 626 ms 22060 KB Output is correct
109 Correct 640 ms 22576 KB Output is correct
110 Correct 6 ms 12892 KB Output is correct
111 Correct 5 ms 12892 KB Output is correct
112 Correct 5 ms 12892 KB Output is correct
113 Correct 5 ms 12892 KB Output is correct
114 Correct 5 ms 12952 KB Output is correct
115 Correct 1042 ms 23472 KB Output is correct
116 Correct 725 ms 16960 KB Output is correct
117 Correct 756 ms 17232 KB Output is correct
118 Correct 820 ms 17404 KB Output is correct
119 Correct 1145 ms 23224 KB Output is correct
120 Correct 1886 ms 23816 KB Output is correct
121 Correct 1829 ms 23888 KB Output is correct
122 Correct 1771 ms 24144 KB Output is correct
123 Correct 2568 ms 23888 KB Output is correct
124 Correct 1819 ms 23888 KB Output is correct
125 Correct 1888 ms 24144 KB Output is correct
126 Correct 5 ms 12892 KB Output is correct
127 Correct 5 ms 12892 KB Output is correct
128 Correct 5 ms 12892 KB Output is correct
129 Correct 5 ms 12956 KB Output is correct
130 Correct 5 ms 12892 KB Output is correct
131 Correct 27 ms 13024 KB Output is correct
132 Execution timed out 4067 ms 24916 KB Time limit exceeded
133 Halted 0 ms 0 KB -