답안 #891345

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
891345 2023-12-22T19:13:52 Z vjudge1 Council (JOI23_council) C++17
100 / 100
2930 ms 47568 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 a[N][20];
pair<int, int> dp[2][1024][1024];
int cnt[20], bits[N], bpc[1<<20];
int n, m;
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
	cin >> n >> m;
	for(int i = 0;i < n; i++){
		for(int j = 0;j < m; j++){
			cin >> a[i][j];
		}
	}
	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++){
		for(int j = 0;j < m; j++){
			bits[i]+= (a[i][j] << j);
			cnt[j]+= a[i][j];
		}
		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{
				if(cnt[j] > n / 2) bc++;
				else if(cnt[j] == n / 2){
					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);
			}
			else 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);
		}
		cout << bc-mn << '\n';
	}
	
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 11 ms 23192 KB Output is correct
3 Correct 7 ms 23132 KB Output is correct
4 Correct 6 ms 23132 KB Output is correct
5 Correct 11 ms 23132 KB Output is correct
6 Correct 9 ms 23132 KB Output is correct
7 Correct 6 ms 23132 KB Output is correct
8 Correct 7 ms 23216 KB Output is correct
9 Correct 10 ms 23216 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 6 ms 23132 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23132 KB Output is correct
14 Correct 7 ms 23192 KB Output is correct
15 Correct 6 ms 23132 KB Output is correct
16 Correct 6 ms 23128 KB Output is correct
17 Correct 12 ms 23132 KB Output is correct
18 Correct 7 ms 23132 KB Output is correct
19 Correct 9 ms 23132 KB Output is correct
20 Correct 6 ms 23132 KB Output is correct
21 Correct 8 ms 23216 KB Output is correct
22 Correct 6 ms 23128 KB Output is correct
23 Correct 6 ms 23132 KB Output is correct
24 Correct 6 ms 23128 KB Output is correct
25 Correct 6 ms 23132 KB Output is correct
26 Correct 14 ms 22996 KB Output is correct
27 Correct 6 ms 23132 KB Output is correct
28 Correct 7 ms 23184 KB Output is correct
29 Correct 6 ms 23128 KB Output is correct
30 Correct 6 ms 23132 KB Output is correct
31 Correct 16 ms 23132 KB Output is correct
32 Correct 7 ms 23128 KB Output is correct
33 Correct 6 ms 23128 KB Output is correct
34 Correct 7 ms 23128 KB Output is correct
35 Correct 8 ms 23132 KB Output is correct
36 Correct 6 ms 23128 KB Output is correct
37 Correct 6 ms 23132 KB Output is correct
38 Correct 11 ms 23128 KB Output is correct
39 Correct 8 ms 23132 KB Output is correct
40 Correct 8 ms 23132 KB Output is correct
41 Correct 6 ms 23132 KB Output is correct
42 Correct 6 ms 23132 KB Output is correct
43 Correct 6 ms 23204 KB Output is correct
44 Correct 11 ms 23212 KB Output is correct
45 Correct 7 ms 23128 KB Output is correct
46 Correct 6 ms 23188 KB Output is correct
47 Correct 6 ms 23176 KB Output is correct
48 Correct 6 ms 23204 KB Output is correct
49 Correct 7 ms 23132 KB Output is correct
50 Correct 9 ms 23132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 11 ms 23192 KB Output is correct
3 Correct 7 ms 23132 KB Output is correct
4 Correct 6 ms 23132 KB Output is correct
5 Correct 11 ms 23132 KB Output is correct
6 Correct 9 ms 23132 KB Output is correct
7 Correct 6 ms 23132 KB Output is correct
8 Correct 7 ms 23216 KB Output is correct
9 Correct 10 ms 23216 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 6 ms 23132 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23132 KB Output is correct
14 Correct 7 ms 23192 KB Output is correct
15 Correct 6 ms 23132 KB Output is correct
16 Correct 6 ms 23128 KB Output is correct
17 Correct 12 ms 23132 KB Output is correct
18 Correct 7 ms 23132 KB Output is correct
19 Correct 9 ms 23132 KB Output is correct
20 Correct 6 ms 23132 KB Output is correct
21 Correct 8 ms 23216 KB Output is correct
22 Correct 6 ms 23128 KB Output is correct
23 Correct 6 ms 23132 KB Output is correct
24 Correct 6 ms 23128 KB Output is correct
25 Correct 6 ms 23132 KB Output is correct
26 Correct 14 ms 22996 KB Output is correct
27 Correct 6 ms 23132 KB Output is correct
28 Correct 7 ms 23184 KB Output is correct
29 Correct 6 ms 23128 KB Output is correct
30 Correct 6 ms 23132 KB Output is correct
31 Correct 16 ms 23132 KB Output is correct
32 Correct 7 ms 23128 KB Output is correct
33 Correct 6 ms 23128 KB Output is correct
34 Correct 7 ms 23128 KB Output is correct
35 Correct 8 ms 23132 KB Output is correct
36 Correct 6 ms 23128 KB Output is correct
37 Correct 6 ms 23132 KB Output is correct
38 Correct 11 ms 23128 KB Output is correct
39 Correct 8 ms 23132 KB Output is correct
40 Correct 8 ms 23132 KB Output is correct
41 Correct 6 ms 23132 KB Output is correct
42 Correct 6 ms 23132 KB Output is correct
43 Correct 6 ms 23204 KB Output is correct
44 Correct 11 ms 23212 KB Output is correct
45 Correct 7 ms 23128 KB Output is correct
46 Correct 6 ms 23188 KB Output is correct
47 Correct 6 ms 23176 KB Output is correct
48 Correct 6 ms 23204 KB Output is correct
49 Correct 7 ms 23132 KB Output is correct
50 Correct 9 ms 23132 KB Output is correct
51 Correct 31 ms 23212 KB Output is correct
52 Correct 34 ms 23132 KB Output is correct
53 Correct 29 ms 23132 KB Output is correct
54 Correct 28 ms 23128 KB Output is correct
55 Correct 30 ms 23132 KB Output is correct
56 Correct 30 ms 23216 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 2608 ms 46160 KB Output is correct
3 Correct 2497 ms 46532 KB Output is correct
4 Correct 2576 ms 46300 KB Output is correct
5 Correct 2506 ms 46216 KB Output is correct
6 Correct 2519 ms 46420 KB Output is correct
7 Correct 2544 ms 46384 KB Output is correct
8 Correct 10 ms 23132 KB Output is correct
9 Correct 6 ms 23132 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 10 ms 23128 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23128 KB Output is correct
14 Correct 6 ms 23132 KB Output is correct
15 Correct 7 ms 23132 KB Output is correct
16 Correct 9 ms 23132 KB Output is correct
17 Correct 30 ms 23216 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 2608 ms 46160 KB Output is correct
3 Correct 2497 ms 46532 KB Output is correct
4 Correct 2576 ms 46300 KB Output is correct
5 Correct 2506 ms 46216 KB Output is correct
6 Correct 2519 ms 46420 KB Output is correct
7 Correct 2544 ms 46384 KB Output is correct
8 Correct 10 ms 23132 KB Output is correct
9 Correct 6 ms 23132 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 10 ms 23128 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23128 KB Output is correct
14 Correct 6 ms 23132 KB Output is correct
15 Correct 7 ms 23132 KB Output is correct
16 Correct 9 ms 23132 KB Output is correct
17 Correct 30 ms 23216 KB Output is correct
18 Correct 10 ms 23132 KB Output is correct
19 Correct 6 ms 23132 KB Output is correct
20 Correct 2257 ms 46148 KB Output is correct
21 Correct 2418 ms 46204 KB Output is correct
22 Correct 2497 ms 46120 KB Output is correct
23 Correct 2630 ms 46368 KB Output is correct
24 Correct 2604 ms 46260 KB Output is correct
25 Correct 2176 ms 46476 KB Output is correct
26 Correct 1831 ms 46184 KB Output is correct
27 Correct 6 ms 23384 KB Output is correct
28 Correct 6 ms 23132 KB Output is correct
29 Correct 6 ms 23208 KB Output is correct
30 Correct 6 ms 23132 KB Output is correct
31 Correct 9 ms 23132 KB Output is correct
32 Correct 7 ms 23132 KB Output is correct
33 Correct 7 ms 23132 KB Output is correct
34 Correct 7 ms 23200 KB Output is correct
35 Correct 7 ms 23132 KB Output is correct
36 Correct 8 ms 23208 KB Output is correct
37 Correct 6 ms 23188 KB Output is correct
38 Correct 6 ms 23132 KB Output is correct
39 Correct 9 ms 23180 KB Output is correct
40 Correct 11 ms 23128 KB Output is correct
41 Correct 11 ms 23132 KB Output is correct
42 Correct 9 ms 23132 KB Output is correct
43 Correct 6 ms 23132 KB Output is correct
44 Correct 8 ms 23132 KB Output is correct
45 Correct 12 ms 23132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 2608 ms 46160 KB Output is correct
3 Correct 2497 ms 46532 KB Output is correct
4 Correct 2576 ms 46300 KB Output is correct
5 Correct 2506 ms 46216 KB Output is correct
6 Correct 2519 ms 46420 KB Output is correct
7 Correct 2544 ms 46384 KB Output is correct
8 Correct 10 ms 23132 KB Output is correct
9 Correct 6 ms 23132 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 10 ms 23128 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23128 KB Output is correct
14 Correct 6 ms 23132 KB Output is correct
15 Correct 7 ms 23132 KB Output is correct
16 Correct 9 ms 23132 KB Output is correct
17 Correct 30 ms 23216 KB Output is correct
18 Correct 10 ms 23132 KB Output is correct
19 Correct 6 ms 23132 KB Output is correct
20 Correct 2257 ms 46148 KB Output is correct
21 Correct 2418 ms 46204 KB Output is correct
22 Correct 2497 ms 46120 KB Output is correct
23 Correct 2630 ms 46368 KB Output is correct
24 Correct 2604 ms 46260 KB Output is correct
25 Correct 2176 ms 46476 KB Output is correct
26 Correct 1831 ms 46184 KB Output is correct
27 Correct 6 ms 23384 KB Output is correct
28 Correct 6 ms 23132 KB Output is correct
29 Correct 6 ms 23208 KB Output is correct
30 Correct 6 ms 23132 KB Output is correct
31 Correct 9 ms 23132 KB Output is correct
32 Correct 7 ms 23132 KB Output is correct
33 Correct 7 ms 23132 KB Output is correct
34 Correct 7 ms 23200 KB Output is correct
35 Correct 7 ms 23132 KB Output is correct
36 Correct 8 ms 23208 KB Output is correct
37 Correct 6 ms 23188 KB Output is correct
38 Correct 6 ms 23132 KB Output is correct
39 Correct 9 ms 23180 KB Output is correct
40 Correct 11 ms 23128 KB Output is correct
41 Correct 11 ms 23132 KB Output is correct
42 Correct 9 ms 23132 KB Output is correct
43 Correct 6 ms 23132 KB Output is correct
44 Correct 8 ms 23132 KB Output is correct
45 Correct 12 ms 23132 KB Output is correct
46 Correct 10 ms 23128 KB Output is correct
47 Correct 1833 ms 46112 KB Output is correct
48 Correct 1936 ms 46240 KB Output is correct
49 Correct 1884 ms 46084 KB Output is correct
50 Correct 2594 ms 46420 KB Output is correct
51 Correct 2644 ms 46132 KB Output is correct
52 Correct 2037 ms 46424 KB Output is correct
53 Correct 1991 ms 46376 KB Output is correct
54 Correct 7 ms 23128 KB Output is correct
55 Correct 6 ms 23128 KB Output is correct
56 Correct 6 ms 23380 KB Output is correct
57 Correct 6 ms 23132 KB Output is correct
58 Correct 7 ms 23132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 2608 ms 46160 KB Output is correct
3 Correct 2497 ms 46532 KB Output is correct
4 Correct 2576 ms 46300 KB Output is correct
5 Correct 2506 ms 46216 KB Output is correct
6 Correct 2519 ms 46420 KB Output is correct
7 Correct 2544 ms 46384 KB Output is correct
8 Correct 10 ms 23132 KB Output is correct
9 Correct 6 ms 23132 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 10 ms 23128 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23128 KB Output is correct
14 Correct 6 ms 23132 KB Output is correct
15 Correct 7 ms 23132 KB Output is correct
16 Correct 9 ms 23132 KB Output is correct
17 Correct 30 ms 23216 KB Output is correct
18 Correct 10 ms 23132 KB Output is correct
19 Correct 6 ms 23132 KB Output is correct
20 Correct 2257 ms 46148 KB Output is correct
21 Correct 2418 ms 46204 KB Output is correct
22 Correct 2497 ms 46120 KB Output is correct
23 Correct 2630 ms 46368 KB Output is correct
24 Correct 2604 ms 46260 KB Output is correct
25 Correct 2176 ms 46476 KB Output is correct
26 Correct 1831 ms 46184 KB Output is correct
27 Correct 6 ms 23384 KB Output is correct
28 Correct 6 ms 23132 KB Output is correct
29 Correct 6 ms 23208 KB Output is correct
30 Correct 6 ms 23132 KB Output is correct
31 Correct 9 ms 23132 KB Output is correct
32 Correct 7 ms 23132 KB Output is correct
33 Correct 7 ms 23132 KB Output is correct
34 Correct 7 ms 23200 KB Output is correct
35 Correct 7 ms 23132 KB Output is correct
36 Correct 8 ms 23208 KB Output is correct
37 Correct 6 ms 23188 KB Output is correct
38 Correct 6 ms 23132 KB Output is correct
39 Correct 9 ms 23180 KB Output is correct
40 Correct 11 ms 23128 KB Output is correct
41 Correct 11 ms 23132 KB Output is correct
42 Correct 9 ms 23132 KB Output is correct
43 Correct 6 ms 23132 KB Output is correct
44 Correct 8 ms 23132 KB Output is correct
45 Correct 12 ms 23132 KB Output is correct
46 Correct 10 ms 23128 KB Output is correct
47 Correct 1833 ms 46112 KB Output is correct
48 Correct 1936 ms 46240 KB Output is correct
49 Correct 1884 ms 46084 KB Output is correct
50 Correct 2594 ms 46420 KB Output is correct
51 Correct 2644 ms 46132 KB Output is correct
52 Correct 2037 ms 46424 KB Output is correct
53 Correct 1991 ms 46376 KB Output is correct
54 Correct 7 ms 23128 KB Output is correct
55 Correct 6 ms 23128 KB Output is correct
56 Correct 6 ms 23380 KB Output is correct
57 Correct 6 ms 23132 KB Output is correct
58 Correct 7 ms 23132 KB Output is correct
59 Correct 2151 ms 46880 KB Output is correct
60 Correct 787 ms 31728 KB Output is correct
61 Correct 791 ms 33848 KB Output is correct
62 Correct 847 ms 33820 KB Output is correct
63 Correct 1862 ms 46292 KB Output is correct
64 Correct 2028 ms 46120 KB Output is correct
65 Correct 2019 ms 46128 KB Output is correct
66 Correct 2596 ms 46392 KB Output is correct
67 Correct 2665 ms 45992 KB Output is correct
68 Correct 2033 ms 46084 KB Output is correct
69 Correct 1818 ms 46596 KB Output is correct
70 Correct 12 ms 23128 KB Output is correct
71 Correct 6 ms 23132 KB Output is correct
72 Correct 6 ms 23132 KB Output is correct
73 Correct 6 ms 23132 KB Output is correct
74 Correct 6 ms 23132 KB Output is correct
75 Correct 25 ms 23132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 23132 KB Output is correct
2 Correct 11 ms 23192 KB Output is correct
3 Correct 7 ms 23132 KB Output is correct
4 Correct 6 ms 23132 KB Output is correct
5 Correct 11 ms 23132 KB Output is correct
6 Correct 9 ms 23132 KB Output is correct
7 Correct 6 ms 23132 KB Output is correct
8 Correct 7 ms 23216 KB Output is correct
9 Correct 10 ms 23216 KB Output is correct
10 Correct 6 ms 23132 KB Output is correct
11 Correct 6 ms 23132 KB Output is correct
12 Correct 9 ms 23132 KB Output is correct
13 Correct 6 ms 23132 KB Output is correct
14 Correct 7 ms 23192 KB Output is correct
15 Correct 6 ms 23132 KB Output is correct
16 Correct 6 ms 23128 KB Output is correct
17 Correct 12 ms 23132 KB Output is correct
18 Correct 7 ms 23132 KB Output is correct
19 Correct 9 ms 23132 KB Output is correct
20 Correct 6 ms 23132 KB Output is correct
21 Correct 8 ms 23216 KB Output is correct
22 Correct 6 ms 23128 KB Output is correct
23 Correct 6 ms 23132 KB Output is correct
24 Correct 6 ms 23128 KB Output is correct
25 Correct 6 ms 23132 KB Output is correct
26 Correct 14 ms 22996 KB Output is correct
27 Correct 6 ms 23132 KB Output is correct
28 Correct 7 ms 23184 KB Output is correct
29 Correct 6 ms 23128 KB Output is correct
30 Correct 6 ms 23132 KB Output is correct
31 Correct 16 ms 23132 KB Output is correct
32 Correct 7 ms 23128 KB Output is correct
33 Correct 6 ms 23128 KB Output is correct
34 Correct 7 ms 23128 KB Output is correct
35 Correct 8 ms 23132 KB Output is correct
36 Correct 6 ms 23128 KB Output is correct
37 Correct 6 ms 23132 KB Output is correct
38 Correct 11 ms 23128 KB Output is correct
39 Correct 8 ms 23132 KB Output is correct
40 Correct 8 ms 23132 KB Output is correct
41 Correct 6 ms 23132 KB Output is correct
42 Correct 6 ms 23132 KB Output is correct
43 Correct 6 ms 23204 KB Output is correct
44 Correct 11 ms 23212 KB Output is correct
45 Correct 7 ms 23128 KB Output is correct
46 Correct 6 ms 23188 KB Output is correct
47 Correct 6 ms 23176 KB Output is correct
48 Correct 6 ms 23204 KB Output is correct
49 Correct 7 ms 23132 KB Output is correct
50 Correct 9 ms 23132 KB Output is correct
51 Correct 31 ms 23212 KB Output is correct
52 Correct 34 ms 23132 KB Output is correct
53 Correct 29 ms 23132 KB Output is correct
54 Correct 28 ms 23128 KB Output is correct
55 Correct 30 ms 23132 KB Output is correct
56 Correct 30 ms 23216 KB Output is correct
57 Correct 6 ms 23132 KB Output is correct
58 Correct 2608 ms 46160 KB Output is correct
59 Correct 2497 ms 46532 KB Output is correct
60 Correct 2576 ms 46300 KB Output is correct
61 Correct 2506 ms 46216 KB Output is correct
62 Correct 2519 ms 46420 KB Output is correct
63 Correct 2544 ms 46384 KB Output is correct
64 Correct 10 ms 23132 KB Output is correct
65 Correct 6 ms 23132 KB Output is correct
66 Correct 6 ms 23132 KB Output is correct
67 Correct 10 ms 23128 KB Output is correct
68 Correct 9 ms 23132 KB Output is correct
69 Correct 6 ms 23128 KB Output is correct
70 Correct 6 ms 23132 KB Output is correct
71 Correct 7 ms 23132 KB Output is correct
72 Correct 9 ms 23132 KB Output is correct
73 Correct 30 ms 23216 KB Output is correct
74 Correct 10 ms 23132 KB Output is correct
75 Correct 6 ms 23132 KB Output is correct
76 Correct 2257 ms 46148 KB Output is correct
77 Correct 2418 ms 46204 KB Output is correct
78 Correct 2497 ms 46120 KB Output is correct
79 Correct 2630 ms 46368 KB Output is correct
80 Correct 2604 ms 46260 KB Output is correct
81 Correct 2176 ms 46476 KB Output is correct
82 Correct 1831 ms 46184 KB Output is correct
83 Correct 6 ms 23384 KB Output is correct
84 Correct 6 ms 23132 KB Output is correct
85 Correct 6 ms 23208 KB Output is correct
86 Correct 6 ms 23132 KB Output is correct
87 Correct 9 ms 23132 KB Output is correct
88 Correct 7 ms 23132 KB Output is correct
89 Correct 7 ms 23132 KB Output is correct
90 Correct 7 ms 23200 KB Output is correct
91 Correct 7 ms 23132 KB Output is correct
92 Correct 8 ms 23208 KB Output is correct
93 Correct 6 ms 23188 KB Output is correct
94 Correct 6 ms 23132 KB Output is correct
95 Correct 9 ms 23180 KB Output is correct
96 Correct 11 ms 23128 KB Output is correct
97 Correct 11 ms 23132 KB Output is correct
98 Correct 9 ms 23132 KB Output is correct
99 Correct 6 ms 23132 KB Output is correct
100 Correct 8 ms 23132 KB Output is correct
101 Correct 12 ms 23132 KB Output is correct
102 Correct 10 ms 23128 KB Output is correct
103 Correct 1833 ms 46112 KB Output is correct
104 Correct 1936 ms 46240 KB Output is correct
105 Correct 1884 ms 46084 KB Output is correct
106 Correct 2594 ms 46420 KB Output is correct
107 Correct 2644 ms 46132 KB Output is correct
108 Correct 2037 ms 46424 KB Output is correct
109 Correct 1991 ms 46376 KB Output is correct
110 Correct 7 ms 23128 KB Output is correct
111 Correct 6 ms 23128 KB Output is correct
112 Correct 6 ms 23380 KB Output is correct
113 Correct 6 ms 23132 KB Output is correct
114 Correct 7 ms 23132 KB Output is correct
115 Correct 2151 ms 46880 KB Output is correct
116 Correct 787 ms 31728 KB Output is correct
117 Correct 791 ms 33848 KB Output is correct
118 Correct 847 ms 33820 KB Output is correct
119 Correct 1862 ms 46292 KB Output is correct
120 Correct 2028 ms 46120 KB Output is correct
121 Correct 2019 ms 46128 KB Output is correct
122 Correct 2596 ms 46392 KB Output is correct
123 Correct 2665 ms 45992 KB Output is correct
124 Correct 2033 ms 46084 KB Output is correct
125 Correct 1818 ms 46596 KB Output is correct
126 Correct 12 ms 23128 KB Output is correct
127 Correct 6 ms 23132 KB Output is correct
128 Correct 6 ms 23132 KB Output is correct
129 Correct 6 ms 23132 KB Output is correct
130 Correct 6 ms 23132 KB Output is correct
131 Correct 25 ms 23132 KB Output is correct
132 Correct 1924 ms 46840 KB Output is correct
133 Correct 1931 ms 46456 KB Output is correct
134 Correct 2013 ms 46632 KB Output is correct
135 Correct 2930 ms 46348 KB Output is correct
136 Correct 2028 ms 46392 KB Output is correct
137 Correct 2049 ms 46500 KB Output is correct
138 Correct 2017 ms 46912 KB Output is correct
139 Correct 2673 ms 47568 KB Output is correct
140 Correct 2599 ms 46752 KB Output is correct
141 Correct 2246 ms 46212 KB Output is correct
142 Correct 1911 ms 46536 KB Output is correct