Submission #1100416

# Submission time Handle Problem Language Result Execution time Memory
1100416 2024-10-13T19:10:33 Z imarn Council (JOI23_council) C++14
100 / 100
505 ms 53888 KB
#include<bits/stdc++.h>
#define ll long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define plx pair<ll,int>
#define f first
#define s second
#define pb push_back
#define all(x) x.begin(),x.end()
#define vi vector<int>
#define vl vector<ll>
#define vvi vector<vi>
using namespace std;
const ll inf=1e9+7,mxn=2e5+5,B=17;
bool vis[1<<20]{0};
int cal(int x,int rs=0){
    while(x>0){
        if(x&1)rs++;x>>=1;
    }return rs;
}int dp[1<<20][2]{0};
int pr[1<<20][2]{0};
int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);
    int n,m;cin>>n>>m;int a[n][m];
    int sum[m]={0};
    for(int i=0;i<n;i++){int rs=0;
        for(int j=0;j<m;j++){
            cin>>a[i][j];sum[j]+=a[i][j];
            if(a[i][j])rs+=1<<j;
        }if(!vis[rs])vis[rs]=1,pr[rs][0]=i+1;
        else pr[rs][1]=i+1;
    }int mm=(1<<m);
    for(int i=0;i<mm;i++){
        for(int j=0;j<m;j++){
            if((i&(1<<j))&&vis[i^(1<<j)]){
                if(!vis[i]){
                    vis[i]=1;
                    if(pr[i^(1<<j)][0])pr[i][0]=pr[i^(1<<j)][0];
                    if(pr[i^(1<<j)][1])pr[i][1]=pr[i^(1<<j)][1];
                }
                else {
                    if(pr[i^(1<<j)][0]&&pr[i^(1<<j)][0]!=pr[i][0])pr[i][1]=pr[i^(1<<j)][0];
                    if(pr[i^(1<<j)][1]&&pr[i^(1<<j)][1]!=pr[i][0])pr[i][1]=pr[i^(1<<j)][1];
                }
            }
        }
    }
    for(int i=mm-1;i>=0;i--){
        dp[i][0]=dp[i][1]=1e9;
        if(vis[i]&&pr[i][0])dp[i][0]=cal(i);
        if(vis[i]&&pr[i][1])dp[i][1]=cal(i);
        for(int j=0;j<m;j++){
            if(!(i&(1<<j))){
                int bt=i^(1<<j);
                if(pr[bt][0]){
                    int tmp=dp[bt][0],tmp2=pr[bt][0];
                    if(tmp<dp[i][0]){
                        swap(dp[i][0],tmp);
                        swap(pr[i][0],tmp2);
                    }
                    if(tmp<dp[i][1]&&tmp2!=pr[i][0]){
                        swap(dp[i][1],tmp);
                        swap(pr[i][1],tmp2);
                    }
                }
                if(pr[bt][1]){
                    int tmp=dp[bt][1],tmp2=pr[bt][1];
                    if(tmp<dp[i][0]){
                        swap(dp[i][0],tmp);
                        swap(pr[i][0],tmp2);
                    }
                    if(tmp<dp[i][1]&&tmp2!=pr[i][0]){
                        swap(dp[i][1],tmp);
                        swap(pr[i][1],tmp2);
                    }
                }
            }
        }
    }
    int go=n/2;
    for(int i=0;i<n;i++){
        int rs=0,ans=0;
        for(int j=0;j<m;j++){
            sum[j]-=a[i][j];
            if(sum[j]<go)rs+=1<<j;
            if(sum[j]>go)rs+=1<<j,ans++;
            if(sum[j]==go)ans++;
            sum[j]+=a[i][j];
        }
        if(pr[rs][0]!=i+1)cout<<ans-(dp[rs][0]-cal(rs))<<'\n';
        else cout<<ans-(dp[rs][1]-cal(rs))<<'\n';
    }
}

Compilation message

council.cpp: In function 'int cal(int, int)':
council.cpp:18:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |         if(x&1)rs++;x>>=1;
      |         ^~
council.cpp:18:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   18 |         if(x&1)rs++;x>>=1;
      |                     ^
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 1 ms 2388 KB Output is correct
3 Correct 1 ms 2516 KB Output is correct
4 Correct 1 ms 2388 KB Output is correct
5 Correct 157 ms 17228 KB Output is correct
6 Correct 144 ms 16888 KB Output is correct
7 Correct 139 ms 17228 KB Output is correct
8 Correct 147 ms 17204 KB Output is correct
9 Correct 158 ms 17844 KB Output is correct
10 Correct 154 ms 17232 KB Output is correct
11 Correct 152 ms 17740 KB Output is correct
12 Correct 156 ms 17740 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 1 ms 2388 KB Output is correct
18 Correct 1 ms 2388 KB Output is correct
19 Correct 1 ms 2388 KB Output is correct
20 Correct 1 ms 2388 KB Output is correct
21 Correct 1 ms 2388 KB Output is correct
22 Correct 1 ms 2388 KB Output is correct
23 Correct 1 ms 2516 KB Output is correct
24 Correct 1 ms 2388 KB Output is correct
25 Correct 1 ms 2388 KB Output is correct
26 Correct 1 ms 2388 KB Output is correct
27 Correct 1 ms 2388 KB Output is correct
28 Correct 1 ms 2388 KB Output is correct
29 Correct 1 ms 2388 KB Output is correct
30 Correct 1 ms 2388 KB Output is correct
31 Correct 1 ms 2388 KB Output is correct
32 Correct 1 ms 2388 KB Output is correct
33 Correct 1 ms 2388 KB Output is correct
34 Correct 1 ms 2388 KB Output is correct
35 Correct 1 ms 2388 KB Output is correct
36 Correct 1 ms 2388 KB Output is correct
37 Correct 1 ms 2552 KB Output is correct
38 Correct 1 ms 2552 KB Output is correct
39 Correct 1 ms 2388 KB Output is correct
40 Correct 1 ms 2388 KB Output is correct
41 Correct 3 ms 2644 KB Output is correct
42 Correct 3 ms 2644 KB Output is correct
43 Correct 3 ms 2668 KB Output is correct
44 Correct 3 ms 2644 KB Output is correct
45 Correct 3 ms 2648 KB Output is correct
46 Correct 20 ms 6752 KB Output is correct
47 Correct 17 ms 6740 KB Output is correct
48 Correct 18 ms 6792 KB Output is correct
49 Correct 18 ms 6740 KB Output is correct
50 Correct 18 ms 6732 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 1 ms 2388 KB Output is correct
3 Correct 1 ms 2516 KB Output is correct
4 Correct 1 ms 2388 KB Output is correct
5 Correct 157 ms 17228 KB Output is correct
6 Correct 144 ms 16888 KB Output is correct
7 Correct 139 ms 17228 KB Output is correct
8 Correct 147 ms 17204 KB Output is correct
9 Correct 158 ms 17844 KB Output is correct
10 Correct 154 ms 17232 KB Output is correct
11 Correct 152 ms 17740 KB Output is correct
12 Correct 156 ms 17740 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 1 ms 2388 KB Output is correct
18 Correct 1 ms 2388 KB Output is correct
19 Correct 1 ms 2388 KB Output is correct
20 Correct 1 ms 2388 KB Output is correct
21 Correct 1 ms 2388 KB Output is correct
22 Correct 1 ms 2388 KB Output is correct
23 Correct 1 ms 2516 KB Output is correct
24 Correct 1 ms 2388 KB Output is correct
25 Correct 1 ms 2388 KB Output is correct
26 Correct 1 ms 2388 KB Output is correct
27 Correct 1 ms 2388 KB Output is correct
28 Correct 1 ms 2388 KB Output is correct
29 Correct 1 ms 2388 KB Output is correct
30 Correct 1 ms 2388 KB Output is correct
31 Correct 1 ms 2388 KB Output is correct
32 Correct 1 ms 2388 KB Output is correct
33 Correct 1 ms 2388 KB Output is correct
34 Correct 1 ms 2388 KB Output is correct
35 Correct 1 ms 2388 KB Output is correct
36 Correct 1 ms 2388 KB Output is correct
37 Correct 1 ms 2552 KB Output is correct
38 Correct 1 ms 2552 KB Output is correct
39 Correct 1 ms 2388 KB Output is correct
40 Correct 1 ms 2388 KB Output is correct
41 Correct 3 ms 2644 KB Output is correct
42 Correct 3 ms 2644 KB Output is correct
43 Correct 3 ms 2668 KB Output is correct
44 Correct 3 ms 2644 KB Output is correct
45 Correct 3 ms 2648 KB Output is correct
46 Correct 20 ms 6752 KB Output is correct
47 Correct 17 ms 6740 KB Output is correct
48 Correct 18 ms 6792 KB Output is correct
49 Correct 18 ms 6740 KB Output is correct
50 Correct 18 ms 6732 KB Output is correct
51 Correct 145 ms 17228 KB Output is correct
52 Correct 184 ms 18252 KB Output is correct
53 Correct 167 ms 18164 KB Output is correct
54 Correct 184 ms 18164 KB Output is correct
55 Correct 1 ms 2388 KB Output is correct
56 Correct 25 ms 6996 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 39 ms 6476 KB Output is correct
3 Correct 46 ms 6512 KB Output is correct
4 Correct 27 ms 4708 KB Output is correct
5 Correct 40 ms 6476 KB Output is correct
6 Correct 30 ms 4692 KB Output is correct
7 Correct 46 ms 6476 KB Output is correct
8 Correct 1 ms 2388 KB Output is correct
9 Correct 1 ms 2388 KB Output is correct
10 Correct 1 ms 2388 KB Output is correct
11 Correct 1 ms 2388 KB Output is correct
12 Correct 1 ms 2388 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 2 ms 2388 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 39 ms 6476 KB Output is correct
3 Correct 46 ms 6512 KB Output is correct
4 Correct 27 ms 4708 KB Output is correct
5 Correct 40 ms 6476 KB Output is correct
6 Correct 30 ms 4692 KB Output is correct
7 Correct 46 ms 6476 KB Output is correct
8 Correct 1 ms 2388 KB Output is correct
9 Correct 1 ms 2388 KB Output is correct
10 Correct 1 ms 2388 KB Output is correct
11 Correct 1 ms 2388 KB Output is correct
12 Correct 1 ms 2388 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 2 ms 2388 KB Output is correct
18 Correct 1 ms 2552 KB Output is correct
19 Correct 1 ms 2388 KB Output is correct
20 Correct 153 ms 20648 KB Output is correct
21 Correct 145 ms 18956 KB Output is correct
22 Correct 138 ms 18764 KB Output is correct
23 Correct 139 ms 20900 KB Output is correct
24 Correct 130 ms 20524 KB Output is correct
25 Correct 144 ms 20556 KB Output is correct
26 Correct 158 ms 20556 KB Output is correct
27 Correct 1 ms 2388 KB Output is correct
28 Correct 1 ms 2388 KB Output is correct
29 Correct 1 ms 2552 KB Output is correct
30 Correct 1 ms 2388 KB Output is correct
31 Correct 1 ms 2388 KB Output is correct
32 Correct 1 ms 2460 KB Output is correct
33 Correct 1 ms 2524 KB Output is correct
34 Correct 1 ms 2388 KB Output is correct
35 Correct 1 ms 2388 KB Output is correct
36 Correct 1 ms 2388 KB Output is correct
37 Correct 1 ms 2388 KB Output is correct
38 Correct 1 ms 2388 KB Output is correct
39 Correct 1 ms 2388 KB Output is correct
40 Correct 1 ms 2388 KB Output is correct
41 Correct 1 ms 2388 KB Output is correct
42 Correct 1 ms 2388 KB Output is correct
43 Correct 1 ms 2388 KB Output is correct
44 Correct 1 ms 2388 KB Output is correct
45 Correct 1 ms 2388 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 39 ms 6476 KB Output is correct
3 Correct 46 ms 6512 KB Output is correct
4 Correct 27 ms 4708 KB Output is correct
5 Correct 40 ms 6476 KB Output is correct
6 Correct 30 ms 4692 KB Output is correct
7 Correct 46 ms 6476 KB Output is correct
8 Correct 1 ms 2388 KB Output is correct
9 Correct 1 ms 2388 KB Output is correct
10 Correct 1 ms 2388 KB Output is correct
11 Correct 1 ms 2388 KB Output is correct
12 Correct 1 ms 2388 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 2 ms 2388 KB Output is correct
18 Correct 1 ms 2552 KB Output is correct
19 Correct 1 ms 2388 KB Output is correct
20 Correct 153 ms 20648 KB Output is correct
21 Correct 145 ms 18956 KB Output is correct
22 Correct 138 ms 18764 KB Output is correct
23 Correct 139 ms 20900 KB Output is correct
24 Correct 130 ms 20524 KB Output is correct
25 Correct 144 ms 20556 KB Output is correct
26 Correct 158 ms 20556 KB Output is correct
27 Correct 1 ms 2388 KB Output is correct
28 Correct 1 ms 2388 KB Output is correct
29 Correct 1 ms 2552 KB Output is correct
30 Correct 1 ms 2388 KB Output is correct
31 Correct 1 ms 2388 KB Output is correct
32 Correct 1 ms 2460 KB Output is correct
33 Correct 1 ms 2524 KB Output is correct
34 Correct 1 ms 2388 KB Output is correct
35 Correct 1 ms 2388 KB Output is correct
36 Correct 1 ms 2388 KB Output is correct
37 Correct 1 ms 2388 KB Output is correct
38 Correct 1 ms 2388 KB Output is correct
39 Correct 1 ms 2388 KB Output is correct
40 Correct 1 ms 2388 KB Output is correct
41 Correct 1 ms 2388 KB Output is correct
42 Correct 1 ms 2388 KB Output is correct
43 Correct 1 ms 2388 KB Output is correct
44 Correct 1 ms 2388 KB Output is correct
45 Correct 1 ms 2388 KB Output is correct
46 Correct 2 ms 2388 KB Output is correct
47 Correct 205 ms 27908 KB Output is correct
48 Correct 186 ms 25932 KB Output is correct
49 Correct 193 ms 25944 KB Output is correct
50 Correct 169 ms 28148 KB Output is correct
51 Correct 176 ms 27724 KB Output is correct
52 Correct 209 ms 27796 KB Output is correct
53 Correct 205 ms 27980 KB Output is correct
54 Correct 3 ms 2644 KB Output is correct
55 Correct 3 ms 2640 KB Output is correct
56 Correct 3 ms 2644 KB Output is correct
57 Correct 3 ms 2644 KB Output is correct
58 Correct 3 ms 2644 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 39 ms 6476 KB Output is correct
3 Correct 46 ms 6512 KB Output is correct
4 Correct 27 ms 4708 KB Output is correct
5 Correct 40 ms 6476 KB Output is correct
6 Correct 30 ms 4692 KB Output is correct
7 Correct 46 ms 6476 KB Output is correct
8 Correct 1 ms 2388 KB Output is correct
9 Correct 1 ms 2388 KB Output is correct
10 Correct 1 ms 2388 KB Output is correct
11 Correct 1 ms 2388 KB Output is correct
12 Correct 1 ms 2388 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 2 ms 2388 KB Output is correct
18 Correct 1 ms 2552 KB Output is correct
19 Correct 1 ms 2388 KB Output is correct
20 Correct 153 ms 20648 KB Output is correct
21 Correct 145 ms 18956 KB Output is correct
22 Correct 138 ms 18764 KB Output is correct
23 Correct 139 ms 20900 KB Output is correct
24 Correct 130 ms 20524 KB Output is correct
25 Correct 144 ms 20556 KB Output is correct
26 Correct 158 ms 20556 KB Output is correct
27 Correct 1 ms 2388 KB Output is correct
28 Correct 1 ms 2388 KB Output is correct
29 Correct 1 ms 2552 KB Output is correct
30 Correct 1 ms 2388 KB Output is correct
31 Correct 1 ms 2388 KB Output is correct
32 Correct 1 ms 2460 KB Output is correct
33 Correct 1 ms 2524 KB Output is correct
34 Correct 1 ms 2388 KB Output is correct
35 Correct 1 ms 2388 KB Output is correct
36 Correct 1 ms 2388 KB Output is correct
37 Correct 1 ms 2388 KB Output is correct
38 Correct 1 ms 2388 KB Output is correct
39 Correct 1 ms 2388 KB Output is correct
40 Correct 1 ms 2388 KB Output is correct
41 Correct 1 ms 2388 KB Output is correct
42 Correct 1 ms 2388 KB Output is correct
43 Correct 1 ms 2388 KB Output is correct
44 Correct 1 ms 2388 KB Output is correct
45 Correct 1 ms 2388 KB Output is correct
46 Correct 2 ms 2388 KB Output is correct
47 Correct 205 ms 27908 KB Output is correct
48 Correct 186 ms 25932 KB Output is correct
49 Correct 193 ms 25944 KB Output is correct
50 Correct 169 ms 28148 KB Output is correct
51 Correct 176 ms 27724 KB Output is correct
52 Correct 209 ms 27796 KB Output is correct
53 Correct 205 ms 27980 KB Output is correct
54 Correct 3 ms 2644 KB Output is correct
55 Correct 3 ms 2640 KB Output is correct
56 Correct 3 ms 2644 KB Output is correct
57 Correct 3 ms 2644 KB Output is correct
58 Correct 3 ms 2644 KB Output is correct
59 Correct 220 ms 35876 KB Output is correct
60 Correct 124 ms 18564 KB Output is correct
61 Correct 142 ms 19800 KB Output is correct
62 Correct 134 ms 19952 KB Output is correct
63 Correct 262 ms 35404 KB Output is correct
64 Correct 280 ms 37268 KB Output is correct
65 Correct 274 ms 37452 KB Output is correct
66 Correct 219 ms 37452 KB Output is correct
67 Correct 229 ms 37452 KB Output is correct
68 Correct 255 ms 37252 KB Output is correct
69 Correct 282 ms 37612 KB Output is correct
70 Correct 22 ms 6740 KB Output is correct
71 Correct 18 ms 6740 KB Output is correct
72 Correct 18 ms 6788 KB Output is correct
73 Correct 17 ms 6740 KB Output is correct
74 Correct 18 ms 6740 KB Output is correct
75 Correct 25 ms 6988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2388 KB Output is correct
2 Correct 1 ms 2388 KB Output is correct
3 Correct 1 ms 2516 KB Output is correct
4 Correct 1 ms 2388 KB Output is correct
5 Correct 157 ms 17228 KB Output is correct
6 Correct 144 ms 16888 KB Output is correct
7 Correct 139 ms 17228 KB Output is correct
8 Correct 147 ms 17204 KB Output is correct
9 Correct 158 ms 17844 KB Output is correct
10 Correct 154 ms 17232 KB Output is correct
11 Correct 152 ms 17740 KB Output is correct
12 Correct 156 ms 17740 KB Output is correct
13 Correct 1 ms 2388 KB Output is correct
14 Correct 1 ms 2388 KB Output is correct
15 Correct 1 ms 2388 KB Output is correct
16 Correct 1 ms 2388 KB Output is correct
17 Correct 1 ms 2388 KB Output is correct
18 Correct 1 ms 2388 KB Output is correct
19 Correct 1 ms 2388 KB Output is correct
20 Correct 1 ms 2388 KB Output is correct
21 Correct 1 ms 2388 KB Output is correct
22 Correct 1 ms 2388 KB Output is correct
23 Correct 1 ms 2516 KB Output is correct
24 Correct 1 ms 2388 KB Output is correct
25 Correct 1 ms 2388 KB Output is correct
26 Correct 1 ms 2388 KB Output is correct
27 Correct 1 ms 2388 KB Output is correct
28 Correct 1 ms 2388 KB Output is correct
29 Correct 1 ms 2388 KB Output is correct
30 Correct 1 ms 2388 KB Output is correct
31 Correct 1 ms 2388 KB Output is correct
32 Correct 1 ms 2388 KB Output is correct
33 Correct 1 ms 2388 KB Output is correct
34 Correct 1 ms 2388 KB Output is correct
35 Correct 1 ms 2388 KB Output is correct
36 Correct 1 ms 2388 KB Output is correct
37 Correct 1 ms 2552 KB Output is correct
38 Correct 1 ms 2552 KB Output is correct
39 Correct 1 ms 2388 KB Output is correct
40 Correct 1 ms 2388 KB Output is correct
41 Correct 3 ms 2644 KB Output is correct
42 Correct 3 ms 2644 KB Output is correct
43 Correct 3 ms 2668 KB Output is correct
44 Correct 3 ms 2644 KB Output is correct
45 Correct 3 ms 2648 KB Output is correct
46 Correct 20 ms 6752 KB Output is correct
47 Correct 17 ms 6740 KB Output is correct
48 Correct 18 ms 6792 KB Output is correct
49 Correct 18 ms 6740 KB Output is correct
50 Correct 18 ms 6732 KB Output is correct
51 Correct 145 ms 17228 KB Output is correct
52 Correct 184 ms 18252 KB Output is correct
53 Correct 167 ms 18164 KB Output is correct
54 Correct 184 ms 18164 KB Output is correct
55 Correct 1 ms 2388 KB Output is correct
56 Correct 25 ms 6996 KB Output is correct
57 Correct 1 ms 2388 KB Output is correct
58 Correct 39 ms 6476 KB Output is correct
59 Correct 46 ms 6512 KB Output is correct
60 Correct 27 ms 4708 KB Output is correct
61 Correct 40 ms 6476 KB Output is correct
62 Correct 30 ms 4692 KB Output is correct
63 Correct 46 ms 6476 KB Output is correct
64 Correct 1 ms 2388 KB Output is correct
65 Correct 1 ms 2388 KB Output is correct
66 Correct 1 ms 2388 KB Output is correct
67 Correct 1 ms 2388 KB Output is correct
68 Correct 1 ms 2388 KB Output is correct
69 Correct 1 ms 2388 KB Output is correct
70 Correct 1 ms 2388 KB Output is correct
71 Correct 1 ms 2388 KB Output is correct
72 Correct 1 ms 2388 KB Output is correct
73 Correct 2 ms 2388 KB Output is correct
74 Correct 1 ms 2552 KB Output is correct
75 Correct 1 ms 2388 KB Output is correct
76 Correct 153 ms 20648 KB Output is correct
77 Correct 145 ms 18956 KB Output is correct
78 Correct 138 ms 18764 KB Output is correct
79 Correct 139 ms 20900 KB Output is correct
80 Correct 130 ms 20524 KB Output is correct
81 Correct 144 ms 20556 KB Output is correct
82 Correct 158 ms 20556 KB Output is correct
83 Correct 1 ms 2388 KB Output is correct
84 Correct 1 ms 2388 KB Output is correct
85 Correct 1 ms 2552 KB Output is correct
86 Correct 1 ms 2388 KB Output is correct
87 Correct 1 ms 2388 KB Output is correct
88 Correct 1 ms 2460 KB Output is correct
89 Correct 1 ms 2524 KB Output is correct
90 Correct 1 ms 2388 KB Output is correct
91 Correct 1 ms 2388 KB Output is correct
92 Correct 1 ms 2388 KB Output is correct
93 Correct 1 ms 2388 KB Output is correct
94 Correct 1 ms 2388 KB Output is correct
95 Correct 1 ms 2388 KB Output is correct
96 Correct 1 ms 2388 KB Output is correct
97 Correct 1 ms 2388 KB Output is correct
98 Correct 1 ms 2388 KB Output is correct
99 Correct 1 ms 2388 KB Output is correct
100 Correct 1 ms 2388 KB Output is correct
101 Correct 1 ms 2388 KB Output is correct
102 Correct 2 ms 2388 KB Output is correct
103 Correct 205 ms 27908 KB Output is correct
104 Correct 186 ms 25932 KB Output is correct
105 Correct 193 ms 25944 KB Output is correct
106 Correct 169 ms 28148 KB Output is correct
107 Correct 176 ms 27724 KB Output is correct
108 Correct 209 ms 27796 KB Output is correct
109 Correct 205 ms 27980 KB Output is correct
110 Correct 3 ms 2644 KB Output is correct
111 Correct 3 ms 2640 KB Output is correct
112 Correct 3 ms 2644 KB Output is correct
113 Correct 3 ms 2644 KB Output is correct
114 Correct 3 ms 2644 KB Output is correct
115 Correct 220 ms 35876 KB Output is correct
116 Correct 124 ms 18564 KB Output is correct
117 Correct 142 ms 19800 KB Output is correct
118 Correct 134 ms 19952 KB Output is correct
119 Correct 262 ms 35404 KB Output is correct
120 Correct 280 ms 37268 KB Output is correct
121 Correct 274 ms 37452 KB Output is correct
122 Correct 219 ms 37452 KB Output is correct
123 Correct 229 ms 37452 KB Output is correct
124 Correct 255 ms 37252 KB Output is correct
125 Correct 282 ms 37612 KB Output is correct
126 Correct 22 ms 6740 KB Output is correct
127 Correct 18 ms 6740 KB Output is correct
128 Correct 18 ms 6788 KB Output is correct
129 Correct 17 ms 6740 KB Output is correct
130 Correct 18 ms 6740 KB Output is correct
131 Correct 25 ms 6988 KB Output is correct
132 Correct 487 ms 53888 KB Output is correct
133 Correct 452 ms 53816 KB Output is correct
134 Correct 499 ms 53836 KB Output is correct
135 Correct 492 ms 53836 KB Output is correct
136 Correct 466 ms 53836 KB Output is correct
137 Correct 376 ms 45432 KB Output is correct
138 Correct 348 ms 45660 KB Output is correct
139 Correct 394 ms 52812 KB Output is correct
140 Correct 426 ms 53620 KB Output is correct
141 Correct 479 ms 53568 KB Output is correct
142 Correct 505 ms 53880 KB Output is correct