Submission #796062

# Submission time Handle Problem Language Result Execution time Memory
796062 2023-07-28T05:39:39 Z 박영우(#10072) Council (JOI23_council) C++17
100 / 100
3311 ms 13536 KB
#include <bits/stdc++.h>
#include <cassert>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
#define MAX 301010
#define MAXS 20
#define INF 1000000000000000001
#define bb ' '
#define ln '\n'
#define Ln '\n'
#ifdef _MSC_VER
#  include <intrin.h>
#  define __builtin_popcount __popcnt
#endif
int A[MAX];
short popc[1 << MAXS];
short dp[1 << MAXS];
short ans[MAX];
int cmask[MAX];
int sum[MAXS];
int qv[(1 << MAXS) + 100];
inline void add(int x) {
	if (dp[x] == popc[x]) return;
	dp[x] = popc[x];
	int cnt = 1;
	int qind = 0;
	qv[qind] = x;
	int t, v;
	while (qind < cnt) {
		t = v = qv[qind];
		qind++;
		while (v) {
			x = (v & -v);
			if (dp[x ^ t] != popc[x ^ t]) {
				dp[x ^ t] = popc[x ^ t];
				qv[cnt++] = x ^ t;
			}
			v ^= x;
		}
	}
}
int num[MAX];
int pl[MAX];
signed main() {
	ios::sync_with_stdio(false), cin.tie(0);
	int N, M;
	cin >> N >> M;
	int l = N / 2;
	int i, j;
	for (i = 1; i <= N; i++) {
		int a;
		for (j = 0; j < M; j++) cin >> a, A[i] |= (a << j), sum[j] += a;
	}
	int allsum = 0;
	for (i = 0; i < M; i++) {
		if (sum[i] >= l + 2) allsum++, num[i] = 3;
		if (sum[i] == l + 1) num[i] = 2;
		if (sum[i] == l) num[i] = 1;
	}
	for (i = 0; i < (1 << MAXS); i++) popc[i] = __builtin_popcount(i);
	int K = 1 << M;
	K--;
	for (i = 1; i <= N; i++) {
		for (j = 0; j < M; j++) {
			if (A[i] >> j & 1) { if (num[j] == 2) cmask[i] |= (1 << j); }
			else {
				if (num[j] == 1) cmask[i] |= (1 << j);
				if (num[j] == 2) pl[i]++;
			}
		}
	}
	int k;
	for (k = 0; k < MAXS; k++) {
		if (!(N >> k)) break;
		memset(dp, 0, sizeof(dp));
		for (i = 1; i <= N; i++) if (i >> k & 1) add(K ^ A[i]);
		for (j = 0; j < M; j++) for (i = 0; i <= K; i++) dp[i | (1 << j)] = max(dp[i], dp[i | (1 << j)]);
		for (i = 1; i <= N; i++) if (!(i >> k & 1)) ans[i] = max(ans[i], dp[cmask[i]]);
		memset(dp, 0, sizeof(dp));
		for (i = 1; i <= N; i++) if (!(i >> k & 1)) add(K ^ A[i]);
		for (j = 0; j < M; j++) for (i = 0; i <= K; i++) dp[i | (1 << j)] = max(dp[i], dp[i | (1 << j)]);
		for (i = 1; i <= N; i++) if (i >> k & 1) ans[i] = max(ans[i], dp[cmask[i]]);
	}
	for (i = 1; i <= N; i++) cout << ans[i] + allsum + pl[i] << ln;
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 3 ms 4464 KB Output is correct
3 Correct 3 ms 4436 KB Output is correct
4 Correct 2 ms 4436 KB Output is correct
5 Correct 478 ms 6492 KB Output is correct
6 Correct 341 ms 4560 KB Output is correct
7 Correct 117 ms 4584 KB Output is correct
8 Correct 187 ms 4468 KB Output is correct
9 Correct 496 ms 4604 KB Output is correct
10 Correct 115 ms 4472 KB Output is correct
11 Correct 188 ms 4468 KB Output is correct
12 Correct 482 ms 4700 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 3 ms 4436 KB Output is correct
18 Correct 3 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 2 ms 4436 KB Output is correct
21 Correct 3 ms 4436 KB Output is correct
22 Correct 3 ms 4436 KB Output is correct
23 Correct 2 ms 4436 KB Output is correct
24 Correct 2 ms 4436 KB Output is correct
25 Correct 3 ms 4436 KB Output is correct
26 Correct 3 ms 4436 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 3 ms 4436 KB Output is correct
29 Correct 3 ms 4436 KB Output is correct
30 Correct 3 ms 4456 KB Output is correct
31 Correct 3 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 3 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 3 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 3 ms 4436 KB Output is correct
40 Correct 3 ms 4436 KB Output is correct
41 Correct 5 ms 4436 KB Output is correct
42 Correct 3 ms 4436 KB Output is correct
43 Correct 5 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 5 ms 4436 KB Output is correct
46 Correct 37 ms 4580 KB Output is correct
47 Correct 14 ms 4456 KB Output is correct
48 Correct 23 ms 4436 KB Output is correct
49 Correct 17 ms 4436 KB Output is correct
50 Correct 25 ms 4436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 3 ms 4464 KB Output is correct
3 Correct 3 ms 4436 KB Output is correct
4 Correct 2 ms 4436 KB Output is correct
5 Correct 478 ms 6492 KB Output is correct
6 Correct 341 ms 4560 KB Output is correct
7 Correct 117 ms 4584 KB Output is correct
8 Correct 187 ms 4468 KB Output is correct
9 Correct 496 ms 4604 KB Output is correct
10 Correct 115 ms 4472 KB Output is correct
11 Correct 188 ms 4468 KB Output is correct
12 Correct 482 ms 4700 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 3 ms 4436 KB Output is correct
18 Correct 3 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 2 ms 4436 KB Output is correct
21 Correct 3 ms 4436 KB Output is correct
22 Correct 3 ms 4436 KB Output is correct
23 Correct 2 ms 4436 KB Output is correct
24 Correct 2 ms 4436 KB Output is correct
25 Correct 3 ms 4436 KB Output is correct
26 Correct 3 ms 4436 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 3 ms 4436 KB Output is correct
29 Correct 3 ms 4436 KB Output is correct
30 Correct 3 ms 4456 KB Output is correct
31 Correct 3 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 3 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 3 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 3 ms 4436 KB Output is correct
40 Correct 3 ms 4436 KB Output is correct
41 Correct 5 ms 4436 KB Output is correct
42 Correct 3 ms 4436 KB Output is correct
43 Correct 5 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 5 ms 4436 KB Output is correct
46 Correct 37 ms 4580 KB Output is correct
47 Correct 14 ms 4456 KB Output is correct
48 Correct 23 ms 4436 KB Output is correct
49 Correct 17 ms 4436 KB Output is correct
50 Correct 25 ms 4436 KB Output is correct
51 Correct 441 ms 4448 KB Output is correct
52 Correct 1826 ms 8556 KB Output is correct
53 Correct 1337 ms 6100 KB Output is correct
54 Correct 1170 ms 5336 KB Output is correct
55 Correct 4 ms 4436 KB Output is correct
56 Correct 106 ms 4528 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 71 ms 6840 KB Output is correct
3 Correct 64 ms 6712 KB Output is correct
4 Correct 56 ms 6812 KB Output is correct
5 Correct 69 ms 6812 KB Output is correct
6 Correct 57 ms 7896 KB Output is correct
7 Correct 72 ms 9052 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 3 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 4 ms 4436 KB Output is correct
17 Correct 4 ms 4508 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 71 ms 6840 KB Output is correct
3 Correct 64 ms 6712 KB Output is correct
4 Correct 56 ms 6812 KB Output is correct
5 Correct 69 ms 6812 KB Output is correct
6 Correct 57 ms 7896 KB Output is correct
7 Correct 72 ms 9052 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 3 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 4 ms 4436 KB Output is correct
17 Correct 4 ms 4508 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 3 ms 4436 KB Output is correct
20 Correct 185 ms 7948 KB Output is correct
21 Correct 168 ms 9112 KB Output is correct
22 Correct 164 ms 9020 KB Output is correct
23 Correct 156 ms 7044 KB Output is correct
24 Correct 167 ms 6908 KB Output is correct
25 Correct 180 ms 6712 KB Output is correct
26 Correct 180 ms 9080 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 3 ms 4440 KB Output is correct
30 Correct 3 ms 4436 KB Output is correct
31 Correct 3 ms 4560 KB Output is correct
32 Correct 3 ms 4436 KB Output is correct
33 Correct 3 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 3 ms 4436 KB Output is correct
36 Correct 3 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 4 ms 4436 KB Output is correct
39 Correct 3 ms 4436 KB Output is correct
40 Correct 3 ms 4436 KB Output is correct
41 Correct 3 ms 4440 KB Output is correct
42 Correct 3 ms 4436 KB Output is correct
43 Correct 3 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 71 ms 6840 KB Output is correct
3 Correct 64 ms 6712 KB Output is correct
4 Correct 56 ms 6812 KB Output is correct
5 Correct 69 ms 6812 KB Output is correct
6 Correct 57 ms 7896 KB Output is correct
7 Correct 72 ms 9052 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 3 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 4 ms 4436 KB Output is correct
17 Correct 4 ms 4508 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 3 ms 4436 KB Output is correct
20 Correct 185 ms 7948 KB Output is correct
21 Correct 168 ms 9112 KB Output is correct
22 Correct 164 ms 9020 KB Output is correct
23 Correct 156 ms 7044 KB Output is correct
24 Correct 167 ms 6908 KB Output is correct
25 Correct 180 ms 6712 KB Output is correct
26 Correct 180 ms 9080 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 3 ms 4440 KB Output is correct
30 Correct 3 ms 4436 KB Output is correct
31 Correct 3 ms 4560 KB Output is correct
32 Correct 3 ms 4436 KB Output is correct
33 Correct 3 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 3 ms 4436 KB Output is correct
36 Correct 3 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 4 ms 4436 KB Output is correct
39 Correct 3 ms 4436 KB Output is correct
40 Correct 3 ms 4436 KB Output is correct
41 Correct 3 ms 4440 KB Output is correct
42 Correct 3 ms 4436 KB Output is correct
43 Correct 3 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 2 ms 4436 KB Output is correct
47 Correct 260 ms 7908 KB Output is correct
48 Correct 227 ms 9144 KB Output is correct
49 Correct 231 ms 9124 KB Output is correct
50 Correct 214 ms 7128 KB Output is correct
51 Correct 210 ms 6748 KB Output is correct
52 Correct 254 ms 6988 KB Output is correct
53 Correct 254 ms 9420 KB Output is correct
54 Correct 5 ms 4436 KB Output is correct
55 Correct 4 ms 4464 KB Output is correct
56 Correct 5 ms 4436 KB Output is correct
57 Correct 4 ms 4436 KB Output is correct
58 Correct 5 ms 4472 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 71 ms 6840 KB Output is correct
3 Correct 64 ms 6712 KB Output is correct
4 Correct 56 ms 6812 KB Output is correct
5 Correct 69 ms 6812 KB Output is correct
6 Correct 57 ms 7896 KB Output is correct
7 Correct 72 ms 9052 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 3 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 4 ms 4436 KB Output is correct
17 Correct 4 ms 4508 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 3 ms 4436 KB Output is correct
20 Correct 185 ms 7948 KB Output is correct
21 Correct 168 ms 9112 KB Output is correct
22 Correct 164 ms 9020 KB Output is correct
23 Correct 156 ms 7044 KB Output is correct
24 Correct 167 ms 6908 KB Output is correct
25 Correct 180 ms 6712 KB Output is correct
26 Correct 180 ms 9080 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 3 ms 4440 KB Output is correct
30 Correct 3 ms 4436 KB Output is correct
31 Correct 3 ms 4560 KB Output is correct
32 Correct 3 ms 4436 KB Output is correct
33 Correct 3 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 3 ms 4436 KB Output is correct
36 Correct 3 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 4 ms 4436 KB Output is correct
39 Correct 3 ms 4436 KB Output is correct
40 Correct 3 ms 4436 KB Output is correct
41 Correct 3 ms 4440 KB Output is correct
42 Correct 3 ms 4436 KB Output is correct
43 Correct 3 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 2 ms 4436 KB Output is correct
47 Correct 260 ms 7908 KB Output is correct
48 Correct 227 ms 9144 KB Output is correct
49 Correct 231 ms 9124 KB Output is correct
50 Correct 214 ms 7128 KB Output is correct
51 Correct 210 ms 6748 KB Output is correct
52 Correct 254 ms 6988 KB Output is correct
53 Correct 254 ms 9420 KB Output is correct
54 Correct 5 ms 4436 KB Output is correct
55 Correct 4 ms 4464 KB Output is correct
56 Correct 5 ms 4436 KB Output is correct
57 Correct 4 ms 4436 KB Output is correct
58 Correct 5 ms 4472 KB Output is correct
59 Correct 332 ms 7096 KB Output is correct
60 Correct 263 ms 6348 KB Output is correct
61 Correct 286 ms 6468 KB Output is correct
62 Correct 280 ms 6548 KB Output is correct
63 Correct 331 ms 7980 KB Output is correct
64 Correct 431 ms 9192 KB Output is correct
65 Correct 442 ms 9264 KB Output is correct
66 Correct 332 ms 6980 KB Output is correct
67 Correct 446 ms 7220 KB Output is correct
68 Correct 466 ms 6800 KB Output is correct
69 Correct 461 ms 9564 KB Output is correct
70 Correct 37 ms 4564 KB Output is correct
71 Correct 21 ms 4436 KB Output is correct
72 Correct 23 ms 4436 KB Output is correct
73 Correct 14 ms 4436 KB Output is correct
74 Correct 28 ms 4496 KB Output is correct
75 Correct 109 ms 4532 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 3 ms 4464 KB Output is correct
3 Correct 3 ms 4436 KB Output is correct
4 Correct 2 ms 4436 KB Output is correct
5 Correct 478 ms 6492 KB Output is correct
6 Correct 341 ms 4560 KB Output is correct
7 Correct 117 ms 4584 KB Output is correct
8 Correct 187 ms 4468 KB Output is correct
9 Correct 496 ms 4604 KB Output is correct
10 Correct 115 ms 4472 KB Output is correct
11 Correct 188 ms 4468 KB Output is correct
12 Correct 482 ms 4700 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 3 ms 4436 KB Output is correct
18 Correct 3 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 2 ms 4436 KB Output is correct
21 Correct 3 ms 4436 KB Output is correct
22 Correct 3 ms 4436 KB Output is correct
23 Correct 2 ms 4436 KB Output is correct
24 Correct 2 ms 4436 KB Output is correct
25 Correct 3 ms 4436 KB Output is correct
26 Correct 3 ms 4436 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 3 ms 4436 KB Output is correct
29 Correct 3 ms 4436 KB Output is correct
30 Correct 3 ms 4456 KB Output is correct
31 Correct 3 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 3 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 3 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 3 ms 4436 KB Output is correct
40 Correct 3 ms 4436 KB Output is correct
41 Correct 5 ms 4436 KB Output is correct
42 Correct 3 ms 4436 KB Output is correct
43 Correct 5 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 5 ms 4436 KB Output is correct
46 Correct 37 ms 4580 KB Output is correct
47 Correct 14 ms 4456 KB Output is correct
48 Correct 23 ms 4436 KB Output is correct
49 Correct 17 ms 4436 KB Output is correct
50 Correct 25 ms 4436 KB Output is correct
51 Correct 441 ms 4448 KB Output is correct
52 Correct 1826 ms 8556 KB Output is correct
53 Correct 1337 ms 6100 KB Output is correct
54 Correct 1170 ms 5336 KB Output is correct
55 Correct 4 ms 4436 KB Output is correct
56 Correct 106 ms 4528 KB Output is correct
57 Correct 2 ms 4436 KB Output is correct
58 Correct 71 ms 6840 KB Output is correct
59 Correct 64 ms 6712 KB Output is correct
60 Correct 56 ms 6812 KB Output is correct
61 Correct 69 ms 6812 KB Output is correct
62 Correct 57 ms 7896 KB Output is correct
63 Correct 72 ms 9052 KB Output is correct
64 Correct 2 ms 4436 KB Output is correct
65 Correct 2 ms 4436 KB Output is correct
66 Correct 2 ms 4436 KB Output is correct
67 Correct 3 ms 4436 KB Output is correct
68 Correct 3 ms 4436 KB Output is correct
69 Correct 2 ms 4436 KB Output is correct
70 Correct 2 ms 4436 KB Output is correct
71 Correct 2 ms 4436 KB Output is correct
72 Correct 4 ms 4436 KB Output is correct
73 Correct 4 ms 4508 KB Output is correct
74 Correct 2 ms 4436 KB Output is correct
75 Correct 3 ms 4436 KB Output is correct
76 Correct 185 ms 7948 KB Output is correct
77 Correct 168 ms 9112 KB Output is correct
78 Correct 164 ms 9020 KB Output is correct
79 Correct 156 ms 7044 KB Output is correct
80 Correct 167 ms 6908 KB Output is correct
81 Correct 180 ms 6712 KB Output is correct
82 Correct 180 ms 9080 KB Output is correct
83 Correct 3 ms 4436 KB Output is correct
84 Correct 2 ms 4436 KB Output is correct
85 Correct 3 ms 4440 KB Output is correct
86 Correct 3 ms 4436 KB Output is correct
87 Correct 3 ms 4560 KB Output is correct
88 Correct 3 ms 4436 KB Output is correct
89 Correct 3 ms 4436 KB Output is correct
90 Correct 2 ms 4436 KB Output is correct
91 Correct 3 ms 4436 KB Output is correct
92 Correct 3 ms 4436 KB Output is correct
93 Correct 2 ms 4436 KB Output is correct
94 Correct 4 ms 4436 KB Output is correct
95 Correct 3 ms 4436 KB Output is correct
96 Correct 3 ms 4436 KB Output is correct
97 Correct 3 ms 4440 KB Output is correct
98 Correct 3 ms 4436 KB Output is correct
99 Correct 3 ms 4436 KB Output is correct
100 Correct 3 ms 4436 KB Output is correct
101 Correct 3 ms 4436 KB Output is correct
102 Correct 2 ms 4436 KB Output is correct
103 Correct 260 ms 7908 KB Output is correct
104 Correct 227 ms 9144 KB Output is correct
105 Correct 231 ms 9124 KB Output is correct
106 Correct 214 ms 7128 KB Output is correct
107 Correct 210 ms 6748 KB Output is correct
108 Correct 254 ms 6988 KB Output is correct
109 Correct 254 ms 9420 KB Output is correct
110 Correct 5 ms 4436 KB Output is correct
111 Correct 4 ms 4464 KB Output is correct
112 Correct 5 ms 4436 KB Output is correct
113 Correct 4 ms 4436 KB Output is correct
114 Correct 5 ms 4472 KB Output is correct
115 Correct 332 ms 7096 KB Output is correct
116 Correct 263 ms 6348 KB Output is correct
117 Correct 286 ms 6468 KB Output is correct
118 Correct 280 ms 6548 KB Output is correct
119 Correct 331 ms 7980 KB Output is correct
120 Correct 431 ms 9192 KB Output is correct
121 Correct 442 ms 9264 KB Output is correct
122 Correct 332 ms 6980 KB Output is correct
123 Correct 446 ms 7220 KB Output is correct
124 Correct 466 ms 6800 KB Output is correct
125 Correct 461 ms 9564 KB Output is correct
126 Correct 37 ms 4564 KB Output is correct
127 Correct 21 ms 4436 KB Output is correct
128 Correct 23 ms 4436 KB Output is correct
129 Correct 14 ms 4436 KB Output is correct
130 Correct 28 ms 4496 KB Output is correct
131 Correct 109 ms 4532 KB Output is correct
132 Correct 3311 ms 13536 KB Output is correct
133 Correct 3270 ms 12108 KB Output is correct
134 Correct 3242 ms 13420 KB Output is correct
135 Correct 1708 ms 8140 KB Output is correct
136 Correct 2340 ms 10688 KB Output is correct
137 Correct 1102 ms 9684 KB Output is correct
138 Correct 1067 ms 9864 KB Output is correct
139 Correct 1044 ms 7092 KB Output is correct
140 Correct 3210 ms 10808 KB Output is correct
141 Correct 2660 ms 7156 KB Output is correct
142 Correct 2736 ms 10308 KB Output is correct