Submission #931028

# Submission time Handle Problem Language Result Execution time Memory
931028 2024-02-21T06:00:52 Z KiaRez Council (JOI23_council) C++17
100 / 100
2313 ms 31824 KB
/*
    IN THE NAME OF GOD
*/
#include <bits/stdc++.h>

// #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
// #pragma GCC optimize("O3")
// #pragma GCC optimize("unroll-loops")

using namespace std;

typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef long double ld;

#define F                                      first
#define S                                      second
#define Mp                                     make_pair
#define pb                                     push_back
#define pf                                     push_front
#define size(x)                                ((ll)x.size())
#define all(x)                                 (x).begin(),(x).end()
#define kill(x)		                           cout << x << '\n', exit(0);
#define fuck(x)                                cout << "(" << #x << " , " << x << ")" << endl
#define endl                                   '\n'

const int N = 3e5+23, lg = 18;
ll Mod = 1e9+7; //998244353;

inline ll MOD(ll a, ll mod=Mod) {a%=mod; (a<0)&&(a+=mod); return a;}
inline ll poww(ll a, ll b, ll mod=Mod) {
    ll ans = 1;
    a=MOD(a, mod);
    while (b) {
        if (b & 1) ans = MOD(ans*a, mod);
        b >>= 1;
        a = MOD(a*a, mod);
    }
    return ans;
}

int n, m, cnt[N], a[N];
pii dp[(1<<20)+10], pd[(1<<20)+1];

inline int get(int m1, int m2) {
	return __builtin_popcount(m1&m2);
}

pii merge(int mask, pii x, pii y) {
	vector<pii> vec; 
	vec.pb({get(a[x.F],mask), -x.F});
	vec.pb({get(a[x.S],mask), -x.S});
	vec.pb({get(a[y.F],mask), -y.F});
	vec.pb({get(a[y.S],mask), -y.S});
	sort(all(vec));
	return Mp(-vec[0].S, -vec[1].S);
}

int main () {
	ios_base::sync_with_stdio(false), cin.tie(0);

	cin>>n>>m;
	fill(dp, dp+(1<<m), Mp(0,0));
	fill(pd, pd+(1<<m), Mp(0,0));
	a[0] = (1<<m)-1;
	for(int i=1; i<=n; i++) {
		for(int j=0; j<m; j++) {
			int bt; cin>>bt;
			if(bt==1) a[i] += (1<<j), cnt[j]++;
		}
		if(dp[a[i]].F == 0) dp[a[i]].F = i;
		else dp[a[i]].S = i;
	}

	for(int i=0; i<m; i++) {
		for(int mask=0; mask<(1<<m); mask++) {
			pd[mask] = merge(mask, dp[mask], dp[mask^(1<<i)]);
		}
		for(int mask=0; mask<(1<<m); mask++) {
			dp[mask] = pd[mask]; pd[mask] = Mp(0,0);
		}
	}

	for(int i=1; i<=n; i++) {
		for(int j=0; j<m; j++) if((a[i]>>j)%2==1) cnt[j] --;
		int ans = 0, boht=0;
		for(int j=0; j<m; j++) {
			if(cnt[j]>=n/2)	ans ++;
			if(cnt[j]==n/2) boht+=(1<<j);
		}
		if(dp[boht].F == i) {
			cout<<ans-get(boht, a[dp[boht].S])<<endl;
		} else {
			cout<<ans-get(boht, a[dp[boht].F])<<endl;
		}
		for(int j=0; j<m; j++) if((a[i]>>j)%2==1) cnt[j] ++;
	}

	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 5 ms 6492 KB Output is correct
3 Correct 1 ms 6488 KB Output is correct
4 Correct 1 ms 6488 KB Output is correct
5 Correct 1793 ms 19284 KB Output is correct
6 Correct 1660 ms 19100 KB Output is correct
7 Correct 1745 ms 19280 KB Output is correct
8 Correct 1797 ms 19088 KB Output is correct
9 Correct 1835 ms 19096 KB Output is correct
10 Correct 1735 ms 19080 KB Output is correct
11 Correct 1788 ms 19284 KB Output is correct
12 Correct 1852 ms 19088 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6492 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 1 ms 6492 KB Output is correct
21 Correct 1 ms 6492 KB Output is correct
22 Correct 2 ms 6488 KB Output is correct
23 Correct 1 ms 6492 KB Output is correct
24 Correct 1 ms 6340 KB Output is correct
25 Correct 1 ms 6492 KB Output is correct
26 Correct 1 ms 6492 KB Output is correct
27 Correct 1 ms 6492 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 2 ms 6492 KB Output is correct
30 Correct 3 ms 6492 KB Output is correct
31 Correct 3 ms 6492 KB Output is correct
32 Correct 1 ms 6492 KB Output is correct
33 Correct 1 ms 6492 KB Output is correct
34 Correct 1 ms 6492 KB Output is correct
35 Correct 1 ms 6492 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 1 ms 6488 KB Output is correct
38 Correct 1 ms 6616 KB Output is correct
39 Correct 2 ms 6492 KB Output is correct
40 Correct 2 ms 6492 KB Output is correct
41 Correct 21 ms 6748 KB Output is correct
42 Correct 19 ms 6488 KB Output is correct
43 Correct 21 ms 6748 KB Output is correct
44 Correct 21 ms 6748 KB Output is correct
45 Correct 21 ms 6748 KB Output is correct
46 Correct 188 ms 10840 KB Output is correct
47 Correct 184 ms 10876 KB Output is correct
48 Correct 189 ms 10876 KB Output is correct
49 Correct 188 ms 10844 KB Output is correct
50 Correct 192 ms 10844 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 5 ms 6492 KB Output is correct
3 Correct 1 ms 6488 KB Output is correct
4 Correct 1 ms 6488 KB Output is correct
5 Correct 1793 ms 19284 KB Output is correct
6 Correct 1660 ms 19100 KB Output is correct
7 Correct 1745 ms 19280 KB Output is correct
8 Correct 1797 ms 19088 KB Output is correct
9 Correct 1835 ms 19096 KB Output is correct
10 Correct 1735 ms 19080 KB Output is correct
11 Correct 1788 ms 19284 KB Output is correct
12 Correct 1852 ms 19088 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6492 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 1 ms 6492 KB Output is correct
21 Correct 1 ms 6492 KB Output is correct
22 Correct 2 ms 6488 KB Output is correct
23 Correct 1 ms 6492 KB Output is correct
24 Correct 1 ms 6340 KB Output is correct
25 Correct 1 ms 6492 KB Output is correct
26 Correct 1 ms 6492 KB Output is correct
27 Correct 1 ms 6492 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 2 ms 6492 KB Output is correct
30 Correct 3 ms 6492 KB Output is correct
31 Correct 3 ms 6492 KB Output is correct
32 Correct 1 ms 6492 KB Output is correct
33 Correct 1 ms 6492 KB Output is correct
34 Correct 1 ms 6492 KB Output is correct
35 Correct 1 ms 6492 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 1 ms 6488 KB Output is correct
38 Correct 1 ms 6616 KB Output is correct
39 Correct 2 ms 6492 KB Output is correct
40 Correct 2 ms 6492 KB Output is correct
41 Correct 21 ms 6748 KB Output is correct
42 Correct 19 ms 6488 KB Output is correct
43 Correct 21 ms 6748 KB Output is correct
44 Correct 21 ms 6748 KB Output is correct
45 Correct 21 ms 6748 KB Output is correct
46 Correct 188 ms 10840 KB Output is correct
47 Correct 184 ms 10876 KB Output is correct
48 Correct 189 ms 10876 KB Output is correct
49 Correct 188 ms 10844 KB Output is correct
50 Correct 192 ms 10844 KB Output is correct
51 Correct 1687 ms 19548 KB Output is correct
52 Correct 1743 ms 17152 KB Output is correct
53 Correct 1894 ms 19208 KB Output is correct
54 Correct 1887 ms 19200 KB Output is correct
55 Correct 1 ms 6492 KB Output is correct
56 Correct 212 ms 10844 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 45 ms 8272 KB Output is correct
3 Correct 50 ms 6228 KB Output is correct
4 Correct 35 ms 7772 KB Output is correct
5 Correct 54 ms 8284 KB Output is correct
6 Correct 35 ms 7716 KB Output is correct
7 Correct 50 ms 8172 KB Output is correct
8 Correct 1 ms 6492 KB Output is correct
9 Correct 1 ms 6492 KB Output is correct
10 Correct 1 ms 6492 KB Output is correct
11 Correct 1 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6616 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 45 ms 8272 KB Output is correct
3 Correct 50 ms 6228 KB Output is correct
4 Correct 35 ms 7772 KB Output is correct
5 Correct 54 ms 8284 KB Output is correct
6 Correct 35 ms 7716 KB Output is correct
7 Correct 50 ms 8172 KB Output is correct
8 Correct 1 ms 6492 KB Output is correct
9 Correct 1 ms 6492 KB Output is correct
10 Correct 1 ms 6492 KB Output is correct
11 Correct 1 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6616 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 181 ms 13000 KB Output is correct
21 Correct 161 ms 12352 KB Output is correct
22 Correct 161 ms 12616 KB Output is correct
23 Correct 141 ms 13380 KB Output is correct
24 Correct 143 ms 10836 KB Output is correct
25 Correct 187 ms 13136 KB Output is correct
26 Correct 191 ms 12872 KB Output is correct
27 Correct 2 ms 6492 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 2 ms 6492 KB Output is correct
30 Correct 1 ms 6488 KB Output is correct
31 Correct 1 ms 6488 KB Output is correct
32 Correct 1 ms 6492 KB Output is correct
33 Correct 1 ms 6492 KB Output is correct
34 Correct 1 ms 6492 KB Output is correct
35 Correct 2 ms 6748 KB Output is correct
36 Correct 2 ms 6492 KB Output is correct
37 Correct 1 ms 6492 KB Output is correct
38 Correct 1 ms 6492 KB Output is correct
39 Correct 1 ms 6492 KB Output is correct
40 Correct 1 ms 6492 KB Output is correct
41 Correct 1 ms 6492 KB Output is correct
42 Correct 1 ms 6492 KB Output is correct
43 Correct 2 ms 6608 KB Output is correct
44 Correct 2 ms 6492 KB Output is correct
45 Correct 2 ms 6488 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 45 ms 8272 KB Output is correct
3 Correct 50 ms 6228 KB Output is correct
4 Correct 35 ms 7772 KB Output is correct
5 Correct 54 ms 8284 KB Output is correct
6 Correct 35 ms 7716 KB Output is correct
7 Correct 50 ms 8172 KB Output is correct
8 Correct 1 ms 6492 KB Output is correct
9 Correct 1 ms 6492 KB Output is correct
10 Correct 1 ms 6492 KB Output is correct
11 Correct 1 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6616 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 181 ms 13000 KB Output is correct
21 Correct 161 ms 12352 KB Output is correct
22 Correct 161 ms 12616 KB Output is correct
23 Correct 141 ms 13380 KB Output is correct
24 Correct 143 ms 10836 KB Output is correct
25 Correct 187 ms 13136 KB Output is correct
26 Correct 191 ms 12872 KB Output is correct
27 Correct 2 ms 6492 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 2 ms 6492 KB Output is correct
30 Correct 1 ms 6488 KB Output is correct
31 Correct 1 ms 6488 KB Output is correct
32 Correct 1 ms 6492 KB Output is correct
33 Correct 1 ms 6492 KB Output is correct
34 Correct 1 ms 6492 KB Output is correct
35 Correct 2 ms 6748 KB Output is correct
36 Correct 2 ms 6492 KB Output is correct
37 Correct 1 ms 6492 KB Output is correct
38 Correct 1 ms 6492 KB Output is correct
39 Correct 1 ms 6492 KB Output is correct
40 Correct 1 ms 6492 KB Output is correct
41 Correct 1 ms 6492 KB Output is correct
42 Correct 1 ms 6492 KB Output is correct
43 Correct 2 ms 6608 KB Output is correct
44 Correct 2 ms 6492 KB Output is correct
45 Correct 2 ms 6488 KB Output is correct
46 Correct 6 ms 6492 KB Output is correct
47 Correct 277 ms 15556 KB Output is correct
48 Correct 251 ms 14844 KB Output is correct
49 Correct 249 ms 14676 KB Output is correct
50 Correct 210 ms 15804 KB Output is correct
51 Correct 205 ms 13396 KB Output is correct
52 Correct 271 ms 15444 KB Output is correct
53 Correct 273 ms 15676 KB Output is correct
54 Correct 21 ms 6488 KB Output is correct
55 Correct 21 ms 6744 KB Output is correct
56 Correct 21 ms 6488 KB Output is correct
57 Correct 20 ms 6492 KB Output is correct
58 Correct 22 ms 6492 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6488 KB Output is correct
2 Correct 45 ms 8272 KB Output is correct
3 Correct 50 ms 6228 KB Output is correct
4 Correct 35 ms 7772 KB Output is correct
5 Correct 54 ms 8284 KB Output is correct
6 Correct 35 ms 7716 KB Output is correct
7 Correct 50 ms 8172 KB Output is correct
8 Correct 1 ms 6492 KB Output is correct
9 Correct 1 ms 6492 KB Output is correct
10 Correct 1 ms 6492 KB Output is correct
11 Correct 1 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6616 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 181 ms 13000 KB Output is correct
21 Correct 161 ms 12352 KB Output is correct
22 Correct 161 ms 12616 KB Output is correct
23 Correct 141 ms 13380 KB Output is correct
24 Correct 143 ms 10836 KB Output is correct
25 Correct 187 ms 13136 KB Output is correct
26 Correct 191 ms 12872 KB Output is correct
27 Correct 2 ms 6492 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 2 ms 6492 KB Output is correct
30 Correct 1 ms 6488 KB Output is correct
31 Correct 1 ms 6488 KB Output is correct
32 Correct 1 ms 6492 KB Output is correct
33 Correct 1 ms 6492 KB Output is correct
34 Correct 1 ms 6492 KB Output is correct
35 Correct 2 ms 6748 KB Output is correct
36 Correct 2 ms 6492 KB Output is correct
37 Correct 1 ms 6492 KB Output is correct
38 Correct 1 ms 6492 KB Output is correct
39 Correct 1 ms 6492 KB Output is correct
40 Correct 1 ms 6492 KB Output is correct
41 Correct 1 ms 6492 KB Output is correct
42 Correct 1 ms 6492 KB Output is correct
43 Correct 2 ms 6608 KB Output is correct
44 Correct 2 ms 6492 KB Output is correct
45 Correct 2 ms 6488 KB Output is correct
46 Correct 6 ms 6492 KB Output is correct
47 Correct 277 ms 15556 KB Output is correct
48 Correct 251 ms 14844 KB Output is correct
49 Correct 249 ms 14676 KB Output is correct
50 Correct 210 ms 15804 KB Output is correct
51 Correct 205 ms 13396 KB Output is correct
52 Correct 271 ms 15444 KB Output is correct
53 Correct 273 ms 15676 KB Output is correct
54 Correct 21 ms 6488 KB Output is correct
55 Correct 21 ms 6744 KB Output is correct
56 Correct 21 ms 6488 KB Output is correct
57 Correct 20 ms 6492 KB Output is correct
58 Correct 22 ms 6492 KB Output is correct
59 Correct 365 ms 21104 KB Output is correct
60 Correct 339 ms 15060 KB Output is correct
61 Correct 325 ms 15224 KB Output is correct
62 Correct 337 ms 15600 KB Output is correct
63 Correct 388 ms 20820 KB Output is correct
64 Correct 506 ms 21328 KB Output is correct
65 Correct 511 ms 21488 KB Output is correct
66 Correct 412 ms 21628 KB Output is correct
67 Correct 421 ms 19284 KB Output is correct
68 Correct 508 ms 21232 KB Output is correct
69 Correct 509 ms 21752 KB Output is correct
70 Correct 189 ms 10880 KB Output is correct
71 Correct 207 ms 10840 KB Output is correct
72 Correct 186 ms 10840 KB Output is correct
73 Correct 180 ms 10844 KB Output is correct
74 Correct 188 ms 10872 KB Output is correct
75 Correct 201 ms 10972 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 5 ms 6492 KB Output is correct
3 Correct 1 ms 6488 KB Output is correct
4 Correct 1 ms 6488 KB Output is correct
5 Correct 1793 ms 19284 KB Output is correct
6 Correct 1660 ms 19100 KB Output is correct
7 Correct 1745 ms 19280 KB Output is correct
8 Correct 1797 ms 19088 KB Output is correct
9 Correct 1835 ms 19096 KB Output is correct
10 Correct 1735 ms 19080 KB Output is correct
11 Correct 1788 ms 19284 KB Output is correct
12 Correct 1852 ms 19088 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 1 ms 6492 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 1 ms 6492 KB Output is correct
21 Correct 1 ms 6492 KB Output is correct
22 Correct 2 ms 6488 KB Output is correct
23 Correct 1 ms 6492 KB Output is correct
24 Correct 1 ms 6340 KB Output is correct
25 Correct 1 ms 6492 KB Output is correct
26 Correct 1 ms 6492 KB Output is correct
27 Correct 1 ms 6492 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 2 ms 6492 KB Output is correct
30 Correct 3 ms 6492 KB Output is correct
31 Correct 3 ms 6492 KB Output is correct
32 Correct 1 ms 6492 KB Output is correct
33 Correct 1 ms 6492 KB Output is correct
34 Correct 1 ms 6492 KB Output is correct
35 Correct 1 ms 6492 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 1 ms 6488 KB Output is correct
38 Correct 1 ms 6616 KB Output is correct
39 Correct 2 ms 6492 KB Output is correct
40 Correct 2 ms 6492 KB Output is correct
41 Correct 21 ms 6748 KB Output is correct
42 Correct 19 ms 6488 KB Output is correct
43 Correct 21 ms 6748 KB Output is correct
44 Correct 21 ms 6748 KB Output is correct
45 Correct 21 ms 6748 KB Output is correct
46 Correct 188 ms 10840 KB Output is correct
47 Correct 184 ms 10876 KB Output is correct
48 Correct 189 ms 10876 KB Output is correct
49 Correct 188 ms 10844 KB Output is correct
50 Correct 192 ms 10844 KB Output is correct
51 Correct 1687 ms 19548 KB Output is correct
52 Correct 1743 ms 17152 KB Output is correct
53 Correct 1894 ms 19208 KB Output is correct
54 Correct 1887 ms 19200 KB Output is correct
55 Correct 1 ms 6492 KB Output is correct
56 Correct 212 ms 10844 KB Output is correct
57 Correct 1 ms 6488 KB Output is correct
58 Correct 45 ms 8272 KB Output is correct
59 Correct 50 ms 6228 KB Output is correct
60 Correct 35 ms 7772 KB Output is correct
61 Correct 54 ms 8284 KB Output is correct
62 Correct 35 ms 7716 KB Output is correct
63 Correct 50 ms 8172 KB Output is correct
64 Correct 1 ms 6492 KB Output is correct
65 Correct 1 ms 6492 KB Output is correct
66 Correct 1 ms 6492 KB Output is correct
67 Correct 1 ms 6492 KB Output is correct
68 Correct 1 ms 6492 KB Output is correct
69 Correct 1 ms 6492 KB Output is correct
70 Correct 1 ms 6492 KB Output is correct
71 Correct 1 ms 6492 KB Output is correct
72 Correct 1 ms 6492 KB Output is correct
73 Correct 1 ms 6616 KB Output is correct
74 Correct 1 ms 6492 KB Output is correct
75 Correct 1 ms 6492 KB Output is correct
76 Correct 181 ms 13000 KB Output is correct
77 Correct 161 ms 12352 KB Output is correct
78 Correct 161 ms 12616 KB Output is correct
79 Correct 141 ms 13380 KB Output is correct
80 Correct 143 ms 10836 KB Output is correct
81 Correct 187 ms 13136 KB Output is correct
82 Correct 191 ms 12872 KB Output is correct
83 Correct 2 ms 6492 KB Output is correct
84 Correct 1 ms 6492 KB Output is correct
85 Correct 2 ms 6492 KB Output is correct
86 Correct 1 ms 6488 KB Output is correct
87 Correct 1 ms 6488 KB Output is correct
88 Correct 1 ms 6492 KB Output is correct
89 Correct 1 ms 6492 KB Output is correct
90 Correct 1 ms 6492 KB Output is correct
91 Correct 2 ms 6748 KB Output is correct
92 Correct 2 ms 6492 KB Output is correct
93 Correct 1 ms 6492 KB Output is correct
94 Correct 1 ms 6492 KB Output is correct
95 Correct 1 ms 6492 KB Output is correct
96 Correct 1 ms 6492 KB Output is correct
97 Correct 1 ms 6492 KB Output is correct
98 Correct 1 ms 6492 KB Output is correct
99 Correct 2 ms 6608 KB Output is correct
100 Correct 2 ms 6492 KB Output is correct
101 Correct 2 ms 6488 KB Output is correct
102 Correct 6 ms 6492 KB Output is correct
103 Correct 277 ms 15556 KB Output is correct
104 Correct 251 ms 14844 KB Output is correct
105 Correct 249 ms 14676 KB Output is correct
106 Correct 210 ms 15804 KB Output is correct
107 Correct 205 ms 13396 KB Output is correct
108 Correct 271 ms 15444 KB Output is correct
109 Correct 273 ms 15676 KB Output is correct
110 Correct 21 ms 6488 KB Output is correct
111 Correct 21 ms 6744 KB Output is correct
112 Correct 21 ms 6488 KB Output is correct
113 Correct 20 ms 6492 KB Output is correct
114 Correct 22 ms 6492 KB Output is correct
115 Correct 365 ms 21104 KB Output is correct
116 Correct 339 ms 15060 KB Output is correct
117 Correct 325 ms 15224 KB Output is correct
118 Correct 337 ms 15600 KB Output is correct
119 Correct 388 ms 20820 KB Output is correct
120 Correct 506 ms 21328 KB Output is correct
121 Correct 511 ms 21488 KB Output is correct
122 Correct 412 ms 21628 KB Output is correct
123 Correct 421 ms 19284 KB Output is correct
124 Correct 508 ms 21232 KB Output is correct
125 Correct 509 ms 21752 KB Output is correct
126 Correct 189 ms 10880 KB Output is correct
127 Correct 207 ms 10840 KB Output is correct
128 Correct 186 ms 10840 KB Output is correct
129 Correct 180 ms 10844 KB Output is correct
130 Correct 188 ms 10872 KB Output is correct
131 Correct 201 ms 10972 KB Output is correct
132 Correct 2253 ms 31628 KB Output is correct
133 Correct 2256 ms 31348 KB Output is correct
134 Correct 2223 ms 31824 KB Output is correct
135 Correct 2273 ms 31760 KB Output is correct
136 Correct 2311 ms 31576 KB Output is correct
137 Correct 1258 ms 26916 KB Output is correct
138 Correct 1254 ms 27168 KB Output is correct
139 Correct 1992 ms 31824 KB Output is correct
140 Correct 2012 ms 29520 KB Output is correct
141 Correct 2313 ms 31340 KB Output is correct
142 Correct 2304 ms 31604 KB Output is correct