Submission #891325

# Submission time Handle Problem Language Result Execution time Memory
891325 2023-12-22T18:59:30 Z iskhakkutbilim Council (JOI23_council) C++17
78 / 100
4000 ms 65792 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];

pair<int, int> dp[2][1025][1025];
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];
		}
	}
	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;
	}
	
	
	
	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 = __builtin_popcount(m1 & j);
			//cout << c << '\n';
			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{
				if(cnt[j] > n / 2) bc++;
				else if(cnt[j] == n / 2){
					mask+= (1<<j);
					bc++;
				}
			}
		}
		//cout << i+1 << " = " << bc << '\n';
		//cout << i+1 << " = " << mask << '\n';
		int mn = 20;
		int m0 = mask & 1023;
		int m1 = mask >> 10;
		for(int j = 0;j < 1024; j++){
			int c = __builtin_popcount(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);
			}
			//cout << kek << "\n";
			mn = min(mn, kek + c);
		}
		//cout << i+1 << " = " << mn << '\n';
		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 5 ms 16988 KB Output is correct
2 Correct 3 ms 17048 KB Output is correct
3 Correct 4 ms 16988 KB Output is correct
4 Correct 4 ms 16988 KB Output is correct
5 Correct 4 ms 16988 KB Output is correct
6 Correct 6 ms 16988 KB Output is correct
7 Correct 4 ms 16988 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 5 ms 16988 KB Output is correct
10 Correct 3 ms 17024 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 7 ms 16988 KB Output is correct
13 Correct 3 ms 16844 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 5 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 4 ms 16984 KB Output is correct
20 Correct 3 ms 16988 KB Output is correct
21 Correct 6 ms 17024 KB Output is correct
22 Correct 4 ms 16988 KB Output is correct
23 Correct 4 ms 16988 KB Output is correct
24 Correct 3 ms 16988 KB Output is correct
25 Correct 4 ms 16988 KB Output is correct
26 Correct 4 ms 17300 KB Output is correct
27 Correct 3 ms 16988 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 4 ms 17036 KB Output is correct
30 Correct 4 ms 16988 KB Output is correct
31 Correct 5 ms 17076 KB Output is correct
32 Correct 4 ms 16984 KB Output is correct
33 Correct 3 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 5 ms 17076 KB Output is correct
36 Correct 4 ms 16988 KB Output is correct
37 Correct 4 ms 16988 KB Output is correct
38 Correct 3 ms 16988 KB Output is correct
39 Correct 4 ms 16988 KB Output is correct
40 Correct 5 ms 16988 KB Output is correct
41 Correct 4 ms 17048 KB Output is correct
42 Correct 3 ms 16988 KB Output is correct
43 Correct 3 ms 16984 KB Output is correct
44 Correct 3 ms 16988 KB Output is correct
45 Correct 4 ms 16988 KB Output is correct
46 Correct 4 ms 16988 KB Output is correct
47 Correct 3 ms 16988 KB Output is correct
48 Correct 3 ms 16988 KB Output is correct
49 Correct 3 ms 16988 KB Output is correct
50 Correct 4 ms 16988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 16988 KB Output is correct
2 Correct 3 ms 17048 KB Output is correct
3 Correct 4 ms 16988 KB Output is correct
4 Correct 4 ms 16988 KB Output is correct
5 Correct 4 ms 16988 KB Output is correct
6 Correct 6 ms 16988 KB Output is correct
7 Correct 4 ms 16988 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 5 ms 16988 KB Output is correct
10 Correct 3 ms 17024 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 7 ms 16988 KB Output is correct
13 Correct 3 ms 16844 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 5 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 4 ms 16984 KB Output is correct
20 Correct 3 ms 16988 KB Output is correct
21 Correct 6 ms 17024 KB Output is correct
22 Correct 4 ms 16988 KB Output is correct
23 Correct 4 ms 16988 KB Output is correct
24 Correct 3 ms 16988 KB Output is correct
25 Correct 4 ms 16988 KB Output is correct
26 Correct 4 ms 17300 KB Output is correct
27 Correct 3 ms 16988 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 4 ms 17036 KB Output is correct
30 Correct 4 ms 16988 KB Output is correct
31 Correct 5 ms 17076 KB Output is correct
32 Correct 4 ms 16984 KB Output is correct
33 Correct 3 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 5 ms 17076 KB Output is correct
36 Correct 4 ms 16988 KB Output is correct
37 Correct 4 ms 16988 KB Output is correct
38 Correct 3 ms 16988 KB Output is correct
39 Correct 4 ms 16988 KB Output is correct
40 Correct 5 ms 16988 KB Output is correct
41 Correct 4 ms 17048 KB Output is correct
42 Correct 3 ms 16988 KB Output is correct
43 Correct 3 ms 16984 KB Output is correct
44 Correct 3 ms 16988 KB Output is correct
45 Correct 4 ms 16988 KB Output is correct
46 Correct 4 ms 16988 KB Output is correct
47 Correct 3 ms 16988 KB Output is correct
48 Correct 3 ms 16988 KB Output is correct
49 Correct 3 ms 16988 KB Output is correct
50 Correct 4 ms 16988 KB Output is correct
51 Correct 21 ms 17320 KB Output is correct
52 Correct 22 ms 17500 KB Output is correct
53 Correct 29 ms 17500 KB Output is correct
54 Correct 94 ms 17496 KB Output is correct
55 Correct 19 ms 17244 KB Output is correct
56 Correct 36 ms 17240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 16988 KB Output is correct
2 Correct 1591 ms 37456 KB Output is correct
3 Correct 1572 ms 37368 KB Output is correct
4 Correct 1567 ms 37220 KB Output is correct
5 Correct 1580 ms 37448 KB Output is correct
6 Correct 1560 ms 37136 KB Output is correct
7 Correct 1600 ms 37564 KB Output is correct
8 Correct 3 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 4 ms 16988 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 17060 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 5 ms 16984 KB Output is correct
17 Correct 19 ms 17244 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 16988 KB Output is correct
2 Correct 1591 ms 37456 KB Output is correct
3 Correct 1572 ms 37368 KB Output is correct
4 Correct 1567 ms 37220 KB Output is correct
5 Correct 1580 ms 37448 KB Output is correct
6 Correct 1560 ms 37136 KB Output is correct
7 Correct 1600 ms 37564 KB Output is correct
8 Correct 3 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 4 ms 16988 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 17060 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 5 ms 16984 KB Output is correct
17 Correct 19 ms 17244 KB Output is correct
18 Correct 4 ms 16988 KB Output is correct
19 Correct 4 ms 16988 KB Output is correct
20 Correct 1897 ms 46904 KB Output is correct
21 Correct 1757 ms 46420 KB Output is correct
22 Correct 1795 ms 46276 KB Output is correct
23 Correct 1658 ms 47004 KB Output is correct
24 Correct 1662 ms 46748 KB Output is correct
25 Correct 2156 ms 46692 KB Output is correct
26 Correct 2218 ms 47260 KB Output is correct
27 Correct 4 ms 16984 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 3 ms 16988 KB Output is correct
30 Correct 3 ms 16988 KB Output is correct
31 Correct 4 ms 16988 KB Output is correct
32 Correct 4 ms 16988 KB Output is correct
33 Correct 4 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 4 ms 16984 KB Output is correct
36 Correct 5 ms 16852 KB Output is correct
37 Correct 3 ms 16988 KB Output is correct
38 Correct 4 ms 17048 KB Output is correct
39 Correct 4 ms 17044 KB Output is correct
40 Correct 5 ms 16988 KB Output is correct
41 Correct 4 ms 16988 KB Output is correct
42 Correct 4 ms 16984 KB Output is correct
43 Correct 3 ms 16984 KB Output is correct
44 Correct 4 ms 16844 KB Output is correct
45 Correct 5 ms 17060 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 16988 KB Output is correct
2 Correct 1591 ms 37456 KB Output is correct
3 Correct 1572 ms 37368 KB Output is correct
4 Correct 1567 ms 37220 KB Output is correct
5 Correct 1580 ms 37448 KB Output is correct
6 Correct 1560 ms 37136 KB Output is correct
7 Correct 1600 ms 37564 KB Output is correct
8 Correct 3 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 4 ms 16988 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 17060 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 5 ms 16984 KB Output is correct
17 Correct 19 ms 17244 KB Output is correct
18 Correct 4 ms 16988 KB Output is correct
19 Correct 4 ms 16988 KB Output is correct
20 Correct 1897 ms 46904 KB Output is correct
21 Correct 1757 ms 46420 KB Output is correct
22 Correct 1795 ms 46276 KB Output is correct
23 Correct 1658 ms 47004 KB Output is correct
24 Correct 1662 ms 46748 KB Output is correct
25 Correct 2156 ms 46692 KB Output is correct
26 Correct 2218 ms 47260 KB Output is correct
27 Correct 4 ms 16984 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 3 ms 16988 KB Output is correct
30 Correct 3 ms 16988 KB Output is correct
31 Correct 4 ms 16988 KB Output is correct
32 Correct 4 ms 16988 KB Output is correct
33 Correct 4 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 4 ms 16984 KB Output is correct
36 Correct 5 ms 16852 KB Output is correct
37 Correct 3 ms 16988 KB Output is correct
38 Correct 4 ms 17048 KB Output is correct
39 Correct 4 ms 17044 KB Output is correct
40 Correct 5 ms 16988 KB Output is correct
41 Correct 4 ms 16988 KB Output is correct
42 Correct 4 ms 16984 KB Output is correct
43 Correct 3 ms 16984 KB Output is correct
44 Correct 4 ms 16844 KB Output is correct
45 Correct 5 ms 17060 KB Output is correct
46 Correct 3 ms 16988 KB Output is correct
47 Correct 2456 ms 53644 KB Output is correct
48 Correct 2145 ms 53188 KB Output is correct
49 Correct 2229 ms 53204 KB Output is correct
50 Correct 1722 ms 53968 KB Output is correct
51 Correct 1700 ms 53740 KB Output is correct
52 Correct 2326 ms 54044 KB Output is correct
53 Correct 2350 ms 54144 KB Output is correct
54 Correct 4 ms 16984 KB Output is correct
55 Correct 3 ms 16984 KB Output is correct
56 Correct 4 ms 16988 KB Output is correct
57 Correct 3 ms 16984 KB Output is correct
58 Correct 5 ms 16988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 16988 KB Output is correct
2 Correct 1591 ms 37456 KB Output is correct
3 Correct 1572 ms 37368 KB Output is correct
4 Correct 1567 ms 37220 KB Output is correct
5 Correct 1580 ms 37448 KB Output is correct
6 Correct 1560 ms 37136 KB Output is correct
7 Correct 1600 ms 37564 KB Output is correct
8 Correct 3 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 4 ms 16988 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 17060 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 5 ms 16984 KB Output is correct
17 Correct 19 ms 17244 KB Output is correct
18 Correct 4 ms 16988 KB Output is correct
19 Correct 4 ms 16988 KB Output is correct
20 Correct 1897 ms 46904 KB Output is correct
21 Correct 1757 ms 46420 KB Output is correct
22 Correct 1795 ms 46276 KB Output is correct
23 Correct 1658 ms 47004 KB Output is correct
24 Correct 1662 ms 46748 KB Output is correct
25 Correct 2156 ms 46692 KB Output is correct
26 Correct 2218 ms 47260 KB Output is correct
27 Correct 4 ms 16984 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 3 ms 16988 KB Output is correct
30 Correct 3 ms 16988 KB Output is correct
31 Correct 4 ms 16988 KB Output is correct
32 Correct 4 ms 16988 KB Output is correct
33 Correct 4 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 4 ms 16984 KB Output is correct
36 Correct 5 ms 16852 KB Output is correct
37 Correct 3 ms 16988 KB Output is correct
38 Correct 4 ms 17048 KB Output is correct
39 Correct 4 ms 17044 KB Output is correct
40 Correct 5 ms 16988 KB Output is correct
41 Correct 4 ms 16988 KB Output is correct
42 Correct 4 ms 16984 KB Output is correct
43 Correct 3 ms 16984 KB Output is correct
44 Correct 4 ms 16844 KB Output is correct
45 Correct 5 ms 17060 KB Output is correct
46 Correct 3 ms 16988 KB Output is correct
47 Correct 2456 ms 53644 KB Output is correct
48 Correct 2145 ms 53188 KB Output is correct
49 Correct 2229 ms 53204 KB Output is correct
50 Correct 1722 ms 53968 KB Output is correct
51 Correct 1700 ms 53740 KB Output is correct
52 Correct 2326 ms 54044 KB Output is correct
53 Correct 2350 ms 54144 KB Output is correct
54 Correct 4 ms 16984 KB Output is correct
55 Correct 3 ms 16984 KB Output is correct
56 Correct 4 ms 16988 KB Output is correct
57 Correct 3 ms 16984 KB Output is correct
58 Correct 5 ms 16988 KB Output is correct
59 Correct 2569 ms 59932 KB Output is correct
60 Correct 1215 ms 33612 KB Output is correct
61 Correct 1283 ms 34680 KB Output is correct
62 Correct 1422 ms 35784 KB Output is correct
63 Correct 2996 ms 59936 KB Output is correct
64 Correct 3203 ms 60372 KB Output is correct
65 Correct 3262 ms 60408 KB Output is correct
66 Correct 1769 ms 60756 KB Output is correct
67 Correct 1760 ms 60784 KB Output is correct
68 Correct 2479 ms 60268 KB Output is correct
69 Correct 3355 ms 60248 KB Output is correct
70 Correct 5 ms 16988 KB Output is correct
71 Correct 3 ms 16988 KB Output is correct
72 Correct 4 ms 16988 KB Output is correct
73 Correct 4 ms 16988 KB Output is correct
74 Correct 4 ms 16988 KB Output is correct
75 Correct 43 ms 17448 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 16988 KB Output is correct
2 Correct 3 ms 17048 KB Output is correct
3 Correct 4 ms 16988 KB Output is correct
4 Correct 4 ms 16988 KB Output is correct
5 Correct 4 ms 16988 KB Output is correct
6 Correct 6 ms 16988 KB Output is correct
7 Correct 4 ms 16988 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 5 ms 16988 KB Output is correct
10 Correct 3 ms 17024 KB Output is correct
11 Correct 4 ms 16988 KB Output is correct
12 Correct 7 ms 16988 KB Output is correct
13 Correct 3 ms 16844 KB Output is correct
14 Correct 4 ms 16988 KB Output is correct
15 Correct 4 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 5 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 4 ms 16984 KB Output is correct
20 Correct 3 ms 16988 KB Output is correct
21 Correct 6 ms 17024 KB Output is correct
22 Correct 4 ms 16988 KB Output is correct
23 Correct 4 ms 16988 KB Output is correct
24 Correct 3 ms 16988 KB Output is correct
25 Correct 4 ms 16988 KB Output is correct
26 Correct 4 ms 17300 KB Output is correct
27 Correct 3 ms 16988 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 4 ms 17036 KB Output is correct
30 Correct 4 ms 16988 KB Output is correct
31 Correct 5 ms 17076 KB Output is correct
32 Correct 4 ms 16984 KB Output is correct
33 Correct 3 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 5 ms 17076 KB Output is correct
36 Correct 4 ms 16988 KB Output is correct
37 Correct 4 ms 16988 KB Output is correct
38 Correct 3 ms 16988 KB Output is correct
39 Correct 4 ms 16988 KB Output is correct
40 Correct 5 ms 16988 KB Output is correct
41 Correct 4 ms 17048 KB Output is correct
42 Correct 3 ms 16988 KB Output is correct
43 Correct 3 ms 16984 KB Output is correct
44 Correct 3 ms 16988 KB Output is correct
45 Correct 4 ms 16988 KB Output is correct
46 Correct 4 ms 16988 KB Output is correct
47 Correct 3 ms 16988 KB Output is correct
48 Correct 3 ms 16988 KB Output is correct
49 Correct 3 ms 16988 KB Output is correct
50 Correct 4 ms 16988 KB Output is correct
51 Correct 21 ms 17320 KB Output is correct
52 Correct 22 ms 17500 KB Output is correct
53 Correct 29 ms 17500 KB Output is correct
54 Correct 94 ms 17496 KB Output is correct
55 Correct 19 ms 17244 KB Output is correct
56 Correct 36 ms 17240 KB Output is correct
57 Correct 4 ms 16988 KB Output is correct
58 Correct 1591 ms 37456 KB Output is correct
59 Correct 1572 ms 37368 KB Output is correct
60 Correct 1567 ms 37220 KB Output is correct
61 Correct 1580 ms 37448 KB Output is correct
62 Correct 1560 ms 37136 KB Output is correct
63 Correct 1600 ms 37564 KB Output is correct
64 Correct 3 ms 16988 KB Output is correct
65 Correct 4 ms 16988 KB Output is correct
66 Correct 4 ms 16988 KB Output is correct
67 Correct 4 ms 16988 KB Output is correct
68 Correct 5 ms 16988 KB Output is correct
69 Correct 3 ms 17060 KB Output is correct
70 Correct 4 ms 16988 KB Output is correct
71 Correct 4 ms 16988 KB Output is correct
72 Correct 5 ms 16984 KB Output is correct
73 Correct 19 ms 17244 KB Output is correct
74 Correct 4 ms 16988 KB Output is correct
75 Correct 4 ms 16988 KB Output is correct
76 Correct 1897 ms 46904 KB Output is correct
77 Correct 1757 ms 46420 KB Output is correct
78 Correct 1795 ms 46276 KB Output is correct
79 Correct 1658 ms 47004 KB Output is correct
80 Correct 1662 ms 46748 KB Output is correct
81 Correct 2156 ms 46692 KB Output is correct
82 Correct 2218 ms 47260 KB Output is correct
83 Correct 4 ms 16984 KB Output is correct
84 Correct 4 ms 16988 KB Output is correct
85 Correct 3 ms 16988 KB Output is correct
86 Correct 3 ms 16988 KB Output is correct
87 Correct 4 ms 16988 KB Output is correct
88 Correct 4 ms 16988 KB Output is correct
89 Correct 4 ms 16988 KB Output is correct
90 Correct 3 ms 16988 KB Output is correct
91 Correct 4 ms 16984 KB Output is correct
92 Correct 5 ms 16852 KB Output is correct
93 Correct 3 ms 16988 KB Output is correct
94 Correct 4 ms 17048 KB Output is correct
95 Correct 4 ms 17044 KB Output is correct
96 Correct 5 ms 16988 KB Output is correct
97 Correct 4 ms 16988 KB Output is correct
98 Correct 4 ms 16984 KB Output is correct
99 Correct 3 ms 16984 KB Output is correct
100 Correct 4 ms 16844 KB Output is correct
101 Correct 5 ms 17060 KB Output is correct
102 Correct 3 ms 16988 KB Output is correct
103 Correct 2456 ms 53644 KB Output is correct
104 Correct 2145 ms 53188 KB Output is correct
105 Correct 2229 ms 53204 KB Output is correct
106 Correct 1722 ms 53968 KB Output is correct
107 Correct 1700 ms 53740 KB Output is correct
108 Correct 2326 ms 54044 KB Output is correct
109 Correct 2350 ms 54144 KB Output is correct
110 Correct 4 ms 16984 KB Output is correct
111 Correct 3 ms 16984 KB Output is correct
112 Correct 4 ms 16988 KB Output is correct
113 Correct 3 ms 16984 KB Output is correct
114 Correct 5 ms 16988 KB Output is correct
115 Correct 2569 ms 59932 KB Output is correct
116 Correct 1215 ms 33612 KB Output is correct
117 Correct 1283 ms 34680 KB Output is correct
118 Correct 1422 ms 35784 KB Output is correct
119 Correct 2996 ms 59936 KB Output is correct
120 Correct 3203 ms 60372 KB Output is correct
121 Correct 3262 ms 60408 KB Output is correct
122 Correct 1769 ms 60756 KB Output is correct
123 Correct 1760 ms 60784 KB Output is correct
124 Correct 2479 ms 60268 KB Output is correct
125 Correct 3355 ms 60248 KB Output is correct
126 Correct 5 ms 16988 KB Output is correct
127 Correct 3 ms 16988 KB Output is correct
128 Correct 4 ms 16988 KB Output is correct
129 Correct 4 ms 16988 KB Output is correct
130 Correct 4 ms 16988 KB Output is correct
131 Correct 43 ms 17448 KB Output is correct
132 Execution timed out 4027 ms 65792 KB Time limit exceeded
133 Halted 0 ms 0 KB -