답안 #891337

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
891337 2023-12-22T19:09:29 Z iskhakkutbilim Council (JOI23_council) C++14
78 / 100
4000 ms 76240 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;

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];
		}
	}
	vector<int> cnt(m,0);
	vector<int> bits(n, 0);
	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++){
		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);
			}
			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 8 ms 27228 KB Output is correct
2 Correct 8 ms 27304 KB Output is correct
3 Correct 8 ms 27228 KB Output is correct
4 Correct 8 ms 27216 KB Output is correct
5 Correct 9 ms 27228 KB Output is correct
6 Correct 10 ms 27236 KB Output is correct
7 Correct 8 ms 27228 KB Output is correct
8 Correct 8 ms 27280 KB Output is correct
9 Correct 9 ms 27228 KB Output is correct
10 Correct 8 ms 27228 KB Output is correct
11 Correct 9 ms 27224 KB Output is correct
12 Correct 11 ms 27344 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 9 ms 27224 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 8 ms 27272 KB Output is correct
17 Correct 9 ms 27228 KB Output is correct
18 Correct 8 ms 27228 KB Output is correct
19 Correct 8 ms 27228 KB Output is correct
20 Correct 9 ms 27088 KB Output is correct
21 Correct 9 ms 27104 KB Output is correct
22 Correct 9 ms 27228 KB Output is correct
23 Correct 8 ms 27228 KB Output is correct
24 Correct 9 ms 27280 KB Output is correct
25 Correct 8 ms 27228 KB Output is correct
26 Correct 9 ms 27228 KB Output is correct
27 Correct 9 ms 27268 KB Output is correct
28 Correct 8 ms 27228 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 8 ms 27224 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 27224 KB Output is correct
34 Correct 9 ms 27228 KB Output is correct
35 Correct 9 ms 27108 KB Output is correct
36 Correct 8 ms 27224 KB Output is correct
37 Correct 9 ms 27228 KB Output is correct
38 Correct 8 ms 27084 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 10 ms 27228 KB Output is correct
41 Correct 9 ms 27228 KB Output is correct
42 Correct 8 ms 27420 KB Output is correct
43 Correct 9 ms 27144 KB Output is correct
44 Correct 8 ms 27228 KB Output is correct
45 Correct 8 ms 27228 KB Output is correct
46 Correct 8 ms 27224 KB Output is correct
47 Correct 11 ms 27480 KB Output is correct
48 Correct 8 ms 27228 KB Output is correct
49 Correct 8 ms 27228 KB Output is correct
50 Correct 8 ms 27228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 8 ms 27304 KB Output is correct
3 Correct 8 ms 27228 KB Output is correct
4 Correct 8 ms 27216 KB Output is correct
5 Correct 9 ms 27228 KB Output is correct
6 Correct 10 ms 27236 KB Output is correct
7 Correct 8 ms 27228 KB Output is correct
8 Correct 8 ms 27280 KB Output is correct
9 Correct 9 ms 27228 KB Output is correct
10 Correct 8 ms 27228 KB Output is correct
11 Correct 9 ms 27224 KB Output is correct
12 Correct 11 ms 27344 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 9 ms 27224 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 8 ms 27272 KB Output is correct
17 Correct 9 ms 27228 KB Output is correct
18 Correct 8 ms 27228 KB Output is correct
19 Correct 8 ms 27228 KB Output is correct
20 Correct 9 ms 27088 KB Output is correct
21 Correct 9 ms 27104 KB Output is correct
22 Correct 9 ms 27228 KB Output is correct
23 Correct 8 ms 27228 KB Output is correct
24 Correct 9 ms 27280 KB Output is correct
25 Correct 8 ms 27228 KB Output is correct
26 Correct 9 ms 27228 KB Output is correct
27 Correct 9 ms 27268 KB Output is correct
28 Correct 8 ms 27228 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 8 ms 27224 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 27224 KB Output is correct
34 Correct 9 ms 27228 KB Output is correct
35 Correct 9 ms 27108 KB Output is correct
36 Correct 8 ms 27224 KB Output is correct
37 Correct 9 ms 27228 KB Output is correct
38 Correct 8 ms 27084 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 10 ms 27228 KB Output is correct
41 Correct 9 ms 27228 KB Output is correct
42 Correct 8 ms 27420 KB Output is correct
43 Correct 9 ms 27144 KB Output is correct
44 Correct 8 ms 27228 KB Output is correct
45 Correct 8 ms 27228 KB Output is correct
46 Correct 8 ms 27224 KB Output is correct
47 Correct 11 ms 27480 KB Output is correct
48 Correct 8 ms 27228 KB Output is correct
49 Correct 8 ms 27228 KB Output is correct
50 Correct 8 ms 27228 KB Output is correct
51 Correct 17 ms 27680 KB Output is correct
52 Correct 17 ms 27676 KB Output is correct
53 Correct 27 ms 27484 KB Output is correct
54 Correct 65 ms 27484 KB Output is correct
55 Correct 15 ms 27480 KB Output is correct
56 Correct 31 ms 27484 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 27224 KB Output is correct
2 Correct 651 ms 45424 KB Output is correct
3 Correct 644 ms 45396 KB Output is correct
4 Correct 637 ms 45652 KB Output is correct
5 Correct 665 ms 45512 KB Output is correct
6 Correct 633 ms 45428 KB Output is correct
7 Correct 640 ms 45396 KB Output is correct
8 Correct 9 ms 27228 KB Output is correct
9 Correct 8 ms 27228 KB Output is correct
10 Correct 8 ms 27264 KB Output is correct
11 Correct 8 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 8 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 13 ms 27228 KB Output is correct
17 Correct 21 ms 27468 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 27224 KB Output is correct
2 Correct 651 ms 45424 KB Output is correct
3 Correct 644 ms 45396 KB Output is correct
4 Correct 637 ms 45652 KB Output is correct
5 Correct 665 ms 45512 KB Output is correct
6 Correct 633 ms 45428 KB Output is correct
7 Correct 640 ms 45396 KB Output is correct
8 Correct 9 ms 27228 KB Output is correct
9 Correct 8 ms 27228 KB Output is correct
10 Correct 8 ms 27264 KB Output is correct
11 Correct 8 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 8 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 13 ms 27228 KB Output is correct
17 Correct 21 ms 27468 KB Output is correct
18 Correct 10 ms 27228 KB Output is correct
19 Correct 8 ms 27228 KB Output is correct
20 Correct 913 ms 50344 KB Output is correct
21 Correct 815 ms 50132 KB Output is correct
22 Correct 829 ms 50128 KB Output is correct
23 Correct 754 ms 50256 KB Output is correct
24 Correct 753 ms 50024 KB Output is correct
25 Correct 1335 ms 50012 KB Output is correct
26 Correct 1336 ms 50016 KB Output is correct
27 Correct 8 ms 27228 KB Output is correct
28 Correct 8 ms 27092 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 10 ms 27228 KB Output is correct
31 Correct 9 ms 27320 KB Output is correct
32 Correct 9 ms 27228 KB Output is correct
33 Correct 8 ms 27228 KB Output is correct
34 Correct 9 ms 27168 KB Output is correct
35 Correct 9 ms 27228 KB Output is correct
36 Correct 9 ms 27332 KB Output is correct
37 Correct 8 ms 27224 KB Output is correct
38 Correct 8 ms 27480 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 9 ms 27228 KB Output is correct
41 Correct 11 ms 27268 KB Output is correct
42 Correct 8 ms 27224 KB Output is correct
43 Correct 8 ms 27228 KB Output is correct
44 Correct 8 ms 27224 KB Output is correct
45 Correct 9 ms 27228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 27224 KB Output is correct
2 Correct 651 ms 45424 KB Output is correct
3 Correct 644 ms 45396 KB Output is correct
4 Correct 637 ms 45652 KB Output is correct
5 Correct 665 ms 45512 KB Output is correct
6 Correct 633 ms 45428 KB Output is correct
7 Correct 640 ms 45396 KB Output is correct
8 Correct 9 ms 27228 KB Output is correct
9 Correct 8 ms 27228 KB Output is correct
10 Correct 8 ms 27264 KB Output is correct
11 Correct 8 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 8 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 13 ms 27228 KB Output is correct
17 Correct 21 ms 27468 KB Output is correct
18 Correct 10 ms 27228 KB Output is correct
19 Correct 8 ms 27228 KB Output is correct
20 Correct 913 ms 50344 KB Output is correct
21 Correct 815 ms 50132 KB Output is correct
22 Correct 829 ms 50128 KB Output is correct
23 Correct 754 ms 50256 KB Output is correct
24 Correct 753 ms 50024 KB Output is correct
25 Correct 1335 ms 50012 KB Output is correct
26 Correct 1336 ms 50016 KB Output is correct
27 Correct 8 ms 27228 KB Output is correct
28 Correct 8 ms 27092 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 10 ms 27228 KB Output is correct
31 Correct 9 ms 27320 KB Output is correct
32 Correct 9 ms 27228 KB Output is correct
33 Correct 8 ms 27228 KB Output is correct
34 Correct 9 ms 27168 KB Output is correct
35 Correct 9 ms 27228 KB Output is correct
36 Correct 9 ms 27332 KB Output is correct
37 Correct 8 ms 27224 KB Output is correct
38 Correct 8 ms 27480 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 9 ms 27228 KB Output is correct
41 Correct 11 ms 27268 KB Output is correct
42 Correct 8 ms 27224 KB Output is correct
43 Correct 8 ms 27228 KB Output is correct
44 Correct 8 ms 27224 KB Output is correct
45 Correct 9 ms 27228 KB Output is correct
46 Correct 8 ms 27224 KB Output is correct
47 Correct 1344 ms 54824 KB Output is correct
48 Correct 1171 ms 54812 KB Output is correct
49 Correct 1188 ms 54972 KB Output is correct
50 Correct 777 ms 55080 KB Output is correct
51 Correct 795 ms 54820 KB Output is correct
52 Correct 1411 ms 54872 KB Output is correct
53 Correct 1420 ms 55132 KB Output is correct
54 Correct 8 ms 27224 KB Output is correct
55 Correct 8 ms 27228 KB Output is correct
56 Correct 8 ms 27228 KB Output is correct
57 Correct 9 ms 27304 KB Output is correct
58 Correct 8 ms 27480 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 27224 KB Output is correct
2 Correct 651 ms 45424 KB Output is correct
3 Correct 644 ms 45396 KB Output is correct
4 Correct 637 ms 45652 KB Output is correct
5 Correct 665 ms 45512 KB Output is correct
6 Correct 633 ms 45428 KB Output is correct
7 Correct 640 ms 45396 KB Output is correct
8 Correct 9 ms 27228 KB Output is correct
9 Correct 8 ms 27228 KB Output is correct
10 Correct 8 ms 27264 KB Output is correct
11 Correct 8 ms 27228 KB Output is correct
12 Correct 9 ms 27228 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 8 ms 27228 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 13 ms 27228 KB Output is correct
17 Correct 21 ms 27468 KB Output is correct
18 Correct 10 ms 27228 KB Output is correct
19 Correct 8 ms 27228 KB Output is correct
20 Correct 913 ms 50344 KB Output is correct
21 Correct 815 ms 50132 KB Output is correct
22 Correct 829 ms 50128 KB Output is correct
23 Correct 754 ms 50256 KB Output is correct
24 Correct 753 ms 50024 KB Output is correct
25 Correct 1335 ms 50012 KB Output is correct
26 Correct 1336 ms 50016 KB Output is correct
27 Correct 8 ms 27228 KB Output is correct
28 Correct 8 ms 27092 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 10 ms 27228 KB Output is correct
31 Correct 9 ms 27320 KB Output is correct
32 Correct 9 ms 27228 KB Output is correct
33 Correct 8 ms 27228 KB Output is correct
34 Correct 9 ms 27168 KB Output is correct
35 Correct 9 ms 27228 KB Output is correct
36 Correct 9 ms 27332 KB Output is correct
37 Correct 8 ms 27224 KB Output is correct
38 Correct 8 ms 27480 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 9 ms 27228 KB Output is correct
41 Correct 11 ms 27268 KB Output is correct
42 Correct 8 ms 27224 KB Output is correct
43 Correct 8 ms 27228 KB Output is correct
44 Correct 8 ms 27224 KB Output is correct
45 Correct 9 ms 27228 KB Output is correct
46 Correct 8 ms 27224 KB Output is correct
47 Correct 1344 ms 54824 KB Output is correct
48 Correct 1171 ms 54812 KB Output is correct
49 Correct 1188 ms 54972 KB Output is correct
50 Correct 777 ms 55080 KB Output is correct
51 Correct 795 ms 54820 KB Output is correct
52 Correct 1411 ms 54872 KB Output is correct
53 Correct 1420 ms 55132 KB Output is correct
54 Correct 8 ms 27224 KB Output is correct
55 Correct 8 ms 27228 KB Output is correct
56 Correct 8 ms 27228 KB Output is correct
57 Correct 9 ms 27304 KB Output is correct
58 Correct 8 ms 27480 KB Output is correct
59 Correct 1533 ms 59912 KB Output is correct
60 Correct 744 ms 39760 KB Output is correct
61 Correct 861 ms 40528 KB Output is correct
62 Correct 854 ms 41032 KB Output is correct
63 Correct 1814 ms 59476 KB Output is correct
64 Correct 1973 ms 59928 KB Output is correct
65 Correct 1983 ms 59988 KB Output is correct
66 Correct 814 ms 59772 KB Output is correct
67 Correct 838 ms 59380 KB Output is correct
68 Correct 1435 ms 59832 KB Output is correct
69 Correct 1975 ms 59984 KB Output is correct
70 Correct 9 ms 27224 KB Output is correct
71 Correct 9 ms 27228 KB Output is correct
72 Correct 8 ms 27092 KB Output is correct
73 Correct 8 ms 27228 KB Output is correct
74 Correct 8 ms 27228 KB Output is correct
75 Correct 29 ms 27500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 27228 KB Output is correct
2 Correct 8 ms 27304 KB Output is correct
3 Correct 8 ms 27228 KB Output is correct
4 Correct 8 ms 27216 KB Output is correct
5 Correct 9 ms 27228 KB Output is correct
6 Correct 10 ms 27236 KB Output is correct
7 Correct 8 ms 27228 KB Output is correct
8 Correct 8 ms 27280 KB Output is correct
9 Correct 9 ms 27228 KB Output is correct
10 Correct 8 ms 27228 KB Output is correct
11 Correct 9 ms 27224 KB Output is correct
12 Correct 11 ms 27344 KB Output is correct
13 Correct 8 ms 27224 KB Output is correct
14 Correct 9 ms 27224 KB Output is correct
15 Correct 8 ms 27228 KB Output is correct
16 Correct 8 ms 27272 KB Output is correct
17 Correct 9 ms 27228 KB Output is correct
18 Correct 8 ms 27228 KB Output is correct
19 Correct 8 ms 27228 KB Output is correct
20 Correct 9 ms 27088 KB Output is correct
21 Correct 9 ms 27104 KB Output is correct
22 Correct 9 ms 27228 KB Output is correct
23 Correct 8 ms 27228 KB Output is correct
24 Correct 9 ms 27280 KB Output is correct
25 Correct 8 ms 27228 KB Output is correct
26 Correct 9 ms 27228 KB Output is correct
27 Correct 9 ms 27268 KB Output is correct
28 Correct 8 ms 27228 KB Output is correct
29 Correct 8 ms 27228 KB Output is correct
30 Correct 8 ms 27224 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 27224 KB Output is correct
34 Correct 9 ms 27228 KB Output is correct
35 Correct 9 ms 27108 KB Output is correct
36 Correct 8 ms 27224 KB Output is correct
37 Correct 9 ms 27228 KB Output is correct
38 Correct 8 ms 27084 KB Output is correct
39 Correct 8 ms 27228 KB Output is correct
40 Correct 10 ms 27228 KB Output is correct
41 Correct 9 ms 27228 KB Output is correct
42 Correct 8 ms 27420 KB Output is correct
43 Correct 9 ms 27144 KB Output is correct
44 Correct 8 ms 27228 KB Output is correct
45 Correct 8 ms 27228 KB Output is correct
46 Correct 8 ms 27224 KB Output is correct
47 Correct 11 ms 27480 KB Output is correct
48 Correct 8 ms 27228 KB Output is correct
49 Correct 8 ms 27228 KB Output is correct
50 Correct 8 ms 27228 KB Output is correct
51 Correct 17 ms 27680 KB Output is correct
52 Correct 17 ms 27676 KB Output is correct
53 Correct 27 ms 27484 KB Output is correct
54 Correct 65 ms 27484 KB Output is correct
55 Correct 15 ms 27480 KB Output is correct
56 Correct 31 ms 27484 KB Output is correct
57 Correct 8 ms 27224 KB Output is correct
58 Correct 651 ms 45424 KB Output is correct
59 Correct 644 ms 45396 KB Output is correct
60 Correct 637 ms 45652 KB Output is correct
61 Correct 665 ms 45512 KB Output is correct
62 Correct 633 ms 45428 KB Output is correct
63 Correct 640 ms 45396 KB Output is correct
64 Correct 9 ms 27228 KB Output is correct
65 Correct 8 ms 27228 KB Output is correct
66 Correct 8 ms 27264 KB Output is correct
67 Correct 8 ms 27228 KB Output is correct
68 Correct 9 ms 27228 KB Output is correct
69 Correct 8 ms 27224 KB Output is correct
70 Correct 8 ms 27228 KB Output is correct
71 Correct 8 ms 27228 KB Output is correct
72 Correct 13 ms 27228 KB Output is correct
73 Correct 21 ms 27468 KB Output is correct
74 Correct 10 ms 27228 KB Output is correct
75 Correct 8 ms 27228 KB Output is correct
76 Correct 913 ms 50344 KB Output is correct
77 Correct 815 ms 50132 KB Output is correct
78 Correct 829 ms 50128 KB Output is correct
79 Correct 754 ms 50256 KB Output is correct
80 Correct 753 ms 50024 KB Output is correct
81 Correct 1335 ms 50012 KB Output is correct
82 Correct 1336 ms 50016 KB Output is correct
83 Correct 8 ms 27228 KB Output is correct
84 Correct 8 ms 27092 KB Output is correct
85 Correct 8 ms 27228 KB Output is correct
86 Correct 10 ms 27228 KB Output is correct
87 Correct 9 ms 27320 KB Output is correct
88 Correct 9 ms 27228 KB Output is correct
89 Correct 8 ms 27228 KB Output is correct
90 Correct 9 ms 27168 KB Output is correct
91 Correct 9 ms 27228 KB Output is correct
92 Correct 9 ms 27332 KB Output is correct
93 Correct 8 ms 27224 KB Output is correct
94 Correct 8 ms 27480 KB Output is correct
95 Correct 8 ms 27228 KB Output is correct
96 Correct 9 ms 27228 KB Output is correct
97 Correct 11 ms 27268 KB Output is correct
98 Correct 8 ms 27224 KB Output is correct
99 Correct 8 ms 27228 KB Output is correct
100 Correct 8 ms 27224 KB Output is correct
101 Correct 9 ms 27228 KB Output is correct
102 Correct 8 ms 27224 KB Output is correct
103 Correct 1344 ms 54824 KB Output is correct
104 Correct 1171 ms 54812 KB Output is correct
105 Correct 1188 ms 54972 KB Output is correct
106 Correct 777 ms 55080 KB Output is correct
107 Correct 795 ms 54820 KB Output is correct
108 Correct 1411 ms 54872 KB Output is correct
109 Correct 1420 ms 55132 KB Output is correct
110 Correct 8 ms 27224 KB Output is correct
111 Correct 8 ms 27228 KB Output is correct
112 Correct 8 ms 27228 KB Output is correct
113 Correct 9 ms 27304 KB Output is correct
114 Correct 8 ms 27480 KB Output is correct
115 Correct 1533 ms 59912 KB Output is correct
116 Correct 744 ms 39760 KB Output is correct
117 Correct 861 ms 40528 KB Output is correct
118 Correct 854 ms 41032 KB Output is correct
119 Correct 1814 ms 59476 KB Output is correct
120 Correct 1973 ms 59928 KB Output is correct
121 Correct 1983 ms 59988 KB Output is correct
122 Correct 814 ms 59772 KB Output is correct
123 Correct 838 ms 59380 KB Output is correct
124 Correct 1435 ms 59832 KB Output is correct
125 Correct 1975 ms 59984 KB Output is correct
126 Correct 9 ms 27224 KB Output is correct
127 Correct 9 ms 27228 KB Output is correct
128 Correct 8 ms 27092 KB Output is correct
129 Correct 8 ms 27228 KB Output is correct
130 Correct 8 ms 27228 KB Output is correct
131 Correct 29 ms 27500 KB Output is correct
132 Correct 3891 ms 64776 KB Output is correct
133 Execution timed out 4046 ms 76240 KB Time limit exceeded
134 Halted 0 ms 0 KB -