답안 #921263

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
921263 2024-02-03T15:48:27 Z denniskim Council (JOI23_council) C++17
78 / 100
4000 ms 248144 KB
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef __int128 lll;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pld;
#define MAX 9223372036854775807LL
#define MIN -9223372036854775807LL
#define INF 0x3f3f3f3f3f3f3f3f
#define fi first
#define se second
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cout << fixed; cout.precision(10);
#define sp << " "
#define en << "\n"
#define compress(v) sort(v.begin(), v.end()), v.erase(unique(v.begin(), v.end()), v.end())

ll n, m;
ll A[300010][21];
ll a[300010];
ll siz;
ll dp1[2000010];
ll dp2[2000010][21];
ll cou[21];
ll b[21];
ll pas[21][21];
ll two, one, zero;

int main(void)
{
	fastio
	
	cin >> n >> m;
	
	siz = (1LL << m) - 1;
	
	for(ll i = 1 ; i <= n ; i++)
	{
		for(ll j = 0 ; j < m ; j++)
		{
			cin >> A[i][j];
			
			a[i] += (1LL << j) * A[i][j];
			cou[j] += A[i][j];
		}
		
		a[i] ^= siz;
		dp1[a[i]]++;
	}
	
	for(ll i = 0 ; i < m ; i++)
	{
		for(ll j = siz ; j >= 0 ; j--)
		{
			if(j & (1LL << i))
				dp1[j ^ (1LL << i)] += dp1[j];
		}
	}
	
	for(ll i = 0 ; i <= siz ; i++)
		dp2[i][__builtin_popcount(i)] += dp1[i];
	
	for(ll i = 0 ; i <= m ; i++)
	{
		for(ll j = 0 ; j < m ; j++)
		{
			for(ll k = 0 ; k <= siz ; k++)
			{
				if(k & (1LL << j))
					dp2[k][i] += dp2[k ^ (1LL << j)][i];
			}
		}
	}
	
	pas[0][0] = 1;
	
	for(ll i = 1 ; i <= 20 ; i++)
	{
		pas[i][0] = pas[i][i] = 1;
		
		for(ll j = 1 ; j < i ; j++)
			pas[i][j] = pas[i - 1][j - 1] + pas[i - 1][j];
	}
	
	for(ll i = 0 ; i < m ; i++)
	{
		if(cou[i] >= n / 2 + 2)
			two |= (1LL << i);
		else if(cou[i] == n / 2 + 1)
			one |= (1LL << i);
		else if(cou[i] == n / 2)
			zero |= (1LL << i);
	}
	
	for(ll i = 1 ; i <= n ; i++)
	{
		ll ONE = two | (one & a[i]);
		ll ZERO = (one & (~a[i])) | (zero & a[i]);
	
		for(ll j = 0 ; j <= m ; j++)
			b[j] = dp2[ZERO][j];
		
		ll gap = (a[i] & ZERO);
		ll COU = __builtin_popcount(gap);
		
		for(ll j = 0 ; j <= COU ; j++)
			b[j] -= pas[COU][j];
		
		ll ans = 0;
		
		for(ll j = 0 ; j <= m ; j++)
		{
			if(b[j])
				ans = max(ans, j);
		}
		
		cout << ans + __builtin_popcount(ONE) en;
	}
	
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 3 ms 8796 KB Output is correct
3 Correct 1 ms 6492 KB Output is correct
4 Correct 1 ms 6492 KB Output is correct
5 Correct 3711 ms 185312 KB Output is correct
6 Correct 3726 ms 185580 KB Output is correct
7 Correct 3796 ms 185572 KB Output is correct
8 Correct 3867 ms 185568 KB Output is correct
9 Correct 3848 ms 187368 KB Output is correct
10 Correct 3724 ms 185568 KB Output is correct
11 Correct 3877 ms 187356 KB Output is correct
12 Correct 3979 ms 187472 KB Output is correct
13 Correct 2 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6608 KB Output is correct
16 Correct 1 ms 6488 KB Output is correct
17 Correct 3 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 6608 KB Output is correct
23 Correct 1 ms 6608 KB Output is correct
24 Correct 3 ms 6492 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 1 ms 6492 KB Output is correct
30 Correct 2 ms 6748 KB Output is correct
31 Correct 2 ms 6748 KB Output is correct
32 Correct 1 ms 6620 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 6488 KB Output is correct
36 Correct 2 ms 6488 KB Output is correct
37 Correct 1 ms 6492 KB Output is correct
38 Correct 1 ms 6488 KB Output is correct
39 Correct 2 ms 6744 KB Output is correct
40 Correct 2 ms 6744 KB Output is correct
41 Correct 8 ms 10844 KB Output is correct
42 Correct 9 ms 10840 KB Output is correct
43 Correct 9 ms 10840 KB Output is correct
44 Correct 10 ms 10844 KB Output is correct
45 Correct 11 ms 10840 KB Output is correct
46 Correct 208 ms 29276 KB Output is correct
47 Correct 192 ms 29272 KB Output is correct
48 Correct 187 ms 29276 KB Output is correct
49 Correct 211 ms 29276 KB Output is correct
50 Correct 210 ms 29348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 3 ms 8796 KB Output is correct
3 Correct 1 ms 6492 KB Output is correct
4 Correct 1 ms 6492 KB Output is correct
5 Correct 3711 ms 185312 KB Output is correct
6 Correct 3726 ms 185580 KB Output is correct
7 Correct 3796 ms 185572 KB Output is correct
8 Correct 3867 ms 185568 KB Output is correct
9 Correct 3848 ms 187368 KB Output is correct
10 Correct 3724 ms 185568 KB Output is correct
11 Correct 3877 ms 187356 KB Output is correct
12 Correct 3979 ms 187472 KB Output is correct
13 Correct 2 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6608 KB Output is correct
16 Correct 1 ms 6488 KB Output is correct
17 Correct 3 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 6608 KB Output is correct
23 Correct 1 ms 6608 KB Output is correct
24 Correct 3 ms 6492 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 1 ms 6492 KB Output is correct
30 Correct 2 ms 6748 KB Output is correct
31 Correct 2 ms 6748 KB Output is correct
32 Correct 1 ms 6620 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 6488 KB Output is correct
36 Correct 2 ms 6488 KB Output is correct
37 Correct 1 ms 6492 KB Output is correct
38 Correct 1 ms 6488 KB Output is correct
39 Correct 2 ms 6744 KB Output is correct
40 Correct 2 ms 6744 KB Output is correct
41 Correct 8 ms 10844 KB Output is correct
42 Correct 9 ms 10840 KB Output is correct
43 Correct 9 ms 10840 KB Output is correct
44 Correct 10 ms 10844 KB Output is correct
45 Correct 11 ms 10840 KB Output is correct
46 Correct 208 ms 29276 KB Output is correct
47 Correct 192 ms 29272 KB Output is correct
48 Correct 187 ms 29276 KB Output is correct
49 Correct 211 ms 29276 KB Output is correct
50 Correct 210 ms 29348 KB Output is correct
51 Correct 3907 ms 187740 KB Output is correct
52 Correct 3905 ms 189260 KB Output is correct
53 Correct 3865 ms 189524 KB Output is correct
54 Correct 3911 ms 189524 KB Output is correct
55 Correct 2 ms 8536 KB Output is correct
56 Correct 214 ms 31500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 48 ms 57276 KB Output is correct
3 Correct 51 ms 57428 KB Output is correct
4 Correct 39 ms 56716 KB Output is correct
5 Correct 51 ms 57424 KB Output is correct
6 Correct 40 ms 57180 KB Output is correct
7 Correct 57 ms 57456 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 2 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6488 KB Output is correct
14 Correct 2 ms 6492 KB Output is correct
15 Correct 1 ms 6744 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 8540 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 48 ms 57276 KB Output is correct
3 Correct 51 ms 57428 KB Output is correct
4 Correct 39 ms 56716 KB Output is correct
5 Correct 51 ms 57424 KB Output is correct
6 Correct 40 ms 57180 KB Output is correct
7 Correct 57 ms 57456 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 2 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6488 KB Output is correct
14 Correct 2 ms 6492 KB Output is correct
15 Correct 1 ms 6744 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 8540 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 151 ms 62292 KB Output is correct
21 Correct 145 ms 61680 KB Output is correct
22 Correct 147 ms 61680 KB Output is correct
23 Correct 150 ms 62484 KB Output is correct
24 Correct 140 ms 62136 KB Output is correct
25 Correct 150 ms 62344 KB Output is correct
26 Correct 163 ms 62284 KB Output is correct
27 Correct 1 ms 6748 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 1 ms 6492 KB Output is correct
30 Correct 1 ms 6492 KB Output is correct
31 Correct 1 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 6748 KB Output is correct
36 Correct 2 ms 6900 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 6488 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 6492 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 2 ms 6748 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 48 ms 57276 KB Output is correct
3 Correct 51 ms 57428 KB Output is correct
4 Correct 39 ms 56716 KB Output is correct
5 Correct 51 ms 57424 KB Output is correct
6 Correct 40 ms 57180 KB Output is correct
7 Correct 57 ms 57456 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 2 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6488 KB Output is correct
14 Correct 2 ms 6492 KB Output is correct
15 Correct 1 ms 6744 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 8540 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 151 ms 62292 KB Output is correct
21 Correct 145 ms 61680 KB Output is correct
22 Correct 147 ms 61680 KB Output is correct
23 Correct 150 ms 62484 KB Output is correct
24 Correct 140 ms 62136 KB Output is correct
25 Correct 150 ms 62344 KB Output is correct
26 Correct 163 ms 62284 KB Output is correct
27 Correct 1 ms 6748 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 1 ms 6492 KB Output is correct
30 Correct 1 ms 6492 KB Output is correct
31 Correct 1 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 6748 KB Output is correct
36 Correct 2 ms 6900 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 6488 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 6492 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 2 ms 6748 KB Output is correct
46 Correct 2 ms 8796 KB Output is correct
47 Correct 224 ms 68704 KB Output is correct
48 Correct 194 ms 66144 KB Output is correct
49 Correct 191 ms 66128 KB Output is correct
50 Correct 191 ms 69164 KB Output is correct
51 Correct 180 ms 68624 KB Output is correct
52 Correct 222 ms 68692 KB Output is correct
53 Correct 211 ms 68836 KB Output is correct
54 Correct 10 ms 10844 KB Output is correct
55 Correct 9 ms 10844 KB Output is correct
56 Correct 9 ms 10844 KB Output is correct
57 Correct 8 ms 10844 KB Output is correct
58 Correct 10 ms 10904 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 48 ms 57276 KB Output is correct
3 Correct 51 ms 57428 KB Output is correct
4 Correct 39 ms 56716 KB Output is correct
5 Correct 51 ms 57424 KB Output is correct
6 Correct 40 ms 57180 KB Output is correct
7 Correct 57 ms 57456 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 2 ms 6492 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6488 KB Output is correct
14 Correct 2 ms 6492 KB Output is correct
15 Correct 1 ms 6744 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 8540 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 6492 KB Output is correct
20 Correct 151 ms 62292 KB Output is correct
21 Correct 145 ms 61680 KB Output is correct
22 Correct 147 ms 61680 KB Output is correct
23 Correct 150 ms 62484 KB Output is correct
24 Correct 140 ms 62136 KB Output is correct
25 Correct 150 ms 62344 KB Output is correct
26 Correct 163 ms 62284 KB Output is correct
27 Correct 1 ms 6748 KB Output is correct
28 Correct 1 ms 6492 KB Output is correct
29 Correct 1 ms 6492 KB Output is correct
30 Correct 1 ms 6492 KB Output is correct
31 Correct 1 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 6748 KB Output is correct
36 Correct 2 ms 6900 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 6488 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 6492 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 2 ms 6748 KB Output is correct
46 Correct 2 ms 8796 KB Output is correct
47 Correct 224 ms 68704 KB Output is correct
48 Correct 194 ms 66144 KB Output is correct
49 Correct 191 ms 66128 KB Output is correct
50 Correct 191 ms 69164 KB Output is correct
51 Correct 180 ms 68624 KB Output is correct
52 Correct 222 ms 68692 KB Output is correct
53 Correct 211 ms 68836 KB Output is correct
54 Correct 10 ms 10844 KB Output is correct
55 Correct 9 ms 10844 KB Output is correct
56 Correct 9 ms 10844 KB Output is correct
57 Correct 8 ms 10844 KB Output is correct
58 Correct 10 ms 10904 KB Output is correct
59 Correct 259 ms 78284 KB Output is correct
60 Correct 292 ms 53828 KB Output is correct
61 Correct 311 ms 54204 KB Output is correct
62 Correct 333 ms 56400 KB Output is correct
63 Correct 284 ms 78684 KB Output is correct
64 Correct 346 ms 89036 KB Output is correct
65 Correct 469 ms 88924 KB Output is correct
66 Correct 426 ms 89200 KB Output is correct
67 Correct 456 ms 88936 KB Output is correct
68 Correct 450 ms 88844 KB Output is correct
69 Correct 527 ms 89168 KB Output is correct
70 Correct 158 ms 29348 KB Output is correct
71 Correct 228 ms 29276 KB Output is correct
72 Correct 244 ms 29348 KB Output is correct
73 Correct 240 ms 29272 KB Output is correct
74 Correct 234 ms 29276 KB Output is correct
75 Correct 248 ms 31500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 6492 KB Output is correct
2 Correct 3 ms 8796 KB Output is correct
3 Correct 1 ms 6492 KB Output is correct
4 Correct 1 ms 6492 KB Output is correct
5 Correct 3711 ms 185312 KB Output is correct
6 Correct 3726 ms 185580 KB Output is correct
7 Correct 3796 ms 185572 KB Output is correct
8 Correct 3867 ms 185568 KB Output is correct
9 Correct 3848 ms 187368 KB Output is correct
10 Correct 3724 ms 185568 KB Output is correct
11 Correct 3877 ms 187356 KB Output is correct
12 Correct 3979 ms 187472 KB Output is correct
13 Correct 2 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6608 KB Output is correct
16 Correct 1 ms 6488 KB Output is correct
17 Correct 3 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 6608 KB Output is correct
23 Correct 1 ms 6608 KB Output is correct
24 Correct 3 ms 6492 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 1 ms 6492 KB Output is correct
30 Correct 2 ms 6748 KB Output is correct
31 Correct 2 ms 6748 KB Output is correct
32 Correct 1 ms 6620 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 6488 KB Output is correct
36 Correct 2 ms 6488 KB Output is correct
37 Correct 1 ms 6492 KB Output is correct
38 Correct 1 ms 6488 KB Output is correct
39 Correct 2 ms 6744 KB Output is correct
40 Correct 2 ms 6744 KB Output is correct
41 Correct 8 ms 10844 KB Output is correct
42 Correct 9 ms 10840 KB Output is correct
43 Correct 9 ms 10840 KB Output is correct
44 Correct 10 ms 10844 KB Output is correct
45 Correct 11 ms 10840 KB Output is correct
46 Correct 208 ms 29276 KB Output is correct
47 Correct 192 ms 29272 KB Output is correct
48 Correct 187 ms 29276 KB Output is correct
49 Correct 211 ms 29276 KB Output is correct
50 Correct 210 ms 29348 KB Output is correct
51 Correct 3907 ms 187740 KB Output is correct
52 Correct 3905 ms 189260 KB Output is correct
53 Correct 3865 ms 189524 KB Output is correct
54 Correct 3911 ms 189524 KB Output is correct
55 Correct 2 ms 8536 KB Output is correct
56 Correct 214 ms 31500 KB Output is correct
57 Correct 1 ms 6492 KB Output is correct
58 Correct 48 ms 57276 KB Output is correct
59 Correct 51 ms 57428 KB Output is correct
60 Correct 39 ms 56716 KB Output is correct
61 Correct 51 ms 57424 KB Output is correct
62 Correct 40 ms 57180 KB Output is correct
63 Correct 57 ms 57456 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 2 ms 6492 KB Output is correct
68 Correct 1 ms 6492 KB Output is correct
69 Correct 1 ms 6488 KB Output is correct
70 Correct 2 ms 6492 KB Output is correct
71 Correct 1 ms 6744 KB Output is correct
72 Correct 1 ms 6492 KB Output is correct
73 Correct 2 ms 8540 KB Output is correct
74 Correct 1 ms 6492 KB Output is correct
75 Correct 1 ms 6492 KB Output is correct
76 Correct 151 ms 62292 KB Output is correct
77 Correct 145 ms 61680 KB Output is correct
78 Correct 147 ms 61680 KB Output is correct
79 Correct 150 ms 62484 KB Output is correct
80 Correct 140 ms 62136 KB Output is correct
81 Correct 150 ms 62344 KB Output is correct
82 Correct 163 ms 62284 KB Output is correct
83 Correct 1 ms 6748 KB Output is correct
84 Correct 1 ms 6492 KB Output is correct
85 Correct 1 ms 6492 KB Output is correct
86 Correct 1 ms 6492 KB Output is correct
87 Correct 1 ms 6492 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 1 ms 6748 KB Output is correct
92 Correct 2 ms 6900 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 6488 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 6492 KB Output is correct
100 Correct 1 ms 6744 KB Output is correct
101 Correct 2 ms 6748 KB Output is correct
102 Correct 2 ms 8796 KB Output is correct
103 Correct 224 ms 68704 KB Output is correct
104 Correct 194 ms 66144 KB Output is correct
105 Correct 191 ms 66128 KB Output is correct
106 Correct 191 ms 69164 KB Output is correct
107 Correct 180 ms 68624 KB Output is correct
108 Correct 222 ms 68692 KB Output is correct
109 Correct 211 ms 68836 KB Output is correct
110 Correct 10 ms 10844 KB Output is correct
111 Correct 9 ms 10844 KB Output is correct
112 Correct 9 ms 10844 KB Output is correct
113 Correct 8 ms 10844 KB Output is correct
114 Correct 10 ms 10904 KB Output is correct
115 Correct 259 ms 78284 KB Output is correct
116 Correct 292 ms 53828 KB Output is correct
117 Correct 311 ms 54204 KB Output is correct
118 Correct 333 ms 56400 KB Output is correct
119 Correct 284 ms 78684 KB Output is correct
120 Correct 346 ms 89036 KB Output is correct
121 Correct 469 ms 88924 KB Output is correct
122 Correct 426 ms 89200 KB Output is correct
123 Correct 456 ms 88936 KB Output is correct
124 Correct 450 ms 88844 KB Output is correct
125 Correct 527 ms 89168 KB Output is correct
126 Correct 158 ms 29348 KB Output is correct
127 Correct 228 ms 29276 KB Output is correct
128 Correct 244 ms 29348 KB Output is correct
129 Correct 240 ms 29272 KB Output is correct
130 Correct 234 ms 29276 KB Output is correct
131 Correct 248 ms 31500 KB Output is correct
132 Execution timed out 4083 ms 248144 KB Time limit exceeded
133 Halted 0 ms 0 KB -