# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
796054 |
2023-07-28T05:32:38 Z |
박영우(#10072) |
Council (JOI23_council) |
C++17 |
|
4000 ms |
14144 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];
int popc[1 << MAXS];
int dp[1 << MAXS];
int ans[MAX];
int cmask[MAX];
int sum[MAXS];
inline void add(int x) {
if (dp[x] == popc[x]) return;
dp[x] = popc[x];
queue<int> q;
q.push(x);
int t, v;
while (q.size()) {
t = v = q.front();
q.pop();
while (v) {
x = (v & -v);
if (dp[x ^ t] != popc[x ^ t]) {
dp[x ^ t] = popc[x ^ t];
q.push(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 (i = 0; i <= K; i++) for (j = 0; j < M; j++) if (i >> j & 1) dp[i] = 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 (i = 0; i <= K; i++) for (j = 0; j < M; j++) if (i >> j & 1) dp[i] = 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 |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
5 ms |
8560 KB |
Output is correct |
3 |
Correct |
4 ms |
8432 KB |
Output is correct |
4 |
Correct |
5 ms |
8532 KB |
Output is correct |
5 |
Correct |
996 ms |
8972 KB |
Output is correct |
6 |
Correct |
1153 ms |
8548 KB |
Output is correct |
7 |
Correct |
381 ms |
8568 KB |
Output is correct |
8 |
Correct |
636 ms |
8544 KB |
Output is correct |
9 |
Correct |
1324 ms |
8588 KB |
Output is correct |
10 |
Correct |
379 ms |
8544 KB |
Output is correct |
11 |
Correct |
628 ms |
8540 KB |
Output is correct |
12 |
Correct |
1277 ms |
8600 KB |
Output is correct |
13 |
Correct |
4 ms |
8532 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8532 KB |
Output is correct |
16 |
Correct |
4 ms |
8532 KB |
Output is correct |
17 |
Correct |
5 ms |
8532 KB |
Output is correct |
18 |
Correct |
4 ms |
8532 KB |
Output is correct |
19 |
Correct |
4 ms |
8532 KB |
Output is correct |
20 |
Correct |
4 ms |
8532 KB |
Output is correct |
21 |
Correct |
5 ms |
8532 KB |
Output is correct |
22 |
Correct |
4 ms |
8532 KB |
Output is correct |
23 |
Correct |
4 ms |
8532 KB |
Output is correct |
24 |
Correct |
4 ms |
8544 KB |
Output is correct |
25 |
Correct |
5 ms |
8532 KB |
Output is correct |
26 |
Correct |
5 ms |
8500 KB |
Output is correct |
27 |
Correct |
4 ms |
8532 KB |
Output is correct |
28 |
Correct |
4 ms |
8560 KB |
Output is correct |
29 |
Correct |
5 ms |
8552 KB |
Output is correct |
30 |
Correct |
5 ms |
8532 KB |
Output is correct |
31 |
Correct |
6 ms |
8480 KB |
Output is correct |
32 |
Correct |
4 ms |
8532 KB |
Output is correct |
33 |
Correct |
5 ms |
8532 KB |
Output is correct |
34 |
Correct |
4 ms |
8532 KB |
Output is correct |
35 |
Correct |
5 ms |
8532 KB |
Output is correct |
36 |
Correct |
4 ms |
8472 KB |
Output is correct |
37 |
Correct |
4 ms |
8532 KB |
Output is correct |
38 |
Correct |
4 ms |
8532 KB |
Output is correct |
39 |
Correct |
6 ms |
8532 KB |
Output is correct |
40 |
Correct |
6 ms |
8556 KB |
Output is correct |
41 |
Correct |
13 ms |
8560 KB |
Output is correct |
42 |
Correct |
8 ms |
8532 KB |
Output is correct |
43 |
Correct |
12 ms |
8560 KB |
Output is correct |
44 |
Correct |
9 ms |
8432 KB |
Output is correct |
45 |
Correct |
12 ms |
8432 KB |
Output is correct |
46 |
Correct |
98 ms |
8584 KB |
Output is correct |
47 |
Correct |
49 ms |
8536 KB |
Output is correct |
48 |
Correct |
66 ms |
8532 KB |
Output is correct |
49 |
Correct |
41 ms |
8532 KB |
Output is correct |
50 |
Correct |
74 ms |
8560 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
5 ms |
8560 KB |
Output is correct |
3 |
Correct |
4 ms |
8432 KB |
Output is correct |
4 |
Correct |
5 ms |
8532 KB |
Output is correct |
5 |
Correct |
996 ms |
8972 KB |
Output is correct |
6 |
Correct |
1153 ms |
8548 KB |
Output is correct |
7 |
Correct |
381 ms |
8568 KB |
Output is correct |
8 |
Correct |
636 ms |
8544 KB |
Output is correct |
9 |
Correct |
1324 ms |
8588 KB |
Output is correct |
10 |
Correct |
379 ms |
8544 KB |
Output is correct |
11 |
Correct |
628 ms |
8540 KB |
Output is correct |
12 |
Correct |
1277 ms |
8600 KB |
Output is correct |
13 |
Correct |
4 ms |
8532 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8532 KB |
Output is correct |
16 |
Correct |
4 ms |
8532 KB |
Output is correct |
17 |
Correct |
5 ms |
8532 KB |
Output is correct |
18 |
Correct |
4 ms |
8532 KB |
Output is correct |
19 |
Correct |
4 ms |
8532 KB |
Output is correct |
20 |
Correct |
4 ms |
8532 KB |
Output is correct |
21 |
Correct |
5 ms |
8532 KB |
Output is correct |
22 |
Correct |
4 ms |
8532 KB |
Output is correct |
23 |
Correct |
4 ms |
8532 KB |
Output is correct |
24 |
Correct |
4 ms |
8544 KB |
Output is correct |
25 |
Correct |
5 ms |
8532 KB |
Output is correct |
26 |
Correct |
5 ms |
8500 KB |
Output is correct |
27 |
Correct |
4 ms |
8532 KB |
Output is correct |
28 |
Correct |
4 ms |
8560 KB |
Output is correct |
29 |
Correct |
5 ms |
8552 KB |
Output is correct |
30 |
Correct |
5 ms |
8532 KB |
Output is correct |
31 |
Correct |
6 ms |
8480 KB |
Output is correct |
32 |
Correct |
4 ms |
8532 KB |
Output is correct |
33 |
Correct |
5 ms |
8532 KB |
Output is correct |
34 |
Correct |
4 ms |
8532 KB |
Output is correct |
35 |
Correct |
5 ms |
8532 KB |
Output is correct |
36 |
Correct |
4 ms |
8472 KB |
Output is correct |
37 |
Correct |
4 ms |
8532 KB |
Output is correct |
38 |
Correct |
4 ms |
8532 KB |
Output is correct |
39 |
Correct |
6 ms |
8532 KB |
Output is correct |
40 |
Correct |
6 ms |
8556 KB |
Output is correct |
41 |
Correct |
13 ms |
8560 KB |
Output is correct |
42 |
Correct |
8 ms |
8532 KB |
Output is correct |
43 |
Correct |
12 ms |
8560 KB |
Output is correct |
44 |
Correct |
9 ms |
8432 KB |
Output is correct |
45 |
Correct |
12 ms |
8432 KB |
Output is correct |
46 |
Correct |
98 ms |
8584 KB |
Output is correct |
47 |
Correct |
49 ms |
8536 KB |
Output is correct |
48 |
Correct |
66 ms |
8532 KB |
Output is correct |
49 |
Correct |
41 ms |
8532 KB |
Output is correct |
50 |
Correct |
74 ms |
8560 KB |
Output is correct |
51 |
Correct |
1497 ms |
8560 KB |
Output is correct |
52 |
Correct |
2793 ms |
9524 KB |
Output is correct |
53 |
Correct |
2494 ms |
8968 KB |
Output is correct |
54 |
Correct |
2274 ms |
8752 KB |
Output is correct |
55 |
Correct |
6 ms |
8532 KB |
Output is correct |
56 |
Correct |
246 ms |
8600 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
78 ms |
11420 KB |
Output is correct |
3 |
Correct |
73 ms |
11388 KB |
Output is correct |
4 |
Correct |
63 ms |
11468 KB |
Output is correct |
5 |
Correct |
77 ms |
11392 KB |
Output is correct |
6 |
Correct |
65 ms |
12564 KB |
Output is correct |
7 |
Correct |
93 ms |
13740 KB |
Output is correct |
8 |
Correct |
4 ms |
8532 KB |
Output is correct |
9 |
Correct |
4 ms |
8440 KB |
Output is correct |
10 |
Correct |
4 ms |
8532 KB |
Output is correct |
11 |
Correct |
4 ms |
8532 KB |
Output is correct |
12 |
Correct |
5 ms |
8532 KB |
Output is correct |
13 |
Correct |
4 ms |
8536 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8552 KB |
Output is correct |
16 |
Correct |
5 ms |
8532 KB |
Output is correct |
17 |
Correct |
6 ms |
8532 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
78 ms |
11420 KB |
Output is correct |
3 |
Correct |
73 ms |
11388 KB |
Output is correct |
4 |
Correct |
63 ms |
11468 KB |
Output is correct |
5 |
Correct |
77 ms |
11392 KB |
Output is correct |
6 |
Correct |
65 ms |
12564 KB |
Output is correct |
7 |
Correct |
93 ms |
13740 KB |
Output is correct |
8 |
Correct |
4 ms |
8532 KB |
Output is correct |
9 |
Correct |
4 ms |
8440 KB |
Output is correct |
10 |
Correct |
4 ms |
8532 KB |
Output is correct |
11 |
Correct |
4 ms |
8532 KB |
Output is correct |
12 |
Correct |
5 ms |
8532 KB |
Output is correct |
13 |
Correct |
4 ms |
8536 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8552 KB |
Output is correct |
16 |
Correct |
5 ms |
8532 KB |
Output is correct |
17 |
Correct |
6 ms |
8532 KB |
Output is correct |
18 |
Correct |
4 ms |
8532 KB |
Output is correct |
19 |
Correct |
4 ms |
8532 KB |
Output is correct |
20 |
Correct |
199 ms |
12600 KB |
Output is correct |
21 |
Correct |
173 ms |
13796 KB |
Output is correct |
22 |
Correct |
175 ms |
13736 KB |
Output is correct |
23 |
Correct |
166 ms |
11780 KB |
Output is correct |
24 |
Correct |
166 ms |
11392 KB |
Output is correct |
25 |
Correct |
241 ms |
11468 KB |
Output is correct |
26 |
Correct |
199 ms |
13740 KB |
Output is correct |
27 |
Correct |
5 ms |
8532 KB |
Output is correct |
28 |
Correct |
4 ms |
8532 KB |
Output is correct |
29 |
Correct |
4 ms |
8532 KB |
Output is correct |
30 |
Correct |
4 ms |
8532 KB |
Output is correct |
31 |
Correct |
5 ms |
8512 KB |
Output is correct |
32 |
Correct |
4 ms |
8532 KB |
Output is correct |
33 |
Correct |
4 ms |
8532 KB |
Output is correct |
34 |
Correct |
4 ms |
8532 KB |
Output is correct |
35 |
Correct |
5 ms |
8552 KB |
Output is correct |
36 |
Correct |
6 ms |
8532 KB |
Output is correct |
37 |
Correct |
4 ms |
8532 KB |
Output is correct |
38 |
Correct |
4 ms |
8532 KB |
Output is correct |
39 |
Correct |
6 ms |
8544 KB |
Output is correct |
40 |
Correct |
6 ms |
8532 KB |
Output is correct |
41 |
Correct |
4 ms |
8520 KB |
Output is correct |
42 |
Correct |
5 ms |
8532 KB |
Output is correct |
43 |
Correct |
4 ms |
8532 KB |
Output is correct |
44 |
Correct |
5 ms |
8532 KB |
Output is correct |
45 |
Correct |
6 ms |
8532 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
78 ms |
11420 KB |
Output is correct |
3 |
Correct |
73 ms |
11388 KB |
Output is correct |
4 |
Correct |
63 ms |
11468 KB |
Output is correct |
5 |
Correct |
77 ms |
11392 KB |
Output is correct |
6 |
Correct |
65 ms |
12564 KB |
Output is correct |
7 |
Correct |
93 ms |
13740 KB |
Output is correct |
8 |
Correct |
4 ms |
8532 KB |
Output is correct |
9 |
Correct |
4 ms |
8440 KB |
Output is correct |
10 |
Correct |
4 ms |
8532 KB |
Output is correct |
11 |
Correct |
4 ms |
8532 KB |
Output is correct |
12 |
Correct |
5 ms |
8532 KB |
Output is correct |
13 |
Correct |
4 ms |
8536 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8552 KB |
Output is correct |
16 |
Correct |
5 ms |
8532 KB |
Output is correct |
17 |
Correct |
6 ms |
8532 KB |
Output is correct |
18 |
Correct |
4 ms |
8532 KB |
Output is correct |
19 |
Correct |
4 ms |
8532 KB |
Output is correct |
20 |
Correct |
199 ms |
12600 KB |
Output is correct |
21 |
Correct |
173 ms |
13796 KB |
Output is correct |
22 |
Correct |
175 ms |
13736 KB |
Output is correct |
23 |
Correct |
166 ms |
11780 KB |
Output is correct |
24 |
Correct |
166 ms |
11392 KB |
Output is correct |
25 |
Correct |
241 ms |
11468 KB |
Output is correct |
26 |
Correct |
199 ms |
13740 KB |
Output is correct |
27 |
Correct |
5 ms |
8532 KB |
Output is correct |
28 |
Correct |
4 ms |
8532 KB |
Output is correct |
29 |
Correct |
4 ms |
8532 KB |
Output is correct |
30 |
Correct |
4 ms |
8532 KB |
Output is correct |
31 |
Correct |
5 ms |
8512 KB |
Output is correct |
32 |
Correct |
4 ms |
8532 KB |
Output is correct |
33 |
Correct |
4 ms |
8532 KB |
Output is correct |
34 |
Correct |
4 ms |
8532 KB |
Output is correct |
35 |
Correct |
5 ms |
8552 KB |
Output is correct |
36 |
Correct |
6 ms |
8532 KB |
Output is correct |
37 |
Correct |
4 ms |
8532 KB |
Output is correct |
38 |
Correct |
4 ms |
8532 KB |
Output is correct |
39 |
Correct |
6 ms |
8544 KB |
Output is correct |
40 |
Correct |
6 ms |
8532 KB |
Output is correct |
41 |
Correct |
4 ms |
8520 KB |
Output is correct |
42 |
Correct |
5 ms |
8532 KB |
Output is correct |
43 |
Correct |
4 ms |
8532 KB |
Output is correct |
44 |
Correct |
5 ms |
8532 KB |
Output is correct |
45 |
Correct |
6 ms |
8532 KB |
Output is correct |
46 |
Correct |
6 ms |
8532 KB |
Output is correct |
47 |
Correct |
288 ms |
12644 KB |
Output is correct |
48 |
Correct |
262 ms |
13712 KB |
Output is correct |
49 |
Correct |
282 ms |
13720 KB |
Output is correct |
50 |
Correct |
235 ms |
11780 KB |
Output is correct |
51 |
Correct |
256 ms |
11464 KB |
Output is correct |
52 |
Correct |
286 ms |
11404 KB |
Output is correct |
53 |
Correct |
292 ms |
14028 KB |
Output is correct |
54 |
Correct |
13 ms |
8532 KB |
Output is correct |
55 |
Correct |
8 ms |
8532 KB |
Output is correct |
56 |
Correct |
12 ms |
8564 KB |
Output is correct |
57 |
Correct |
8 ms |
8556 KB |
Output is correct |
58 |
Correct |
12 ms |
8564 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
78 ms |
11420 KB |
Output is correct |
3 |
Correct |
73 ms |
11388 KB |
Output is correct |
4 |
Correct |
63 ms |
11468 KB |
Output is correct |
5 |
Correct |
77 ms |
11392 KB |
Output is correct |
6 |
Correct |
65 ms |
12564 KB |
Output is correct |
7 |
Correct |
93 ms |
13740 KB |
Output is correct |
8 |
Correct |
4 ms |
8532 KB |
Output is correct |
9 |
Correct |
4 ms |
8440 KB |
Output is correct |
10 |
Correct |
4 ms |
8532 KB |
Output is correct |
11 |
Correct |
4 ms |
8532 KB |
Output is correct |
12 |
Correct |
5 ms |
8532 KB |
Output is correct |
13 |
Correct |
4 ms |
8536 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8552 KB |
Output is correct |
16 |
Correct |
5 ms |
8532 KB |
Output is correct |
17 |
Correct |
6 ms |
8532 KB |
Output is correct |
18 |
Correct |
4 ms |
8532 KB |
Output is correct |
19 |
Correct |
4 ms |
8532 KB |
Output is correct |
20 |
Correct |
199 ms |
12600 KB |
Output is correct |
21 |
Correct |
173 ms |
13796 KB |
Output is correct |
22 |
Correct |
175 ms |
13736 KB |
Output is correct |
23 |
Correct |
166 ms |
11780 KB |
Output is correct |
24 |
Correct |
166 ms |
11392 KB |
Output is correct |
25 |
Correct |
241 ms |
11468 KB |
Output is correct |
26 |
Correct |
199 ms |
13740 KB |
Output is correct |
27 |
Correct |
5 ms |
8532 KB |
Output is correct |
28 |
Correct |
4 ms |
8532 KB |
Output is correct |
29 |
Correct |
4 ms |
8532 KB |
Output is correct |
30 |
Correct |
4 ms |
8532 KB |
Output is correct |
31 |
Correct |
5 ms |
8512 KB |
Output is correct |
32 |
Correct |
4 ms |
8532 KB |
Output is correct |
33 |
Correct |
4 ms |
8532 KB |
Output is correct |
34 |
Correct |
4 ms |
8532 KB |
Output is correct |
35 |
Correct |
5 ms |
8552 KB |
Output is correct |
36 |
Correct |
6 ms |
8532 KB |
Output is correct |
37 |
Correct |
4 ms |
8532 KB |
Output is correct |
38 |
Correct |
4 ms |
8532 KB |
Output is correct |
39 |
Correct |
6 ms |
8544 KB |
Output is correct |
40 |
Correct |
6 ms |
8532 KB |
Output is correct |
41 |
Correct |
4 ms |
8520 KB |
Output is correct |
42 |
Correct |
5 ms |
8532 KB |
Output is correct |
43 |
Correct |
4 ms |
8532 KB |
Output is correct |
44 |
Correct |
5 ms |
8532 KB |
Output is correct |
45 |
Correct |
6 ms |
8532 KB |
Output is correct |
46 |
Correct |
6 ms |
8532 KB |
Output is correct |
47 |
Correct |
288 ms |
12644 KB |
Output is correct |
48 |
Correct |
262 ms |
13712 KB |
Output is correct |
49 |
Correct |
282 ms |
13720 KB |
Output is correct |
50 |
Correct |
235 ms |
11780 KB |
Output is correct |
51 |
Correct |
256 ms |
11464 KB |
Output is correct |
52 |
Correct |
286 ms |
11404 KB |
Output is correct |
53 |
Correct |
292 ms |
14028 KB |
Output is correct |
54 |
Correct |
13 ms |
8532 KB |
Output is correct |
55 |
Correct |
8 ms |
8532 KB |
Output is correct |
56 |
Correct |
12 ms |
8564 KB |
Output is correct |
57 |
Correct |
8 ms |
8556 KB |
Output is correct |
58 |
Correct |
12 ms |
8564 KB |
Output is correct |
59 |
Correct |
448 ms |
11692 KB |
Output is correct |
60 |
Correct |
464 ms |
10696 KB |
Output is correct |
61 |
Correct |
487 ms |
10848 KB |
Output is correct |
62 |
Correct |
487 ms |
10832 KB |
Output is correct |
63 |
Correct |
486 ms |
12696 KB |
Output is correct |
64 |
Correct |
701 ms |
13904 KB |
Output is correct |
65 |
Correct |
678 ms |
13788 KB |
Output is correct |
66 |
Correct |
502 ms |
11776 KB |
Output is correct |
67 |
Correct |
675 ms |
11508 KB |
Output is correct |
68 |
Correct |
715 ms |
11420 KB |
Output is correct |
69 |
Correct |
720 ms |
14096 KB |
Output is correct |
70 |
Correct |
105 ms |
8568 KB |
Output is correct |
71 |
Correct |
45 ms |
8548 KB |
Output is correct |
72 |
Correct |
72 ms |
8548 KB |
Output is correct |
73 |
Correct |
45 ms |
8556 KB |
Output is correct |
74 |
Correct |
72 ms |
8556 KB |
Output is correct |
75 |
Correct |
235 ms |
8600 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
8532 KB |
Output is correct |
2 |
Correct |
5 ms |
8560 KB |
Output is correct |
3 |
Correct |
4 ms |
8432 KB |
Output is correct |
4 |
Correct |
5 ms |
8532 KB |
Output is correct |
5 |
Correct |
996 ms |
8972 KB |
Output is correct |
6 |
Correct |
1153 ms |
8548 KB |
Output is correct |
7 |
Correct |
381 ms |
8568 KB |
Output is correct |
8 |
Correct |
636 ms |
8544 KB |
Output is correct |
9 |
Correct |
1324 ms |
8588 KB |
Output is correct |
10 |
Correct |
379 ms |
8544 KB |
Output is correct |
11 |
Correct |
628 ms |
8540 KB |
Output is correct |
12 |
Correct |
1277 ms |
8600 KB |
Output is correct |
13 |
Correct |
4 ms |
8532 KB |
Output is correct |
14 |
Correct |
4 ms |
8532 KB |
Output is correct |
15 |
Correct |
4 ms |
8532 KB |
Output is correct |
16 |
Correct |
4 ms |
8532 KB |
Output is correct |
17 |
Correct |
5 ms |
8532 KB |
Output is correct |
18 |
Correct |
4 ms |
8532 KB |
Output is correct |
19 |
Correct |
4 ms |
8532 KB |
Output is correct |
20 |
Correct |
4 ms |
8532 KB |
Output is correct |
21 |
Correct |
5 ms |
8532 KB |
Output is correct |
22 |
Correct |
4 ms |
8532 KB |
Output is correct |
23 |
Correct |
4 ms |
8532 KB |
Output is correct |
24 |
Correct |
4 ms |
8544 KB |
Output is correct |
25 |
Correct |
5 ms |
8532 KB |
Output is correct |
26 |
Correct |
5 ms |
8500 KB |
Output is correct |
27 |
Correct |
4 ms |
8532 KB |
Output is correct |
28 |
Correct |
4 ms |
8560 KB |
Output is correct |
29 |
Correct |
5 ms |
8552 KB |
Output is correct |
30 |
Correct |
5 ms |
8532 KB |
Output is correct |
31 |
Correct |
6 ms |
8480 KB |
Output is correct |
32 |
Correct |
4 ms |
8532 KB |
Output is correct |
33 |
Correct |
5 ms |
8532 KB |
Output is correct |
34 |
Correct |
4 ms |
8532 KB |
Output is correct |
35 |
Correct |
5 ms |
8532 KB |
Output is correct |
36 |
Correct |
4 ms |
8472 KB |
Output is correct |
37 |
Correct |
4 ms |
8532 KB |
Output is correct |
38 |
Correct |
4 ms |
8532 KB |
Output is correct |
39 |
Correct |
6 ms |
8532 KB |
Output is correct |
40 |
Correct |
6 ms |
8556 KB |
Output is correct |
41 |
Correct |
13 ms |
8560 KB |
Output is correct |
42 |
Correct |
8 ms |
8532 KB |
Output is correct |
43 |
Correct |
12 ms |
8560 KB |
Output is correct |
44 |
Correct |
9 ms |
8432 KB |
Output is correct |
45 |
Correct |
12 ms |
8432 KB |
Output is correct |
46 |
Correct |
98 ms |
8584 KB |
Output is correct |
47 |
Correct |
49 ms |
8536 KB |
Output is correct |
48 |
Correct |
66 ms |
8532 KB |
Output is correct |
49 |
Correct |
41 ms |
8532 KB |
Output is correct |
50 |
Correct |
74 ms |
8560 KB |
Output is correct |
51 |
Correct |
1497 ms |
8560 KB |
Output is correct |
52 |
Correct |
2793 ms |
9524 KB |
Output is correct |
53 |
Correct |
2494 ms |
8968 KB |
Output is correct |
54 |
Correct |
2274 ms |
8752 KB |
Output is correct |
55 |
Correct |
6 ms |
8532 KB |
Output is correct |
56 |
Correct |
246 ms |
8600 KB |
Output is correct |
57 |
Correct |
4 ms |
8532 KB |
Output is correct |
58 |
Correct |
78 ms |
11420 KB |
Output is correct |
59 |
Correct |
73 ms |
11388 KB |
Output is correct |
60 |
Correct |
63 ms |
11468 KB |
Output is correct |
61 |
Correct |
77 ms |
11392 KB |
Output is correct |
62 |
Correct |
65 ms |
12564 KB |
Output is correct |
63 |
Correct |
93 ms |
13740 KB |
Output is correct |
64 |
Correct |
4 ms |
8532 KB |
Output is correct |
65 |
Correct |
4 ms |
8440 KB |
Output is correct |
66 |
Correct |
4 ms |
8532 KB |
Output is correct |
67 |
Correct |
4 ms |
8532 KB |
Output is correct |
68 |
Correct |
5 ms |
8532 KB |
Output is correct |
69 |
Correct |
4 ms |
8536 KB |
Output is correct |
70 |
Correct |
4 ms |
8532 KB |
Output is correct |
71 |
Correct |
4 ms |
8552 KB |
Output is correct |
72 |
Correct |
5 ms |
8532 KB |
Output is correct |
73 |
Correct |
6 ms |
8532 KB |
Output is correct |
74 |
Correct |
4 ms |
8532 KB |
Output is correct |
75 |
Correct |
4 ms |
8532 KB |
Output is correct |
76 |
Correct |
199 ms |
12600 KB |
Output is correct |
77 |
Correct |
173 ms |
13796 KB |
Output is correct |
78 |
Correct |
175 ms |
13736 KB |
Output is correct |
79 |
Correct |
166 ms |
11780 KB |
Output is correct |
80 |
Correct |
166 ms |
11392 KB |
Output is correct |
81 |
Correct |
241 ms |
11468 KB |
Output is correct |
82 |
Correct |
199 ms |
13740 KB |
Output is correct |
83 |
Correct |
5 ms |
8532 KB |
Output is correct |
84 |
Correct |
4 ms |
8532 KB |
Output is correct |
85 |
Correct |
4 ms |
8532 KB |
Output is correct |
86 |
Correct |
4 ms |
8532 KB |
Output is correct |
87 |
Correct |
5 ms |
8512 KB |
Output is correct |
88 |
Correct |
4 ms |
8532 KB |
Output is correct |
89 |
Correct |
4 ms |
8532 KB |
Output is correct |
90 |
Correct |
4 ms |
8532 KB |
Output is correct |
91 |
Correct |
5 ms |
8552 KB |
Output is correct |
92 |
Correct |
6 ms |
8532 KB |
Output is correct |
93 |
Correct |
4 ms |
8532 KB |
Output is correct |
94 |
Correct |
4 ms |
8532 KB |
Output is correct |
95 |
Correct |
6 ms |
8544 KB |
Output is correct |
96 |
Correct |
6 ms |
8532 KB |
Output is correct |
97 |
Correct |
4 ms |
8520 KB |
Output is correct |
98 |
Correct |
5 ms |
8532 KB |
Output is correct |
99 |
Correct |
4 ms |
8532 KB |
Output is correct |
100 |
Correct |
5 ms |
8532 KB |
Output is correct |
101 |
Correct |
6 ms |
8532 KB |
Output is correct |
102 |
Correct |
6 ms |
8532 KB |
Output is correct |
103 |
Correct |
288 ms |
12644 KB |
Output is correct |
104 |
Correct |
262 ms |
13712 KB |
Output is correct |
105 |
Correct |
282 ms |
13720 KB |
Output is correct |
106 |
Correct |
235 ms |
11780 KB |
Output is correct |
107 |
Correct |
256 ms |
11464 KB |
Output is correct |
108 |
Correct |
286 ms |
11404 KB |
Output is correct |
109 |
Correct |
292 ms |
14028 KB |
Output is correct |
110 |
Correct |
13 ms |
8532 KB |
Output is correct |
111 |
Correct |
8 ms |
8532 KB |
Output is correct |
112 |
Correct |
12 ms |
8564 KB |
Output is correct |
113 |
Correct |
8 ms |
8556 KB |
Output is correct |
114 |
Correct |
12 ms |
8564 KB |
Output is correct |
115 |
Correct |
448 ms |
11692 KB |
Output is correct |
116 |
Correct |
464 ms |
10696 KB |
Output is correct |
117 |
Correct |
487 ms |
10848 KB |
Output is correct |
118 |
Correct |
487 ms |
10832 KB |
Output is correct |
119 |
Correct |
486 ms |
12696 KB |
Output is correct |
120 |
Correct |
701 ms |
13904 KB |
Output is correct |
121 |
Correct |
678 ms |
13788 KB |
Output is correct |
122 |
Correct |
502 ms |
11776 KB |
Output is correct |
123 |
Correct |
675 ms |
11508 KB |
Output is correct |
124 |
Correct |
715 ms |
11420 KB |
Output is correct |
125 |
Correct |
720 ms |
14096 KB |
Output is correct |
126 |
Correct |
105 ms |
8568 KB |
Output is correct |
127 |
Correct |
45 ms |
8548 KB |
Output is correct |
128 |
Correct |
72 ms |
8548 KB |
Output is correct |
129 |
Correct |
45 ms |
8556 KB |
Output is correct |
130 |
Correct |
72 ms |
8556 KB |
Output is correct |
131 |
Correct |
235 ms |
8600 KB |
Output is correct |
132 |
Execution timed out |
4043 ms |
14144 KB |
Time limit exceeded |
133 |
Halted |
0 ms |
0 KB |
- |