Submission #754654

# Submission time Handle Problem Language Result Execution time Memory
754654 2023-06-08T08:26:26 Z vjudge1 Council (JOI23_council) C++17
100 / 100
522 ms 39248 KB
/*
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
*/
#include<bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
#define len(x) ll(x.size())
#define eb emplace_back
#define PI 3.14159265359
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define MIN(v) *min_element(all(v))
#define MAX(v) *max_element(all(v))
#define BIT(x,i) (1&((x)>>(i)))
#define MASK(x) (1LL<<(x))
#define task "tnc"  
typedef long long ll;
const ll INF=1e18;
const int maxn=3e5+5;
const int mod=1e9+7;
const int mo=998244353;
using pi=pair<ll,ll>;
using vi=vector<ll>;
using pii=pair<pair<ll,ll>,ll>;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
pair<int,int>dp[1<<20];
pair<int,int>dp1[1<<20];
int n,m;
int ok[20];
int sum[maxn];
int num[20];
int ne[maxn];
int bang;
int larger;
int k1[1<<20];
int k2[1<<20];

  int so=0;
void printmask(int s){
	for(int i=0;i<so;i++){
		cout<<BIT(s,i);
	}
	cout<<"\n";
}
int convertmask(string s){
	int sum=0;
	for(int i=0;i<so;i++){
		if(s[i]=='1'){
			sum+=(1<<i);
		}
	}
	return sum;
}
signed main()
{
	cin.tie(0),cout.tie(0)->sync_with_stdio(0);
    //freopen(task".inp" , "r" , stdin);
    //freopen(task".out" , "w" , stdout);
    cin>>n>>m;
    int certain=0;
    for(int i=1;i<=n;i++){
    	for(int j=0;j<m;j++){
    		 int x;
    		 cin>>x;
    		 if(x==1){
    		 	sum[i]+=(1<<j);
    		 	num[j]++;
    		 }
    	}
    }
    for(int i=0;i<m;i++){
    	if(num[i]>=n/2+2){
    		certain++;
    	}
    	else if(num[i]>=n/2){
    		for(int j=1;j<=n;j++){
    			if((1<<i)&sum[j]){
    				ne[j]^=(1<<so);
    			}
    		}

    		if(num[i]==n/2){
    			bang+=(1<<so);
    		}
    		else{
    			larger+=(1<<so);
    		}
    		so++;
    	}
    }
    int N=(1<<so);
    for(int i=1;i<=n;i++){
    	int s=(N-1)^ne[i];
    	if(k1[s]==0){
    		k1[s]=i;
    	}
    	else if(k2[s]==0){
    		k2[s]=i;
    	}
    }

    for(int i=0;i<so;i++){
    	for(int j=N-1;j>=0;j--){
    		if(((1<<i)&j)==0){
    			if(k1[j]==0){
    				k1[j]=k1[j^(1<<i)];
    				k2[j]=k2[j^(1<<i)];
    			}
    			else if(k2[j]==0 && k1[j]!=k1[j^(1<<i)]){
    				k2[j]=k1[j^(1<<i)];
    			}
    		}
    	}
    }
    for(int i=0;i<N;i++){
    	int s=__builtin_popcount(i);
    	if(k1[i]){
    		dp[i]={s,k1[i]};
    	}
    	if(k2[i]){
    		dp1[i]={s,k2[i]};
    	}
    }
    for(int j=0;j<so;j++){
    	for(int i=0;i<N;i++){
    		if((1<<j)&i){
    			if(dp[i].fi<dp[i^(1<<j)].fi){

    				if(dp[i^(1<<j)].se!=dp[i].se)dp1[i]=dp[i];
    				dp[i]=dp[i^(1<<j)];
    				if(dp1[i^(1<<j)].fi>dp1[i].fi && dp1[i^(1<<j)].se!=dp1[i].se){
    					dp1[i]=dp1[i^(1<<j)];
    				}
    			}
    			else if(dp1[i].fi<dp[i^(1<<j)].fi && dp[i^(1<<j)].se!=dp[i].se){
    				dp1[i]=dp[i^(1<<j)];
    			}
    			else if(dp1[i].fi<dp1[i^(1<<j)].fi && dp1[i^(1<<j)].se!=dp[i].se){
    				dp1[i]=dp1[i^(1<<j)];

    			
    			}

    		}
    	}
	}
	for(int i=1;i<=n;i++){
		int k=bang^(bang&ne[i]);
		int alive=(larger^(larger&ne[i]));
		
		int k1=larger&ne[i];
		int neso=k^k1;
		alive=__builtin_popcount(alive);
		if(dp[neso].se==i){
			cout<<certain+alive+dp1[neso].fi<<"\n";
		}
		else{
			cout<<certain+alive+dp[neso].fi<<"\n";
		}
	}
	
    return 0;
}


# Verdict Execution time Memory Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 72 ms 24820 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 80 ms 25048 KB Output is correct
11 Correct 98 ms 24836 KB Output is correct
12 Correct 85 ms 25064 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 332 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 1 ms 328 KB Output is correct
21 Correct 1 ms 328 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 332 KB Output is correct
24 Correct 1 ms 340 KB Output is correct
25 Correct 1 ms 328 KB Output is correct
26 Correct 1 ms 340 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 1 ms 332 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 2 ms 772 KB Output is correct
42 Correct 1 ms 328 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 2 ms 712 KB Output is correct
46 Correct 8 ms 3412 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 9 ms 3412 KB Output is correct
50 Correct 9 ms 3412 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 72 ms 24820 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 80 ms 25048 KB Output is correct
11 Correct 98 ms 24836 KB Output is correct
12 Correct 85 ms 25064 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 332 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 1 ms 328 KB Output is correct
21 Correct 1 ms 328 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 332 KB Output is correct
24 Correct 1 ms 340 KB Output is correct
25 Correct 1 ms 328 KB Output is correct
26 Correct 1 ms 340 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 1 ms 332 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 2 ms 772 KB Output is correct
42 Correct 1 ms 328 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 2 ms 712 KB Output is correct
46 Correct 8 ms 3412 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 9 ms 3412 KB Output is correct
50 Correct 9 ms 3412 KB Output is correct
51 Correct 5 ms 468 KB Output is correct
52 Correct 4 ms 340 KB Output is correct
53 Correct 5 ms 468 KB Output is correct
54 Correct 90 ms 25056 KB Output is correct
55 Correct 1 ms 336 KB Output is correct
56 Correct 13 ms 3556 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 53 ms 3080 KB Output is correct
3 Correct 52 ms 1848 KB Output is correct
4 Correct 38 ms 2584 KB Output is correct
5 Correct 61 ms 3052 KB Output is correct
6 Correct 40 ms 3824 KB Output is correct
7 Correct 58 ms 4188 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 328 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 328 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 53 ms 3080 KB Output is correct
3 Correct 52 ms 1848 KB Output is correct
4 Correct 38 ms 2584 KB Output is correct
5 Correct 61 ms 3052 KB Output is correct
6 Correct 40 ms 3824 KB Output is correct
7 Correct 58 ms 4188 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 328 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 328 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 204 ms 8188 KB Output is correct
21 Correct 178 ms 7336 KB Output is correct
22 Correct 190 ms 7628 KB Output is correct
23 Correct 164 ms 7236 KB Output is correct
24 Correct 158 ms 5772 KB Output is correct
25 Correct 177 ms 7068 KB Output is correct
26 Correct 209 ms 8336 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 1 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 0 ms 340 KB Output is correct
34 Correct 1 ms 332 KB Output is correct
35 Correct 0 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 1 ms 328 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 328 KB Output is correct
44 Correct 1 ms 332 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 53 ms 3080 KB Output is correct
3 Correct 52 ms 1848 KB Output is correct
4 Correct 38 ms 2584 KB Output is correct
5 Correct 61 ms 3052 KB Output is correct
6 Correct 40 ms 3824 KB Output is correct
7 Correct 58 ms 4188 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 328 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 328 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 204 ms 8188 KB Output is correct
21 Correct 178 ms 7336 KB Output is correct
22 Correct 190 ms 7628 KB Output is correct
23 Correct 164 ms 7236 KB Output is correct
24 Correct 158 ms 5772 KB Output is correct
25 Correct 177 ms 7068 KB Output is correct
26 Correct 209 ms 8336 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 1 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 0 ms 340 KB Output is correct
34 Correct 1 ms 332 KB Output is correct
35 Correct 0 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 1 ms 328 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 328 KB Output is correct
44 Correct 1 ms 332 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 1 ms 340 KB Output is correct
47 Correct 261 ms 10768 KB Output is correct
48 Correct 240 ms 9904 KB Output is correct
49 Correct 275 ms 10316 KB Output is correct
50 Correct 215 ms 8976 KB Output is correct
51 Correct 197 ms 7820 KB Output is correct
52 Correct 246 ms 8896 KB Output is correct
53 Correct 261 ms 11192 KB Output is correct
54 Correct 2 ms 724 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 1 ms 340 KB Output is correct
57 Correct 2 ms 716 KB Output is correct
58 Correct 2 ms 724 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 53 ms 3080 KB Output is correct
3 Correct 52 ms 1848 KB Output is correct
4 Correct 38 ms 2584 KB Output is correct
5 Correct 61 ms 3052 KB Output is correct
6 Correct 40 ms 3824 KB Output is correct
7 Correct 58 ms 4188 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 328 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 328 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 204 ms 8188 KB Output is correct
21 Correct 178 ms 7336 KB Output is correct
22 Correct 190 ms 7628 KB Output is correct
23 Correct 164 ms 7236 KB Output is correct
24 Correct 158 ms 5772 KB Output is correct
25 Correct 177 ms 7068 KB Output is correct
26 Correct 209 ms 8336 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 1 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 0 ms 340 KB Output is correct
34 Correct 1 ms 332 KB Output is correct
35 Correct 0 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 1 ms 328 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 1 ms 328 KB Output is correct
44 Correct 1 ms 332 KB Output is correct
45 Correct 1 ms 340 KB Output is correct
46 Correct 1 ms 340 KB Output is correct
47 Correct 261 ms 10768 KB Output is correct
48 Correct 240 ms 9904 KB Output is correct
49 Correct 275 ms 10316 KB Output is correct
50 Correct 215 ms 8976 KB Output is correct
51 Correct 197 ms 7820 KB Output is correct
52 Correct 246 ms 8896 KB Output is correct
53 Correct 261 ms 11192 KB Output is correct
54 Correct 2 ms 724 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 1 ms 340 KB Output is correct
57 Correct 2 ms 716 KB Output is correct
58 Correct 2 ms 724 KB Output is correct
59 Correct 279 ms 10556 KB Output is correct
60 Correct 140 ms 7796 KB Output is correct
61 Correct 143 ms 8140 KB Output is correct
62 Correct 141 ms 8304 KB Output is correct
63 Correct 293 ms 12992 KB Output is correct
64 Correct 322 ms 14996 KB Output is correct
65 Correct 328 ms 14940 KB Output is correct
66 Correct 258 ms 11220 KB Output is correct
67 Correct 247 ms 9572 KB Output is correct
68 Correct 319 ms 10620 KB Output is correct
69 Correct 317 ms 15468 KB Output is correct
70 Correct 9 ms 3412 KB Output is correct
71 Correct 1 ms 340 KB Output is correct
72 Correct 1 ms 336 KB Output is correct
73 Correct 10 ms 3368 KB Output is correct
74 Correct 10 ms 3408 KB Output is correct
75 Correct 14 ms 3552 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 72 ms 24820 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 80 ms 25048 KB Output is correct
11 Correct 98 ms 24836 KB Output is correct
12 Correct 85 ms 25064 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 332 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 1 ms 328 KB Output is correct
21 Correct 1 ms 328 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 332 KB Output is correct
24 Correct 1 ms 340 KB Output is correct
25 Correct 1 ms 328 KB Output is correct
26 Correct 1 ms 340 KB Output is correct
27 Correct 1 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 1 ms 332 KB Output is correct
30 Correct 1 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 1 ms 340 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 340 KB Output is correct
39 Correct 1 ms 340 KB Output is correct
40 Correct 1 ms 340 KB Output is correct
41 Correct 2 ms 772 KB Output is correct
42 Correct 1 ms 328 KB Output is correct
43 Correct 1 ms 340 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 2 ms 712 KB Output is correct
46 Correct 8 ms 3412 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 340 KB Output is correct
49 Correct 9 ms 3412 KB Output is correct
50 Correct 9 ms 3412 KB Output is correct
51 Correct 5 ms 468 KB Output is correct
52 Correct 4 ms 340 KB Output is correct
53 Correct 5 ms 468 KB Output is correct
54 Correct 90 ms 25056 KB Output is correct
55 Correct 1 ms 336 KB Output is correct
56 Correct 13 ms 3556 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 53 ms 3080 KB Output is correct
59 Correct 52 ms 1848 KB Output is correct
60 Correct 38 ms 2584 KB Output is correct
61 Correct 61 ms 3052 KB Output is correct
62 Correct 40 ms 3824 KB Output is correct
63 Correct 58 ms 4188 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 1 ms 328 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 1 ms 328 KB Output is correct
70 Correct 1 ms 340 KB Output is correct
71 Correct 0 ms 340 KB Output is correct
72 Correct 1 ms 340 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 1 ms 340 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 204 ms 8188 KB Output is correct
77 Correct 178 ms 7336 KB Output is correct
78 Correct 190 ms 7628 KB Output is correct
79 Correct 164 ms 7236 KB Output is correct
80 Correct 158 ms 5772 KB Output is correct
81 Correct 177 ms 7068 KB Output is correct
82 Correct 209 ms 8336 KB Output is correct
83 Correct 1 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 0 ms 340 KB Output is correct
86 Correct 1 ms 340 KB Output is correct
87 Correct 1 ms 340 KB Output is correct
88 Correct 1 ms 340 KB Output is correct
89 Correct 0 ms 340 KB Output is correct
90 Correct 1 ms 332 KB Output is correct
91 Correct 0 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 1 ms 340 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 328 KB Output is correct
98 Correct 1 ms 340 KB Output is correct
99 Correct 1 ms 328 KB Output is correct
100 Correct 1 ms 332 KB Output is correct
101 Correct 1 ms 340 KB Output is correct
102 Correct 1 ms 340 KB Output is correct
103 Correct 261 ms 10768 KB Output is correct
104 Correct 240 ms 9904 KB Output is correct
105 Correct 275 ms 10316 KB Output is correct
106 Correct 215 ms 8976 KB Output is correct
107 Correct 197 ms 7820 KB Output is correct
108 Correct 246 ms 8896 KB Output is correct
109 Correct 261 ms 11192 KB Output is correct
110 Correct 2 ms 724 KB Output is correct
111 Correct 1 ms 340 KB Output is correct
112 Correct 1 ms 340 KB Output is correct
113 Correct 2 ms 716 KB Output is correct
114 Correct 2 ms 724 KB Output is correct
115 Correct 279 ms 10556 KB Output is correct
116 Correct 140 ms 7796 KB Output is correct
117 Correct 143 ms 8140 KB Output is correct
118 Correct 141 ms 8304 KB Output is correct
119 Correct 293 ms 12992 KB Output is correct
120 Correct 322 ms 14996 KB Output is correct
121 Correct 328 ms 14940 KB Output is correct
122 Correct 258 ms 11220 KB Output is correct
123 Correct 247 ms 9572 KB Output is correct
124 Correct 319 ms 10620 KB Output is correct
125 Correct 317 ms 15468 KB Output is correct
126 Correct 9 ms 3412 KB Output is correct
127 Correct 1 ms 340 KB Output is correct
128 Correct 1 ms 336 KB Output is correct
129 Correct 10 ms 3368 KB Output is correct
130 Correct 10 ms 3408 KB Output is correct
131 Correct 14 ms 3552 KB Output is correct
132 Correct 522 ms 38132 KB Output is correct
133 Correct 457 ms 38232 KB Output is correct
134 Correct 474 ms 38720 KB Output is correct
135 Correct 474 ms 38708 KB Output is correct
136 Correct 513 ms 38456 KB Output is correct
137 Correct 398 ms 25904 KB Output is correct
138 Correct 403 ms 26532 KB Output is correct
139 Correct 394 ms 13228 KB Output is correct
140 Correct 286 ms 11292 KB Output is correct
141 Correct 322 ms 12368 KB Output is correct
142 Correct 486 ms 39248 KB Output is correct