Submission #891329

# Submission time Handle Problem Language Result Execution time Memory
891329 2023-12-22T19:03:49 Z iskhakkutbilim Council (JOI23_council) C++17
78 / 100
4000 ms 106344 KB
#include <bits/stdc++.h>
using namespace std;

#define ff first
#define ss second
#define all(a) a.begin(), a.end()
const int N = 3e5;
int ans[N+10];
vector< vector<int> > build(int n, int m, vector< vector<int> > &a){
	
	vector<int> cnt(m);
	for(int i = 0;i < n; i++){
		for(int j = 0;j < m; j++){
			cnt[j]+= a[i][j];
		}
	}
	vector< vector<int> > res(n);
	
	for(int i = 0;i < n; i++){
		for(int j = 0;j < m; j++){
			if(cnt[j] > (n / 2) + 1){
				ans[i]++;
			}
		}
	}
	for(int i = 0;i < n; i++){
		for(int j = 0;j < m; j++){
			if(cnt[j] == n / 2){
				res[i].push_back(a[i][j]);
			}else if(cnt[j] ==  (n / 2) + 1){
				res[i].push_back(a[i][j]);
			}
		}
	}
	return res;
}



pair<int, int> dp[2][1222][1222];
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
	int n, m; cin >> n >> m;
	vector< vector<int> > a(n, vector<int>(m));
	for(int i = 0;i < n; i++){
		for(int j = 0;j < m; j++){
			cin >> a[i][j];
		}
	}
	a = build(n, m, a);
	n = a.size();
	m = a[0].size();
	vector<int> cnt(m,0);
	for(int i = 0;i < n; i++){
		for(int j = 0;j < m; j++){
			cnt[j]+= a[i][j];
		}
	}
	vector<int> bits(n);
	for(int i = 0;i < n; i++){
		int mask = 0;
		for(int j = 0;j < m; j++){
			if(a[i][j]){
				mask+= (1<<j);
			}
		}
		bits[i] = mask;
	}
	
	int bpc[1<<20];
	
	for(int i = 0;i < 1<<20; i++){
		bpc[i] = __builtin_popcount(i);
	}
	
	for(int i = 0;i < 2; i++){
		for(int j = 0;j < 1024; j++){
			for(int k = 0;k < 1024; k++){
				dp[i][j][k] = {-1, -1};
			}
		}
	}

	for(int i = 0;i < n; i++){
		int m0  = bits[i] & 1023;
		int m1 = bits[i]>>10;		
		for(int j = 0;j < 1024; j++){
			int c = bpc[m1 & j];
			if(dp[0][m0][j].ff == -1){
				dp[0][m0][j] = {c, i};
			}else{
				if(dp[0][m0][j].ff >= c){
					dp[1][m0][j] = dp[0][m0][j];
					dp[0][m0][j] = {c, i};
				}else if(dp[1][m0][j].ff == -1 || dp[1][m0][j].ff >= c){
					dp[1][m0][j] = {c, i};
				}
			}
		}
	}
	for(int i = 0;i < n; i++){
		int mask = 0, bc = 0;
		for(int j = 0;j < m; j++){
			if(bits[i] & (1<<j)){
				if(cnt[j] == n/2 + 1){
					bc++;
					mask+= (1<<j);
				}
			}else{
				if(cnt[j] == n / 2 + 1) bc++;
				else{
					mask+= (1<<j);
					bc++;
				}
			}
		}
		int mn = m;
		int m0 = mask & 1023;
		int m1 = mask >> 10;
		for(int j = 0;j < 1024; j++){
			int c = bpc[m0 & j];
			if(dp[0][j][m1].ff == -1) continue;
			int kek = 20;
			if(dp[0][j][m1].ss != i && dp[0][j][m1].ss != -1){
				kek = min(kek, dp[0][j][m1].ff);
			}
			if(dp[1][j][m1].ss != i && dp[1][j][m1].ss != -1){
				kek = min(kek, dp[1][j][m1].ff);
			}
			mn = min(mn, kek + c);
		}
		ans[i] = ans[i] + bc - mn;
	}
	
	
	
	for(int i = 0;i < n; i++) cout << ans[i] << '\n';
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 11 ms 27296 KB Output is correct
3 Correct 8 ms 27224 KB Output is correct
4 Correct 8 ms 27224 KB Output is correct
5 Correct 8 ms 27228 KB Output is correct
6 Correct 9 ms 27480 KB Output is correct
7 Correct 8 ms 27480 KB Output is correct
8 Correct 8 ms 27228 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 8 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 11 ms 27228 KB Output is correct
13 Correct 9 ms 27304 KB Output is correct
14 Correct 9 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 9 ms 27228 KB Output is correct
17 Correct 9 ms 27228 KB Output is correct
18 Correct 8 ms 27476 KB Output is correct
19 Correct 9 ms 27228 KB Output is correct
20 Correct 9 ms 27228 KB Output is correct
21 Correct 9 ms 27480 KB Output is correct
22 Correct 8 ms 27228 KB Output is correct
23 Correct 9 ms 27276 KB Output is correct
24 Correct 8 ms 27228 KB Output is correct
25 Correct 8 ms 27224 KB Output is correct
26 Correct 9 ms 27228 KB Output is correct
27 Correct 8 ms 27276 KB Output is correct
28 Correct 9 ms 27312 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 8 ms 27228 KB Output is correct
31 Correct 9 ms 27228 KB Output is correct
32 Correct 8 ms 27228 KB Output is correct
33 Correct 8 ms 27096 KB Output is correct
34 Correct 9 ms 27300 KB Output is correct
35 Correct 9 ms 27224 KB Output is correct
36 Correct 8 ms 27224 KB Output is correct
37 Correct 8 ms 27228 KB Output is correct
38 Correct 8 ms 27228 KB Output is correct
39 Correct 8 ms 27204 KB Output is correct
40 Correct 9 ms 27228 KB Output is correct
41 Correct 8 ms 27228 KB Output is correct
42 Correct 9 ms 27228 KB Output is correct
43 Correct 9 ms 27312 KB Output is correct
44 Correct 9 ms 27228 KB Output is correct
45 Correct 8 ms 27224 KB Output is correct
46 Correct 9 ms 27224 KB Output is correct
47 Correct 8 ms 27228 KB Output is correct
48 Correct 8 ms 27228 KB Output is correct
49 Correct 8 ms 27228 KB Output is correct
50 Correct 10 ms 27228 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 11 ms 27296 KB Output is correct
3 Correct 8 ms 27224 KB Output is correct
4 Correct 8 ms 27224 KB Output is correct
5 Correct 8 ms 27228 KB Output is correct
6 Correct 9 ms 27480 KB Output is correct
7 Correct 8 ms 27480 KB Output is correct
8 Correct 8 ms 27228 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 8 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 11 ms 27228 KB Output is correct
13 Correct 9 ms 27304 KB Output is correct
14 Correct 9 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 9 ms 27228 KB Output is correct
17 Correct 9 ms 27228 KB Output is correct
18 Correct 8 ms 27476 KB Output is correct
19 Correct 9 ms 27228 KB Output is correct
20 Correct 9 ms 27228 KB Output is correct
21 Correct 9 ms 27480 KB Output is correct
22 Correct 8 ms 27228 KB Output is correct
23 Correct 9 ms 27276 KB Output is correct
24 Correct 8 ms 27228 KB Output is correct
25 Correct 8 ms 27224 KB Output is correct
26 Correct 9 ms 27228 KB Output is correct
27 Correct 8 ms 27276 KB Output is correct
28 Correct 9 ms 27312 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 8 ms 27228 KB Output is correct
31 Correct 9 ms 27228 KB Output is correct
32 Correct 8 ms 27228 KB Output is correct
33 Correct 8 ms 27096 KB Output is correct
34 Correct 9 ms 27300 KB Output is correct
35 Correct 9 ms 27224 KB Output is correct
36 Correct 8 ms 27224 KB Output is correct
37 Correct 8 ms 27228 KB Output is correct
38 Correct 8 ms 27228 KB Output is correct
39 Correct 8 ms 27204 KB Output is correct
40 Correct 9 ms 27228 KB Output is correct
41 Correct 8 ms 27228 KB Output is correct
42 Correct 9 ms 27228 KB Output is correct
43 Correct 9 ms 27312 KB Output is correct
44 Correct 9 ms 27228 KB Output is correct
45 Correct 8 ms 27224 KB Output is correct
46 Correct 9 ms 27224 KB Output is correct
47 Correct 8 ms 27228 KB Output is correct
48 Correct 8 ms 27228 KB Output is correct
49 Correct 8 ms 27228 KB Output is correct
50 Correct 10 ms 27228 KB Output is correct
51 Correct 17 ms 27736 KB Output is correct
52 Correct 17 ms 27740 KB Output is correct
53 Correct 18 ms 27740 KB Output is correct
54 Correct 59 ms 28152 KB Output is correct
55 Correct 15 ms 27484 KB Output is correct
56 Correct 29 ms 27996 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 631 ms 45420 KB Output is correct
3 Correct 639 ms 45412 KB Output is correct
4 Correct 637 ms 45360 KB Output is correct
5 Correct 633 ms 45276 KB Output is correct
6 Correct 635 ms 54744 KB Output is correct
7 Correct 681 ms 54772 KB Output is correct
8 Correct 8 ms 27224 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 9 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 9 ms 27096 KB Output is correct
14 Correct 8 ms 27224 KB Output is correct
15 Correct 9 ms 27224 KB Output is correct
16 Correct 9 ms 27224 KB Output is correct
17 Correct 15 ms 27480 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 631 ms 45420 KB Output is correct
3 Correct 639 ms 45412 KB Output is correct
4 Correct 637 ms 45360 KB Output is correct
5 Correct 633 ms 45276 KB Output is correct
6 Correct 635 ms 54744 KB Output is correct
7 Correct 681 ms 54772 KB Output is correct
8 Correct 8 ms 27224 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 9 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 9 ms 27096 KB Output is correct
14 Correct 8 ms 27224 KB Output is correct
15 Correct 9 ms 27224 KB Output is correct
16 Correct 9 ms 27224 KB Output is correct
17 Correct 15 ms 27480 KB Output is correct
18 Correct 8 ms 27224 KB Output is correct
19 Correct 8 ms 27308 KB Output is correct
20 Correct 967 ms 74008 KB Output is correct
21 Correct 895 ms 73968 KB Output is correct
22 Correct 886 ms 73700 KB Output is correct
23 Correct 721 ms 50392 KB Output is correct
24 Correct 726 ms 49972 KB Output is correct
25 Correct 760 ms 50128 KB Output is correct
26 Correct 1398 ms 73716 KB Output is correct
27 Correct 9 ms 27228 KB Output is correct
28 Correct 8 ms 27228 KB Output is correct
29 Correct 9 ms 27228 KB Output is correct
30 Correct 8 ms 27228 KB Output is correct
31 Correct 9 ms 27104 KB Output is correct
32 Correct 8 ms 27228 KB Output is correct
33 Correct 9 ms 27228 KB Output is correct
34 Correct 9 ms 27156 KB Output is correct
35 Correct 8 ms 27228 KB Output is correct
36 Correct 9 ms 27228 KB Output is correct
37 Correct 8 ms 27228 KB Output is correct
38 Correct 9 ms 27228 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 9 ms 27224 KB Output is correct
41 Correct 8 ms 27228 KB Output is correct
42 Correct 9 ms 27092 KB Output is correct
43 Correct 8 ms 27280 KB Output is correct
44 Correct 8 ms 27228 KB Output is correct
45 Correct 9 ms 27228 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 631 ms 45420 KB Output is correct
3 Correct 639 ms 45412 KB Output is correct
4 Correct 637 ms 45360 KB Output is correct
5 Correct 633 ms 45276 KB Output is correct
6 Correct 635 ms 54744 KB Output is correct
7 Correct 681 ms 54772 KB Output is correct
8 Correct 8 ms 27224 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 9 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 9 ms 27096 KB Output is correct
14 Correct 8 ms 27224 KB Output is correct
15 Correct 9 ms 27224 KB Output is correct
16 Correct 9 ms 27224 KB Output is correct
17 Correct 15 ms 27480 KB Output is correct
18 Correct 8 ms 27224 KB Output is correct
19 Correct 8 ms 27308 KB Output is correct
20 Correct 967 ms 74008 KB Output is correct
21 Correct 895 ms 73968 KB Output is correct
22 Correct 886 ms 73700 KB Output is correct
23 Correct 721 ms 50392 KB Output is correct
24 Correct 726 ms 49972 KB Output is correct
25 Correct 760 ms 50128 KB Output is correct
26 Correct 1398 ms 73716 KB Output is correct
27 Correct 9 ms 27228 KB Output is correct
28 Correct 8 ms 27228 KB Output is correct
29 Correct 9 ms 27228 KB Output is correct
30 Correct 8 ms 27228 KB Output is correct
31 Correct 9 ms 27104 KB Output is correct
32 Correct 8 ms 27228 KB Output is correct
33 Correct 9 ms 27228 KB Output is correct
34 Correct 9 ms 27156 KB Output is correct
35 Correct 8 ms 27228 KB Output is correct
36 Correct 9 ms 27228 KB Output is correct
37 Correct 8 ms 27228 KB Output is correct
38 Correct 9 ms 27228 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 9 ms 27224 KB Output is correct
41 Correct 8 ms 27228 KB Output is correct
42 Correct 9 ms 27092 KB Output is correct
43 Correct 8 ms 27280 KB Output is correct
44 Correct 8 ms 27228 KB Output is correct
45 Correct 9 ms 27228 KB Output is correct
46 Correct 8 ms 27228 KB Output is correct
47 Correct 1446 ms 78384 KB Output is correct
48 Correct 1199 ms 78296 KB Output is correct
49 Correct 1212 ms 78552 KB Output is correct
50 Correct 792 ms 55076 KB Output is correct
51 Correct 776 ms 55256 KB Output is correct
52 Correct 794 ms 54844 KB Output is correct
53 Correct 1547 ms 78592 KB Output is correct
54 Correct 10 ms 27228 KB Output is correct
55 Correct 8 ms 27232 KB Output is correct
56 Correct 11 ms 27228 KB Output is correct
57 Correct 9 ms 27268 KB Output is correct
58 Correct 9 ms 27228 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 631 ms 45420 KB Output is correct
3 Correct 639 ms 45412 KB Output is correct
4 Correct 637 ms 45360 KB Output is correct
5 Correct 633 ms 45276 KB Output is correct
6 Correct 635 ms 54744 KB Output is correct
7 Correct 681 ms 54772 KB Output is correct
8 Correct 8 ms 27224 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 9 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 9 ms 27096 KB Output is correct
14 Correct 8 ms 27224 KB Output is correct
15 Correct 9 ms 27224 KB Output is correct
16 Correct 9 ms 27224 KB Output is correct
17 Correct 15 ms 27480 KB Output is correct
18 Correct 8 ms 27224 KB Output is correct
19 Correct 8 ms 27308 KB Output is correct
20 Correct 967 ms 74008 KB Output is correct
21 Correct 895 ms 73968 KB Output is correct
22 Correct 886 ms 73700 KB Output is correct
23 Correct 721 ms 50392 KB Output is correct
24 Correct 726 ms 49972 KB Output is correct
25 Correct 760 ms 50128 KB Output is correct
26 Correct 1398 ms 73716 KB Output is correct
27 Correct 9 ms 27228 KB Output is correct
28 Correct 8 ms 27228 KB Output is correct
29 Correct 9 ms 27228 KB Output is correct
30 Correct 8 ms 27228 KB Output is correct
31 Correct 9 ms 27104 KB Output is correct
32 Correct 8 ms 27228 KB Output is correct
33 Correct 9 ms 27228 KB Output is correct
34 Correct 9 ms 27156 KB Output is correct
35 Correct 8 ms 27228 KB Output is correct
36 Correct 9 ms 27228 KB Output is correct
37 Correct 8 ms 27228 KB Output is correct
38 Correct 9 ms 27228 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 9 ms 27224 KB Output is correct
41 Correct 8 ms 27228 KB Output is correct
42 Correct 9 ms 27092 KB Output is correct
43 Correct 8 ms 27280 KB Output is correct
44 Correct 8 ms 27228 KB Output is correct
45 Correct 9 ms 27228 KB Output is correct
46 Correct 8 ms 27228 KB Output is correct
47 Correct 1446 ms 78384 KB Output is correct
48 Correct 1199 ms 78296 KB Output is correct
49 Correct 1212 ms 78552 KB Output is correct
50 Correct 792 ms 55076 KB Output is correct
51 Correct 776 ms 55256 KB Output is correct
52 Correct 794 ms 54844 KB Output is correct
53 Correct 1547 ms 78592 KB Output is correct
54 Correct 10 ms 27228 KB Output is correct
55 Correct 8 ms 27232 KB Output is correct
56 Correct 11 ms 27228 KB Output is correct
57 Correct 9 ms 27268 KB Output is correct
58 Correct 9 ms 27228 KB Output is correct
59 Correct 825 ms 59976 KB Output is correct
60 Correct 849 ms 55752 KB Output is correct
61 Correct 854 ms 57944 KB Output is correct
62 Correct 896 ms 58968 KB Output is correct
63 Correct 2007 ms 83332 KB Output is correct
64 Correct 2057 ms 101880 KB Output is correct
65 Correct 2124 ms 101648 KB Output is correct
66 Correct 809 ms 59772 KB Output is correct
67 Correct 819 ms 59532 KB Output is correct
68 Correct 832 ms 59508 KB Output is correct
69 Correct 2130 ms 102028 KB Output is correct
70 Correct 8 ms 27224 KB Output is correct
71 Correct 9 ms 27304 KB Output is correct
72 Correct 8 ms 27228 KB Output is correct
73 Correct 8 ms 27228 KB Output is correct
74 Correct 9 ms 27228 KB Output is correct
75 Correct 29 ms 27996 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 11 ms 27296 KB Output is correct
3 Correct 8 ms 27224 KB Output is correct
4 Correct 8 ms 27224 KB Output is correct
5 Correct 8 ms 27228 KB Output is correct
6 Correct 9 ms 27480 KB Output is correct
7 Correct 8 ms 27480 KB Output is correct
8 Correct 8 ms 27228 KB Output is correct
9 Correct 10 ms 27228 KB Output is correct
10 Correct 8 ms 27228 KB Output is correct
11 Correct 9 ms 27228 KB Output is correct
12 Correct 11 ms 27228 KB Output is correct
13 Correct 9 ms 27304 KB Output is correct
14 Correct 9 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 9 ms 27228 KB Output is correct
17 Correct 9 ms 27228 KB Output is correct
18 Correct 8 ms 27476 KB Output is correct
19 Correct 9 ms 27228 KB Output is correct
20 Correct 9 ms 27228 KB Output is correct
21 Correct 9 ms 27480 KB Output is correct
22 Correct 8 ms 27228 KB Output is correct
23 Correct 9 ms 27276 KB Output is correct
24 Correct 8 ms 27228 KB Output is correct
25 Correct 8 ms 27224 KB Output is correct
26 Correct 9 ms 27228 KB Output is correct
27 Correct 8 ms 27276 KB Output is correct
28 Correct 9 ms 27312 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 8 ms 27228 KB Output is correct
31 Correct 9 ms 27228 KB Output is correct
32 Correct 8 ms 27228 KB Output is correct
33 Correct 8 ms 27096 KB Output is correct
34 Correct 9 ms 27300 KB Output is correct
35 Correct 9 ms 27224 KB Output is correct
36 Correct 8 ms 27224 KB Output is correct
37 Correct 8 ms 27228 KB Output is correct
38 Correct 8 ms 27228 KB Output is correct
39 Correct 8 ms 27204 KB Output is correct
40 Correct 9 ms 27228 KB Output is correct
41 Correct 8 ms 27228 KB Output is correct
42 Correct 9 ms 27228 KB Output is correct
43 Correct 9 ms 27312 KB Output is correct
44 Correct 9 ms 27228 KB Output is correct
45 Correct 8 ms 27224 KB Output is correct
46 Correct 9 ms 27224 KB Output is correct
47 Correct 8 ms 27228 KB Output is correct
48 Correct 8 ms 27228 KB Output is correct
49 Correct 8 ms 27228 KB Output is correct
50 Correct 10 ms 27228 KB Output is correct
51 Correct 17 ms 27736 KB Output is correct
52 Correct 17 ms 27740 KB Output is correct
53 Correct 18 ms 27740 KB Output is correct
54 Correct 59 ms 28152 KB Output is correct
55 Correct 15 ms 27484 KB Output is correct
56 Correct 29 ms 27996 KB Output is correct
57 Correct 8 ms 27228 KB Output is correct
58 Correct 631 ms 45420 KB Output is correct
59 Correct 639 ms 45412 KB Output is correct
60 Correct 637 ms 45360 KB Output is correct
61 Correct 633 ms 45276 KB Output is correct
62 Correct 635 ms 54744 KB Output is correct
63 Correct 681 ms 54772 KB Output is correct
64 Correct 8 ms 27224 KB Output is correct
65 Correct 10 ms 27228 KB Output is correct
66 Correct 9 ms 27228 KB Output is correct
67 Correct 9 ms 27228 KB Output is correct
68 Correct 9 ms 27228 KB Output is correct
69 Correct 9 ms 27096 KB Output is correct
70 Correct 8 ms 27224 KB Output is correct
71 Correct 9 ms 27224 KB Output is correct
72 Correct 9 ms 27224 KB Output is correct
73 Correct 15 ms 27480 KB Output is correct
74 Correct 8 ms 27224 KB Output is correct
75 Correct 8 ms 27308 KB Output is correct
76 Correct 967 ms 74008 KB Output is correct
77 Correct 895 ms 73968 KB Output is correct
78 Correct 886 ms 73700 KB Output is correct
79 Correct 721 ms 50392 KB Output is correct
80 Correct 726 ms 49972 KB Output is correct
81 Correct 760 ms 50128 KB Output is correct
82 Correct 1398 ms 73716 KB Output is correct
83 Correct 9 ms 27228 KB Output is correct
84 Correct 8 ms 27228 KB Output is correct
85 Correct 9 ms 27228 KB Output is correct
86 Correct 8 ms 27228 KB Output is correct
87 Correct 9 ms 27104 KB Output is correct
88 Correct 8 ms 27228 KB Output is correct
89 Correct 9 ms 27228 KB Output is correct
90 Correct 9 ms 27156 KB Output is correct
91 Correct 8 ms 27228 KB Output is correct
92 Correct 9 ms 27228 KB Output is correct
93 Correct 8 ms 27228 KB Output is correct
94 Correct 9 ms 27228 KB Output is correct
95 Correct 8 ms 27228 KB Output is correct
96 Correct 9 ms 27224 KB Output is correct
97 Correct 8 ms 27228 KB Output is correct
98 Correct 9 ms 27092 KB Output is correct
99 Correct 8 ms 27280 KB Output is correct
100 Correct 8 ms 27228 KB Output is correct
101 Correct 9 ms 27228 KB Output is correct
102 Correct 8 ms 27228 KB Output is correct
103 Correct 1446 ms 78384 KB Output is correct
104 Correct 1199 ms 78296 KB Output is correct
105 Correct 1212 ms 78552 KB Output is correct
106 Correct 792 ms 55076 KB Output is correct
107 Correct 776 ms 55256 KB Output is correct
108 Correct 794 ms 54844 KB Output is correct
109 Correct 1547 ms 78592 KB Output is correct
110 Correct 10 ms 27228 KB Output is correct
111 Correct 8 ms 27232 KB Output is correct
112 Correct 11 ms 27228 KB Output is correct
113 Correct 9 ms 27268 KB Output is correct
114 Correct 9 ms 27228 KB Output is correct
115 Correct 825 ms 59976 KB Output is correct
116 Correct 849 ms 55752 KB Output is correct
117 Correct 854 ms 57944 KB Output is correct
118 Correct 896 ms 58968 KB Output is correct
119 Correct 2007 ms 83332 KB Output is correct
120 Correct 2057 ms 101880 KB Output is correct
121 Correct 2124 ms 101648 KB Output is correct
122 Correct 809 ms 59772 KB Output is correct
123 Correct 819 ms 59532 KB Output is correct
124 Correct 832 ms 59508 KB Output is correct
125 Correct 2130 ms 102028 KB Output is correct
126 Correct 8 ms 27224 KB Output is correct
127 Correct 9 ms 27304 KB Output is correct
128 Correct 8 ms 27228 KB Output is correct
129 Correct 8 ms 27228 KB Output is correct
130 Correct 9 ms 27228 KB Output is correct
131 Correct 29 ms 27996 KB Output is correct
132 Execution timed out 4021 ms 106344 KB Time limit exceeded
133 Halted 0 ms 0 KB -