# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
796058 |
2023-07-28T05:36:46 Z |
박영우(#10072) |
Council (JOI23_council) |
C++17 |
|
4000 ms |
12608 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 (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;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
3 ms |
4436 KB |
Output is correct |
3 |
Correct |
3 ms |
4436 KB |
Output is correct |
4 |
Correct |
3 ms |
4436 KB |
Output is correct |
5 |
Correct |
1031 ms |
6612 KB |
Output is correct |
6 |
Correct |
1230 ms |
4556 KB |
Output is correct |
7 |
Correct |
417 ms |
4564 KB |
Output is correct |
8 |
Correct |
696 ms |
4436 KB |
Output is correct |
9 |
Correct |
1369 ms |
4592 KB |
Output is correct |
10 |
Correct |
396 ms |
4468 KB |
Output is correct |
11 |
Correct |
680 ms |
4452 KB |
Output is correct |
12 |
Correct |
1344 ms |
4624 KB |
Output is correct |
13 |
Correct |
2 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4420 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 |
3 ms |
4436 KB |
Output is correct |
21 |
Correct |
3 ms |
4356 KB |
Output is correct |
22 |
Correct |
4 ms |
4436 KB |
Output is correct |
23 |
Correct |
2 ms |
4436 KB |
Output is correct |
24 |
Correct |
3 ms |
4436 KB |
Output is correct |
25 |
Correct |
3 ms |
4436 KB |
Output is correct |
26 |
Correct |
3 ms |
4444 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 |
4 ms |
4436 KB |
Output is correct |
31 |
Correct |
5 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 |
3 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 |
4 ms |
4436 KB |
Output is correct |
41 |
Correct |
11 ms |
4436 KB |
Output is correct |
42 |
Correct |
7 ms |
4436 KB |
Output is correct |
43 |
Correct |
10 ms |
4436 KB |
Output is correct |
44 |
Correct |
7 ms |
4436 KB |
Output is correct |
45 |
Correct |
10 ms |
4468 KB |
Output is correct |
46 |
Correct |
102 ms |
4580 KB |
Output is correct |
47 |
Correct |
45 ms |
4484 KB |
Output is correct |
48 |
Correct |
84 ms |
4452 KB |
Output is correct |
49 |
Correct |
44 ms |
4452 KB |
Output is correct |
50 |
Correct |
94 ms |
4500 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
3 ms |
4436 KB |
Output is correct |
3 |
Correct |
3 ms |
4436 KB |
Output is correct |
4 |
Correct |
3 ms |
4436 KB |
Output is correct |
5 |
Correct |
1031 ms |
6612 KB |
Output is correct |
6 |
Correct |
1230 ms |
4556 KB |
Output is correct |
7 |
Correct |
417 ms |
4564 KB |
Output is correct |
8 |
Correct |
696 ms |
4436 KB |
Output is correct |
9 |
Correct |
1369 ms |
4592 KB |
Output is correct |
10 |
Correct |
396 ms |
4468 KB |
Output is correct |
11 |
Correct |
680 ms |
4452 KB |
Output is correct |
12 |
Correct |
1344 ms |
4624 KB |
Output is correct |
13 |
Correct |
2 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4420 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 |
3 ms |
4436 KB |
Output is correct |
21 |
Correct |
3 ms |
4356 KB |
Output is correct |
22 |
Correct |
4 ms |
4436 KB |
Output is correct |
23 |
Correct |
2 ms |
4436 KB |
Output is correct |
24 |
Correct |
3 ms |
4436 KB |
Output is correct |
25 |
Correct |
3 ms |
4436 KB |
Output is correct |
26 |
Correct |
3 ms |
4444 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 |
4 ms |
4436 KB |
Output is correct |
31 |
Correct |
5 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 |
3 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 |
4 ms |
4436 KB |
Output is correct |
41 |
Correct |
11 ms |
4436 KB |
Output is correct |
42 |
Correct |
7 ms |
4436 KB |
Output is correct |
43 |
Correct |
10 ms |
4436 KB |
Output is correct |
44 |
Correct |
7 ms |
4436 KB |
Output is correct |
45 |
Correct |
10 ms |
4468 KB |
Output is correct |
46 |
Correct |
102 ms |
4580 KB |
Output is correct |
47 |
Correct |
45 ms |
4484 KB |
Output is correct |
48 |
Correct |
84 ms |
4452 KB |
Output is correct |
49 |
Correct |
44 ms |
4452 KB |
Output is correct |
50 |
Correct |
94 ms |
4500 KB |
Output is correct |
51 |
Correct |
1618 ms |
4448 KB |
Output is correct |
52 |
Correct |
2979 ms |
8556 KB |
Output is correct |
53 |
Correct |
2471 ms |
6172 KB |
Output is correct |
54 |
Correct |
2363 ms |
5380 KB |
Output is correct |
55 |
Correct |
4 ms |
4436 KB |
Output is correct |
56 |
Correct |
252 ms |
4528 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
69 ms |
6704 KB |
Output is correct |
3 |
Correct |
71 ms |
6732 KB |
Output is correct |
4 |
Correct |
59 ms |
6748 KB |
Output is correct |
5 |
Correct |
72 ms |
6764 KB |
Output is correct |
6 |
Correct |
61 ms |
7884 KB |
Output is correct |
7 |
Correct |
73 ms |
9108 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 |
2 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 |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4436 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
69 ms |
6704 KB |
Output is correct |
3 |
Correct |
71 ms |
6732 KB |
Output is correct |
4 |
Correct |
59 ms |
6748 KB |
Output is correct |
5 |
Correct |
72 ms |
6764 KB |
Output is correct |
6 |
Correct |
61 ms |
7884 KB |
Output is correct |
7 |
Correct |
73 ms |
9108 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 |
2 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 |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4436 KB |
Output is correct |
18 |
Correct |
2 ms |
4436 KB |
Output is correct |
19 |
Correct |
2 ms |
4436 KB |
Output is correct |
20 |
Correct |
191 ms |
7968 KB |
Output is correct |
21 |
Correct |
166 ms |
9056 KB |
Output is correct |
22 |
Correct |
170 ms |
9048 KB |
Output is correct |
23 |
Correct |
160 ms |
7092 KB |
Output is correct |
24 |
Correct |
158 ms |
6728 KB |
Output is correct |
25 |
Correct |
185 ms |
6760 KB |
Output is correct |
26 |
Correct |
198 ms |
9100 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
2 ms |
4436 KB |
Output is correct |
29 |
Correct |
2 ms |
4436 KB |
Output is correct |
30 |
Correct |
2 ms |
4436 KB |
Output is correct |
31 |
Correct |
3 ms |
4436 KB |
Output is correct |
32 |
Correct |
2 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 |
4 ms |
4436 KB |
Output is correct |
37 |
Correct |
2 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 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 |
2 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
2 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
4 ms |
4436 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
69 ms |
6704 KB |
Output is correct |
3 |
Correct |
71 ms |
6732 KB |
Output is correct |
4 |
Correct |
59 ms |
6748 KB |
Output is correct |
5 |
Correct |
72 ms |
6764 KB |
Output is correct |
6 |
Correct |
61 ms |
7884 KB |
Output is correct |
7 |
Correct |
73 ms |
9108 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 |
2 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 |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4436 KB |
Output is correct |
18 |
Correct |
2 ms |
4436 KB |
Output is correct |
19 |
Correct |
2 ms |
4436 KB |
Output is correct |
20 |
Correct |
191 ms |
7968 KB |
Output is correct |
21 |
Correct |
166 ms |
9056 KB |
Output is correct |
22 |
Correct |
170 ms |
9048 KB |
Output is correct |
23 |
Correct |
160 ms |
7092 KB |
Output is correct |
24 |
Correct |
158 ms |
6728 KB |
Output is correct |
25 |
Correct |
185 ms |
6760 KB |
Output is correct |
26 |
Correct |
198 ms |
9100 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
2 ms |
4436 KB |
Output is correct |
29 |
Correct |
2 ms |
4436 KB |
Output is correct |
30 |
Correct |
2 ms |
4436 KB |
Output is correct |
31 |
Correct |
3 ms |
4436 KB |
Output is correct |
32 |
Correct |
2 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 |
4 ms |
4436 KB |
Output is correct |
37 |
Correct |
2 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 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 |
2 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
2 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
4 ms |
4436 KB |
Output is correct |
46 |
Correct |
3 ms |
4436 KB |
Output is correct |
47 |
Correct |
291 ms |
7980 KB |
Output is correct |
48 |
Correct |
245 ms |
9060 KB |
Output is correct |
49 |
Correct |
248 ms |
9060 KB |
Output is correct |
50 |
Correct |
235 ms |
7060 KB |
Output is correct |
51 |
Correct |
240 ms |
6776 KB |
Output is correct |
52 |
Correct |
287 ms |
6716 KB |
Output is correct |
53 |
Correct |
284 ms |
9416 KB |
Output is correct |
54 |
Correct |
12 ms |
4436 KB |
Output is correct |
55 |
Correct |
7 ms |
4456 KB |
Output is correct |
56 |
Correct |
11 ms |
4468 KB |
Output is correct |
57 |
Correct |
7 ms |
4436 KB |
Output is correct |
58 |
Correct |
14 ms |
4564 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
69 ms |
6704 KB |
Output is correct |
3 |
Correct |
71 ms |
6732 KB |
Output is correct |
4 |
Correct |
59 ms |
6748 KB |
Output is correct |
5 |
Correct |
72 ms |
6764 KB |
Output is correct |
6 |
Correct |
61 ms |
7884 KB |
Output is correct |
7 |
Correct |
73 ms |
9108 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 |
2 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 |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4436 KB |
Output is correct |
18 |
Correct |
2 ms |
4436 KB |
Output is correct |
19 |
Correct |
2 ms |
4436 KB |
Output is correct |
20 |
Correct |
191 ms |
7968 KB |
Output is correct |
21 |
Correct |
166 ms |
9056 KB |
Output is correct |
22 |
Correct |
170 ms |
9048 KB |
Output is correct |
23 |
Correct |
160 ms |
7092 KB |
Output is correct |
24 |
Correct |
158 ms |
6728 KB |
Output is correct |
25 |
Correct |
185 ms |
6760 KB |
Output is correct |
26 |
Correct |
198 ms |
9100 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
2 ms |
4436 KB |
Output is correct |
29 |
Correct |
2 ms |
4436 KB |
Output is correct |
30 |
Correct |
2 ms |
4436 KB |
Output is correct |
31 |
Correct |
3 ms |
4436 KB |
Output is correct |
32 |
Correct |
2 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 |
4 ms |
4436 KB |
Output is correct |
37 |
Correct |
2 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 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 |
2 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
2 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
4 ms |
4436 KB |
Output is correct |
46 |
Correct |
3 ms |
4436 KB |
Output is correct |
47 |
Correct |
291 ms |
7980 KB |
Output is correct |
48 |
Correct |
245 ms |
9060 KB |
Output is correct |
49 |
Correct |
248 ms |
9060 KB |
Output is correct |
50 |
Correct |
235 ms |
7060 KB |
Output is correct |
51 |
Correct |
240 ms |
6776 KB |
Output is correct |
52 |
Correct |
287 ms |
6716 KB |
Output is correct |
53 |
Correct |
284 ms |
9416 KB |
Output is correct |
54 |
Correct |
12 ms |
4436 KB |
Output is correct |
55 |
Correct |
7 ms |
4456 KB |
Output is correct |
56 |
Correct |
11 ms |
4468 KB |
Output is correct |
57 |
Correct |
7 ms |
4436 KB |
Output is correct |
58 |
Correct |
14 ms |
4564 KB |
Output is correct |
59 |
Correct |
448 ms |
7096 KB |
Output is correct |
60 |
Correct |
464 ms |
6356 KB |
Output is correct |
61 |
Correct |
480 ms |
6476 KB |
Output is correct |
62 |
Correct |
483 ms |
6628 KB |
Output is correct |
63 |
Correct |
453 ms |
7980 KB |
Output is correct |
64 |
Correct |
651 ms |
9228 KB |
Output is correct |
65 |
Correct |
653 ms |
9292 KB |
Output is correct |
66 |
Correct |
576 ms |
7088 KB |
Output is correct |
67 |
Correct |
658 ms |
7224 KB |
Output is correct |
68 |
Correct |
682 ms |
6884 KB |
Output is correct |
69 |
Correct |
702 ms |
9504 KB |
Output is correct |
70 |
Correct |
115 ms |
4572 KB |
Output is correct |
71 |
Correct |
48 ms |
4436 KB |
Output is correct |
72 |
Correct |
79 ms |
4464 KB |
Output is correct |
73 |
Correct |
48 ms |
4436 KB |
Output is correct |
74 |
Correct |
90 ms |
4516 KB |
Output is correct |
75 |
Correct |
240 ms |
4528 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
4436 KB |
Output is correct |
2 |
Correct |
3 ms |
4436 KB |
Output is correct |
3 |
Correct |
3 ms |
4436 KB |
Output is correct |
4 |
Correct |
3 ms |
4436 KB |
Output is correct |
5 |
Correct |
1031 ms |
6612 KB |
Output is correct |
6 |
Correct |
1230 ms |
4556 KB |
Output is correct |
7 |
Correct |
417 ms |
4564 KB |
Output is correct |
8 |
Correct |
696 ms |
4436 KB |
Output is correct |
9 |
Correct |
1369 ms |
4592 KB |
Output is correct |
10 |
Correct |
396 ms |
4468 KB |
Output is correct |
11 |
Correct |
680 ms |
4452 KB |
Output is correct |
12 |
Correct |
1344 ms |
4624 KB |
Output is correct |
13 |
Correct |
2 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4420 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 |
3 ms |
4436 KB |
Output is correct |
21 |
Correct |
3 ms |
4356 KB |
Output is correct |
22 |
Correct |
4 ms |
4436 KB |
Output is correct |
23 |
Correct |
2 ms |
4436 KB |
Output is correct |
24 |
Correct |
3 ms |
4436 KB |
Output is correct |
25 |
Correct |
3 ms |
4436 KB |
Output is correct |
26 |
Correct |
3 ms |
4444 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 |
4 ms |
4436 KB |
Output is correct |
31 |
Correct |
5 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 |
3 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 |
4 ms |
4436 KB |
Output is correct |
41 |
Correct |
11 ms |
4436 KB |
Output is correct |
42 |
Correct |
7 ms |
4436 KB |
Output is correct |
43 |
Correct |
10 ms |
4436 KB |
Output is correct |
44 |
Correct |
7 ms |
4436 KB |
Output is correct |
45 |
Correct |
10 ms |
4468 KB |
Output is correct |
46 |
Correct |
102 ms |
4580 KB |
Output is correct |
47 |
Correct |
45 ms |
4484 KB |
Output is correct |
48 |
Correct |
84 ms |
4452 KB |
Output is correct |
49 |
Correct |
44 ms |
4452 KB |
Output is correct |
50 |
Correct |
94 ms |
4500 KB |
Output is correct |
51 |
Correct |
1618 ms |
4448 KB |
Output is correct |
52 |
Correct |
2979 ms |
8556 KB |
Output is correct |
53 |
Correct |
2471 ms |
6172 KB |
Output is correct |
54 |
Correct |
2363 ms |
5380 KB |
Output is correct |
55 |
Correct |
4 ms |
4436 KB |
Output is correct |
56 |
Correct |
252 ms |
4528 KB |
Output is correct |
57 |
Correct |
2 ms |
4436 KB |
Output is correct |
58 |
Correct |
69 ms |
6704 KB |
Output is correct |
59 |
Correct |
71 ms |
6732 KB |
Output is correct |
60 |
Correct |
59 ms |
6748 KB |
Output is correct |
61 |
Correct |
72 ms |
6764 KB |
Output is correct |
62 |
Correct |
61 ms |
7884 KB |
Output is correct |
63 |
Correct |
73 ms |
9108 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 |
2 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 |
3 ms |
4436 KB |
Output is correct |
72 |
Correct |
3 ms |
4436 KB |
Output is correct |
73 |
Correct |
4 ms |
4436 KB |
Output is correct |
74 |
Correct |
2 ms |
4436 KB |
Output is correct |
75 |
Correct |
2 ms |
4436 KB |
Output is correct |
76 |
Correct |
191 ms |
7968 KB |
Output is correct |
77 |
Correct |
166 ms |
9056 KB |
Output is correct |
78 |
Correct |
170 ms |
9048 KB |
Output is correct |
79 |
Correct |
160 ms |
7092 KB |
Output is correct |
80 |
Correct |
158 ms |
6728 KB |
Output is correct |
81 |
Correct |
185 ms |
6760 KB |
Output is correct |
82 |
Correct |
198 ms |
9100 KB |
Output is correct |
83 |
Correct |
3 ms |
4436 KB |
Output is correct |
84 |
Correct |
2 ms |
4436 KB |
Output is correct |
85 |
Correct |
2 ms |
4436 KB |
Output is correct |
86 |
Correct |
2 ms |
4436 KB |
Output is correct |
87 |
Correct |
3 ms |
4436 KB |
Output is correct |
88 |
Correct |
2 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 |
4 ms |
4436 KB |
Output is correct |
93 |
Correct |
2 ms |
4436 KB |
Output is correct |
94 |
Correct |
3 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 |
2 ms |
4436 KB |
Output is correct |
98 |
Correct |
3 ms |
4436 KB |
Output is correct |
99 |
Correct |
2 ms |
4436 KB |
Output is correct |
100 |
Correct |
3 ms |
4436 KB |
Output is correct |
101 |
Correct |
4 ms |
4436 KB |
Output is correct |
102 |
Correct |
3 ms |
4436 KB |
Output is correct |
103 |
Correct |
291 ms |
7980 KB |
Output is correct |
104 |
Correct |
245 ms |
9060 KB |
Output is correct |
105 |
Correct |
248 ms |
9060 KB |
Output is correct |
106 |
Correct |
235 ms |
7060 KB |
Output is correct |
107 |
Correct |
240 ms |
6776 KB |
Output is correct |
108 |
Correct |
287 ms |
6716 KB |
Output is correct |
109 |
Correct |
284 ms |
9416 KB |
Output is correct |
110 |
Correct |
12 ms |
4436 KB |
Output is correct |
111 |
Correct |
7 ms |
4456 KB |
Output is correct |
112 |
Correct |
11 ms |
4468 KB |
Output is correct |
113 |
Correct |
7 ms |
4436 KB |
Output is correct |
114 |
Correct |
14 ms |
4564 KB |
Output is correct |
115 |
Correct |
448 ms |
7096 KB |
Output is correct |
116 |
Correct |
464 ms |
6356 KB |
Output is correct |
117 |
Correct |
480 ms |
6476 KB |
Output is correct |
118 |
Correct |
483 ms |
6628 KB |
Output is correct |
119 |
Correct |
453 ms |
7980 KB |
Output is correct |
120 |
Correct |
651 ms |
9228 KB |
Output is correct |
121 |
Correct |
653 ms |
9292 KB |
Output is correct |
122 |
Correct |
576 ms |
7088 KB |
Output is correct |
123 |
Correct |
658 ms |
7224 KB |
Output is correct |
124 |
Correct |
682 ms |
6884 KB |
Output is correct |
125 |
Correct |
702 ms |
9504 KB |
Output is correct |
126 |
Correct |
115 ms |
4572 KB |
Output is correct |
127 |
Correct |
48 ms |
4436 KB |
Output is correct |
128 |
Correct |
79 ms |
4464 KB |
Output is correct |
129 |
Correct |
48 ms |
4436 KB |
Output is correct |
130 |
Correct |
90 ms |
4516 KB |
Output is correct |
131 |
Correct |
240 ms |
4528 KB |
Output is correct |
132 |
Execution timed out |
4067 ms |
12608 KB |
Time limit exceeded |
133 |
Halted |
0 ms |
0 KB |
- |