답안 #828272

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
828272 2023-08-17T07:33:17 Z CSQ31 Council (JOI23_council) C++17
100 / 100
2626 ms 18788 KB
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define sz(a) (int)(a.size())
#define all(a) a.begin(),a.end()
#define lb lower_bound
#define ub upper_bound
#define owo ios_base::sync_with_stdio(0);cin.tie(0);
#define debug(...) fprintf(stderr, __VA_ARGS__),fflush(stderr)
#define time__(d) for(long blockTime = 0; (blockTime == 0 ? (blockTime=clock()) != 0 : false);\
debug("%s time : %.4fs\n", d, (double)(clock() - blockTime) / CLOCKS_PER_SEC))
typedef long long int ll;
typedef long double ld;
typedef pair<ll,ll> PII;
typedef pair<int,int> pii;
typedef vector<vector<int>> vii;
typedef vector<vector<ll>> VII;
ll gcd(ll a,ll b){if(!b)return a;else return gcd(b,a%b);}
int a[300001],cnt[20];
pii bit[2][1024][1024];
//i,m0,m1 : first half of mask = m0, second half of mask has i bits in common with m1 
int main()
{
	owo
	int n,m;
	cin>>n>>m;
	for(int i=1;i<=n;i++){
		for(int j=0;j<m;j++){
			int x;
			cin>>x;
			
			a[i] |= (x<<j);
			cnt[j]+=x;
		}
		int m0 = a[i]&1023;
		int m1 = a[i]>>10;
		for(int j=0;j<1024;j++){
			int c = __builtin_popcount(m1&j);
			if(!bit[0][m0][j].se)bit[0][m0][j] = {c,i};
			else{
				if(c <= bit[0][m0][j].fi){
					bit[1][m0][j] = bit[0][m0][j];
					bit[0][m0][j] = {c,i};		
				}else if(!bit[1][m0][j].se || c <= bit[1][m0][j].fi ){
					bit[1][m0][j] = {c,i};		
				}
				
			}
		}
	}
	for(int i=1;i<=n;i++){
		int mask = 0,ans = 0;
		for(int j=0;j<m;j++){
			int c = (a[i]>>j)&1;
			
			if(cnt[j]-c >= n/2)ans++;
			if(cnt[j]-c == n/2)mask+=(1<<j); //we try to make this bit off
		}
		int m0 = mask&1023;
		int m1 = mask>>10;
		int mn = 20;
		for(int j=0;j<1024;j++){
			int c = __builtin_popcount(m0&j);
			if(!bit[0][j][m1].se)continue;
			
			int kek = 20;
			if(bit[0][j][m1].se != i)kek = bit[0][j][m1].fi;
			else if(bit[1][j][m1].se)kek = bit[1][j][m1].fi;
			mn = min(mn,kek+c);
		}
		cout<<ans-mn<<'\n';
		
	}

	
	
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 1 ms 468 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 504 KB Output is correct
6 Correct 2 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 596 KB Output is correct
9 Correct 4 ms 3668 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 596 KB Output is correct
12 Correct 8 ms 3540 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 2 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 2 ms 340 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 2 ms 468 KB Output is correct
25 Correct 1 ms 596 KB Output is correct
26 Correct 4 ms 1236 KB Output is correct
27 Correct 1 ms 596 KB Output is correct
28 Correct 2 ms 852 KB Output is correct
29 Correct 1 ms 468 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 4 ms 3540 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 468 KB Output is correct
34 Correct 1 ms 596 KB Output is correct
35 Correct 2 ms 1236 KB Output is correct
36 Correct 1 ms 584 KB Output is correct
37 Correct 1 ms 852 KB Output is correct
38 Correct 1 ms 468 KB Output is correct
39 Correct 1 ms 724 KB Output is correct
40 Correct 4 ms 3668 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 2 ms 468 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 596 KB Output is correct
46 Correct 1 ms 468 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 596 KB Output is correct
49 Correct 1 ms 340 KB Output is correct
50 Correct 1 ms 596 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 1 ms 468 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 504 KB Output is correct
6 Correct 2 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 596 KB Output is correct
9 Correct 4 ms 3668 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 596 KB Output is correct
12 Correct 8 ms 3540 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 2 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 2 ms 340 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 2 ms 468 KB Output is correct
25 Correct 1 ms 596 KB Output is correct
26 Correct 4 ms 1236 KB Output is correct
27 Correct 1 ms 596 KB Output is correct
28 Correct 2 ms 852 KB Output is correct
29 Correct 1 ms 468 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 4 ms 3540 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 468 KB Output is correct
34 Correct 1 ms 596 KB Output is correct
35 Correct 2 ms 1236 KB Output is correct
36 Correct 1 ms 584 KB Output is correct
37 Correct 1 ms 852 KB Output is correct
38 Correct 1 ms 468 KB Output is correct
39 Correct 1 ms 724 KB Output is correct
40 Correct 4 ms 3668 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 2 ms 468 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 596 KB Output is correct
46 Correct 1 ms 468 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 596 KB Output is correct
49 Correct 1 ms 340 KB Output is correct
50 Correct 1 ms 596 KB Output is correct
51 Correct 18 ms 380 KB Output is correct
52 Correct 20 ms 364 KB Output is correct
53 Correct 40 ms 15656 KB Output is correct
54 Correct 43 ms 15496 KB Output is correct
55 Correct 16 ms 436 KB Output is correct
56 Correct 44 ms 15436 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1577 ms 2048 KB Output is correct
3 Correct 1576 ms 2104 KB Output is correct
4 Correct 1600 ms 2136 KB Output is correct
5 Correct 1524 ms 2152 KB Output is correct
6 Correct 1525 ms 2128 KB Output is correct
7 Correct 1647 ms 2164 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 2 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 16 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1577 ms 2048 KB Output is correct
3 Correct 1576 ms 2104 KB Output is correct
4 Correct 1600 ms 2136 KB Output is correct
5 Correct 1524 ms 2152 KB Output is correct
6 Correct 1525 ms 2128 KB Output is correct
7 Correct 1647 ms 2164 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 2 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 16 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 468 KB Output is correct
20 Correct 1906 ms 7600 KB Output is correct
21 Correct 1805 ms 5204 KB Output is correct
22 Correct 1783 ms 5160 KB Output is correct
23 Correct 1579 ms 2420 KB Output is correct
24 Correct 1603 ms 2088 KB Output is correct
25 Correct 2054 ms 18432 KB Output is correct
26 Correct 2133 ms 18480 KB Output is correct
27 Correct 1 ms 468 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 2 ms 468 KB Output is correct
30 Correct 1 ms 596 KB Output is correct
31 Correct 2 ms 1236 KB Output is correct
32 Correct 1 ms 468 KB Output is correct
33 Correct 1 ms 852 KB Output is correct
34 Correct 1 ms 468 KB Output is correct
35 Correct 1 ms 724 KB Output is correct
36 Correct 4 ms 3668 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 468 KB Output is correct
39 Correct 1 ms 596 KB Output is correct
40 Correct 2 ms 1236 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 1 ms 852 KB Output is correct
43 Correct 1 ms 468 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 4 ms 3700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1577 ms 2048 KB Output is correct
3 Correct 1576 ms 2104 KB Output is correct
4 Correct 1600 ms 2136 KB Output is correct
5 Correct 1524 ms 2152 KB Output is correct
6 Correct 1525 ms 2128 KB Output is correct
7 Correct 1647 ms 2164 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 2 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 16 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 468 KB Output is correct
20 Correct 1906 ms 7600 KB Output is correct
21 Correct 1805 ms 5204 KB Output is correct
22 Correct 1783 ms 5160 KB Output is correct
23 Correct 1579 ms 2420 KB Output is correct
24 Correct 1603 ms 2088 KB Output is correct
25 Correct 2054 ms 18432 KB Output is correct
26 Correct 2133 ms 18480 KB Output is correct
27 Correct 1 ms 468 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 2 ms 468 KB Output is correct
30 Correct 1 ms 596 KB Output is correct
31 Correct 2 ms 1236 KB Output is correct
32 Correct 1 ms 468 KB Output is correct
33 Correct 1 ms 852 KB Output is correct
34 Correct 1 ms 468 KB Output is correct
35 Correct 1 ms 724 KB Output is correct
36 Correct 4 ms 3668 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 468 KB Output is correct
39 Correct 1 ms 596 KB Output is correct
40 Correct 2 ms 1236 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 1 ms 852 KB Output is correct
43 Correct 1 ms 468 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 4 ms 3700 KB Output is correct
46 Correct 1 ms 340 KB Output is correct
47 Correct 2131 ms 17356 KB Output is correct
48 Correct 2099 ms 14052 KB Output is correct
49 Correct 2075 ms 13984 KB Output is correct
50 Correct 1779 ms 2360 KB Output is correct
51 Correct 1760 ms 2084 KB Output is correct
52 Correct 2013 ms 18480 KB Output is correct
53 Correct 2056 ms 18700 KB Output is correct
54 Correct 1 ms 468 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 1 ms 596 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 1 ms 596 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1577 ms 2048 KB Output is correct
3 Correct 1576 ms 2104 KB Output is correct
4 Correct 1600 ms 2136 KB Output is correct
5 Correct 1524 ms 2152 KB Output is correct
6 Correct 1525 ms 2128 KB Output is correct
7 Correct 1647 ms 2164 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 2 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 16 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 468 KB Output is correct
20 Correct 1906 ms 7600 KB Output is correct
21 Correct 1805 ms 5204 KB Output is correct
22 Correct 1783 ms 5160 KB Output is correct
23 Correct 1579 ms 2420 KB Output is correct
24 Correct 1603 ms 2088 KB Output is correct
25 Correct 2054 ms 18432 KB Output is correct
26 Correct 2133 ms 18480 KB Output is correct
27 Correct 1 ms 468 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 2 ms 468 KB Output is correct
30 Correct 1 ms 596 KB Output is correct
31 Correct 2 ms 1236 KB Output is correct
32 Correct 1 ms 468 KB Output is correct
33 Correct 1 ms 852 KB Output is correct
34 Correct 1 ms 468 KB Output is correct
35 Correct 1 ms 724 KB Output is correct
36 Correct 4 ms 3668 KB Output is correct
37 Correct 1 ms 340 KB Output is correct
38 Correct 1 ms 468 KB Output is correct
39 Correct 1 ms 596 KB Output is correct
40 Correct 2 ms 1236 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 1 ms 852 KB Output is correct
43 Correct 1 ms 468 KB Output is correct
44 Correct 1 ms 724 KB Output is correct
45 Correct 4 ms 3700 KB Output is correct
46 Correct 1 ms 340 KB Output is correct
47 Correct 2131 ms 17356 KB Output is correct
48 Correct 2099 ms 14052 KB Output is correct
49 Correct 2075 ms 13984 KB Output is correct
50 Correct 1779 ms 2360 KB Output is correct
51 Correct 1760 ms 2084 KB Output is correct
52 Correct 2013 ms 18480 KB Output is correct
53 Correct 2056 ms 18700 KB Output is correct
54 Correct 1 ms 468 KB Output is correct
55 Correct 1 ms 340 KB Output is correct
56 Correct 1 ms 596 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 1 ms 596 KB Output is correct
59 Correct 2209 ms 18776 KB Output is correct
60 Correct 910 ms 17500 KB Output is correct
61 Correct 973 ms 17512 KB Output is correct
62 Correct 957 ms 17480 KB Output is correct
63 Correct 2117 ms 18268 KB Output is correct
64 Correct 2162 ms 18252 KB Output is correct
65 Correct 2331 ms 18360 KB Output is correct
66 Correct 1877 ms 2452 KB Output is correct
67 Correct 1690 ms 2176 KB Output is correct
68 Correct 2140 ms 18472 KB Output is correct
69 Correct 2190 ms 18780 KB Output is correct
70 Correct 1 ms 468 KB Output is correct
71 Correct 1 ms 340 KB Output is correct
72 Correct 1 ms 468 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 1 ms 596 KB Output is correct
75 Correct 43 ms 15356 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 1 ms 468 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 504 KB Output is correct
6 Correct 2 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 596 KB Output is correct
9 Correct 4 ms 3668 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 596 KB Output is correct
12 Correct 8 ms 3540 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 2 ms 340 KB Output is correct
17 Correct 2 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 2 ms 340 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 2 ms 468 KB Output is correct
25 Correct 1 ms 596 KB Output is correct
26 Correct 4 ms 1236 KB Output is correct
27 Correct 1 ms 596 KB Output is correct
28 Correct 2 ms 852 KB Output is correct
29 Correct 1 ms 468 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 4 ms 3540 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 1 ms 468 KB Output is correct
34 Correct 1 ms 596 KB Output is correct
35 Correct 2 ms 1236 KB Output is correct
36 Correct 1 ms 584 KB Output is correct
37 Correct 1 ms 852 KB Output is correct
38 Correct 1 ms 468 KB Output is correct
39 Correct 1 ms 724 KB Output is correct
40 Correct 4 ms 3668 KB Output is correct
41 Correct 1 ms 468 KB Output is correct
42 Correct 1 ms 340 KB Output is correct
43 Correct 2 ms 468 KB Output is correct
44 Correct 1 ms 340 KB Output is correct
45 Correct 1 ms 596 KB Output is correct
46 Correct 1 ms 468 KB Output is correct
47 Correct 1 ms 340 KB Output is correct
48 Correct 1 ms 596 KB Output is correct
49 Correct 1 ms 340 KB Output is correct
50 Correct 1 ms 596 KB Output is correct
51 Correct 18 ms 380 KB Output is correct
52 Correct 20 ms 364 KB Output is correct
53 Correct 40 ms 15656 KB Output is correct
54 Correct 43 ms 15496 KB Output is correct
55 Correct 16 ms 436 KB Output is correct
56 Correct 44 ms 15436 KB Output is correct
57 Correct 1 ms 340 KB Output is correct
58 Correct 1577 ms 2048 KB Output is correct
59 Correct 1576 ms 2104 KB Output is correct
60 Correct 1600 ms 2136 KB Output is correct
61 Correct 1524 ms 2152 KB Output is correct
62 Correct 1525 ms 2128 KB Output is correct
63 Correct 1647 ms 2164 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 2 ms 340 KB Output is correct
69 Correct 1 ms 340 KB Output is correct
70 Correct 1 ms 340 KB Output is correct
71 Correct 1 ms 340 KB Output is correct
72 Correct 2 ms 340 KB Output is correct
73 Correct 16 ms 340 KB Output is correct
74 Correct 1 ms 340 KB Output is correct
75 Correct 1 ms 468 KB Output is correct
76 Correct 1906 ms 7600 KB Output is correct
77 Correct 1805 ms 5204 KB Output is correct
78 Correct 1783 ms 5160 KB Output is correct
79 Correct 1579 ms 2420 KB Output is correct
80 Correct 1603 ms 2088 KB Output is correct
81 Correct 2054 ms 18432 KB Output is correct
82 Correct 2133 ms 18480 KB Output is correct
83 Correct 1 ms 468 KB Output is correct
84 Correct 1 ms 384 KB Output is correct
85 Correct 2 ms 468 KB Output is correct
86 Correct 1 ms 596 KB Output is correct
87 Correct 2 ms 1236 KB Output is correct
88 Correct 1 ms 468 KB Output is correct
89 Correct 1 ms 852 KB Output is correct
90 Correct 1 ms 468 KB Output is correct
91 Correct 1 ms 724 KB Output is correct
92 Correct 4 ms 3668 KB Output is correct
93 Correct 1 ms 340 KB Output is correct
94 Correct 1 ms 468 KB Output is correct
95 Correct 1 ms 596 KB Output is correct
96 Correct 2 ms 1236 KB Output is correct
97 Correct 1 ms 468 KB Output is correct
98 Correct 1 ms 852 KB Output is correct
99 Correct 1 ms 468 KB Output is correct
100 Correct 1 ms 724 KB Output is correct
101 Correct 4 ms 3700 KB Output is correct
102 Correct 1 ms 340 KB Output is correct
103 Correct 2131 ms 17356 KB Output is correct
104 Correct 2099 ms 14052 KB Output is correct
105 Correct 2075 ms 13984 KB Output is correct
106 Correct 1779 ms 2360 KB Output is correct
107 Correct 1760 ms 2084 KB Output is correct
108 Correct 2013 ms 18480 KB Output is correct
109 Correct 2056 ms 18700 KB Output is correct
110 Correct 1 ms 468 KB Output is correct
111 Correct 1 ms 340 KB Output is correct
112 Correct 1 ms 596 KB Output is correct
113 Correct 1 ms 340 KB Output is correct
114 Correct 1 ms 596 KB Output is correct
115 Correct 2209 ms 18776 KB Output is correct
116 Correct 910 ms 17500 KB Output is correct
117 Correct 973 ms 17512 KB Output is correct
118 Correct 957 ms 17480 KB Output is correct
119 Correct 2117 ms 18268 KB Output is correct
120 Correct 2162 ms 18252 KB Output is correct
121 Correct 2331 ms 18360 KB Output is correct
122 Correct 1877 ms 2452 KB Output is correct
123 Correct 1690 ms 2176 KB Output is correct
124 Correct 2140 ms 18472 KB Output is correct
125 Correct 2190 ms 18780 KB Output is correct
126 Correct 1 ms 468 KB Output is correct
127 Correct 1 ms 340 KB Output is correct
128 Correct 1 ms 468 KB Output is correct
129 Correct 1 ms 340 KB Output is correct
130 Correct 1 ms 596 KB Output is correct
131 Correct 43 ms 15356 KB Output is correct
132 Correct 2338 ms 18772 KB Output is correct
133 Correct 2550 ms 18628 KB Output is correct
134 Correct 2562 ms 18788 KB Output is correct
135 Correct 2607 ms 18696 KB Output is correct
136 Correct 2626 ms 18740 KB Output is correct
137 Correct 2403 ms 18608 KB Output is correct
138 Correct 2316 ms 18760 KB Output is correct
139 Correct 1860 ms 2352 KB Output is correct
140 Correct 1785 ms 2064 KB Output is correct
141 Correct 2128 ms 18524 KB Output is correct
142 Correct 2338 ms 18776 KB Output is correct