# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
919971 |
2024-02-02T00:15:13 Z |
OAleksa |
Council (JOI23_council) |
C++14 |
|
4000 ms |
36392 KB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define f first
#define s second
const int N = 3e5 + 69;
const int M = 21;
int a[N], cnt[M], n, m;
int t[M];
pair<pair<int, int>, pair<int, int>> bst[1030][1030];
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt = 1;
//cin >> tt;
while (tt--) {
cin >> n >> m;
for (int i = 1;i <= n;i++) {
for (int j = 0;j < m;j++) {
int x;
cin >> x;
if (x > 0) {
a[i] += (1 << j);
cnt[j]++;
}
}
}
int k = (m + 1) / 2;
for (int i = 0;i < (1 << (m - k));i++) {
for (int j = 0;j < (1 << k);j++)
bst[i][j] = {{(1 << m) - 1, m + 1}, {(1 << m) - 1, m + 1}};
}
for (int i = 0;i < (1 << k);i++) {
for (int j = 1;j <= n;j++) {
int x = (i << (m - k));
int pr = (a[j] & ((1 << (m - k)) - 1));
int k = __builtin_popcount(a[j] & x);
if (k <= bst[pr][i].f.s) {
bst[pr][i].s = bst[pr][i].f;
bst[pr][i].f = {a[j], k};
}
else if (k <= bst[pr][i].s.s)
bst[pr][i].s = {a[j], k};
}
}
//sufix duzine k, prefix duzine m - k
for (int i = 1;i <= n;i++) {
int b = 0, ans = 0, c = 0;
for (int j = 0;j < m;j++) {
t[j] = cnt[j];
if (a[i] & (1 << j))
t[j]--;
if (t[j] == n / 2)
b += (1 << j), c++;
else if (t[j] > n / 2)
ans++;
}
int suf = (b >> (m - k)), s = c;
for (int j = 0;j < (1 << (m - k));j++) {
int g = __builtin_popcount(b & j);
if (a[i] != bst[j][suf].f.f)
s = min(s, bst[j][suf].f.s + g);
else
s = min(s, bst[j][suf].s.s + g);
}
ans += c - s;
cout << ans << '\n';
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
1 ms |
4440 KB |
Output is correct |
3 |
Correct |
1 ms |
2392 KB |
Output is correct |
4 |
Correct |
1 ms |
2392 KB |
Output is correct |
5 |
Correct |
10 ms |
35416 KB |
Output is correct |
6 |
Correct |
8 ms |
35416 KB |
Output is correct |
7 |
Correct |
6 ms |
35420 KB |
Output is correct |
8 |
Correct |
7 ms |
35420 KB |
Output is correct |
9 |
Correct |
10 ms |
35416 KB |
Output is correct |
10 |
Correct |
7 ms |
35416 KB |
Output is correct |
11 |
Correct |
7 ms |
35420 KB |
Output is correct |
12 |
Correct |
17 ms |
35416 KB |
Output is correct |
13 |
Correct |
1 ms |
2392 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
0 ms |
2392 KB |
Output is correct |
18 |
Correct |
0 ms |
2392 KB |
Output is correct |
19 |
Correct |
1 ms |
2392 KB |
Output is correct |
20 |
Correct |
1 ms |
2392 KB |
Output is correct |
21 |
Correct |
1 ms |
2392 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
1 ms |
2392 KB |
Output is correct |
24 |
Correct |
1 ms |
2396 KB |
Output is correct |
25 |
Correct |
1 ms |
2396 KB |
Output is correct |
26 |
Correct |
1 ms |
4440 KB |
Output is correct |
27 |
Correct |
1 ms |
4440 KB |
Output is correct |
28 |
Correct |
1 ms |
4440 KB |
Output is correct |
29 |
Correct |
1 ms |
4440 KB |
Output is correct |
30 |
Correct |
1 ms |
4440 KB |
Output is correct |
31 |
Correct |
1 ms |
4440 KB |
Output is correct |
32 |
Correct |
1 ms |
2392 KB |
Output is correct |
33 |
Correct |
0 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2392 KB |
Output is correct |
35 |
Correct |
1 ms |
4444 KB |
Output is correct |
36 |
Correct |
1 ms |
4440 KB |
Output is correct |
37 |
Correct |
1 ms |
4444 KB |
Output is correct |
38 |
Correct |
1 ms |
4440 KB |
Output is correct |
39 |
Correct |
1 ms |
4440 KB |
Output is correct |
40 |
Correct |
1 ms |
4440 KB |
Output is correct |
41 |
Correct |
1 ms |
6488 KB |
Output is correct |
42 |
Correct |
1 ms |
6488 KB |
Output is correct |
43 |
Correct |
2 ms |
6744 KB |
Output is correct |
44 |
Correct |
1 ms |
6492 KB |
Output is correct |
45 |
Correct |
1 ms |
6492 KB |
Output is correct |
46 |
Correct |
2 ms |
10588 KB |
Output is correct |
47 |
Correct |
2 ms |
10840 KB |
Output is correct |
48 |
Correct |
2 ms |
10584 KB |
Output is correct |
49 |
Correct |
2 ms |
10588 KB |
Output is correct |
50 |
Correct |
2 ms |
10588 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
1 ms |
4440 KB |
Output is correct |
3 |
Correct |
1 ms |
2392 KB |
Output is correct |
4 |
Correct |
1 ms |
2392 KB |
Output is correct |
5 |
Correct |
10 ms |
35416 KB |
Output is correct |
6 |
Correct |
8 ms |
35416 KB |
Output is correct |
7 |
Correct |
6 ms |
35420 KB |
Output is correct |
8 |
Correct |
7 ms |
35420 KB |
Output is correct |
9 |
Correct |
10 ms |
35416 KB |
Output is correct |
10 |
Correct |
7 ms |
35416 KB |
Output is correct |
11 |
Correct |
7 ms |
35420 KB |
Output is correct |
12 |
Correct |
17 ms |
35416 KB |
Output is correct |
13 |
Correct |
1 ms |
2392 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
0 ms |
2392 KB |
Output is correct |
18 |
Correct |
0 ms |
2392 KB |
Output is correct |
19 |
Correct |
1 ms |
2392 KB |
Output is correct |
20 |
Correct |
1 ms |
2392 KB |
Output is correct |
21 |
Correct |
1 ms |
2392 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
1 ms |
2392 KB |
Output is correct |
24 |
Correct |
1 ms |
2396 KB |
Output is correct |
25 |
Correct |
1 ms |
2396 KB |
Output is correct |
26 |
Correct |
1 ms |
4440 KB |
Output is correct |
27 |
Correct |
1 ms |
4440 KB |
Output is correct |
28 |
Correct |
1 ms |
4440 KB |
Output is correct |
29 |
Correct |
1 ms |
4440 KB |
Output is correct |
30 |
Correct |
1 ms |
4440 KB |
Output is correct |
31 |
Correct |
1 ms |
4440 KB |
Output is correct |
32 |
Correct |
1 ms |
2392 KB |
Output is correct |
33 |
Correct |
0 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2392 KB |
Output is correct |
35 |
Correct |
1 ms |
4444 KB |
Output is correct |
36 |
Correct |
1 ms |
4440 KB |
Output is correct |
37 |
Correct |
1 ms |
4444 KB |
Output is correct |
38 |
Correct |
1 ms |
4440 KB |
Output is correct |
39 |
Correct |
1 ms |
4440 KB |
Output is correct |
40 |
Correct |
1 ms |
4440 KB |
Output is correct |
41 |
Correct |
1 ms |
6488 KB |
Output is correct |
42 |
Correct |
1 ms |
6488 KB |
Output is correct |
43 |
Correct |
2 ms |
6744 KB |
Output is correct |
44 |
Correct |
1 ms |
6492 KB |
Output is correct |
45 |
Correct |
1 ms |
6492 KB |
Output is correct |
46 |
Correct |
2 ms |
10588 KB |
Output is correct |
47 |
Correct |
2 ms |
10840 KB |
Output is correct |
48 |
Correct |
2 ms |
10584 KB |
Output is correct |
49 |
Correct |
2 ms |
10588 KB |
Output is correct |
50 |
Correct |
2 ms |
10588 KB |
Output is correct |
51 |
Correct |
28 ms |
35416 KB |
Output is correct |
52 |
Correct |
29 ms |
35416 KB |
Output is correct |
53 |
Correct |
45 ms |
35420 KB |
Output is correct |
54 |
Correct |
127 ms |
35416 KB |
Output is correct |
55 |
Correct |
1 ms |
2392 KB |
Output is correct |
56 |
Correct |
20 ms |
10848 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
3600 KB |
Output is correct |
3 |
Correct |
44 ms |
3024 KB |
Output is correct |
4 |
Correct |
33 ms |
3408 KB |
Output is correct |
5 |
Correct |
51 ms |
3408 KB |
Output is correct |
6 |
Correct |
36 ms |
3408 KB |
Output is correct |
7 |
Correct |
52 ms |
3412 KB |
Output is correct |
8 |
Correct |
1 ms |
2392 KB |
Output is correct |
9 |
Correct |
1 ms |
2392 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2392 KB |
Output is correct |
12 |
Correct |
1 ms |
2392 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2396 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2392 KB |
Output is correct |
17 |
Correct |
1 ms |
2392 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
3600 KB |
Output is correct |
3 |
Correct |
44 ms |
3024 KB |
Output is correct |
4 |
Correct |
33 ms |
3408 KB |
Output is correct |
5 |
Correct |
51 ms |
3408 KB |
Output is correct |
6 |
Correct |
36 ms |
3408 KB |
Output is correct |
7 |
Correct |
52 ms |
3412 KB |
Output is correct |
8 |
Correct |
1 ms |
2392 KB |
Output is correct |
9 |
Correct |
1 ms |
2392 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2392 KB |
Output is correct |
12 |
Correct |
1 ms |
2392 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2396 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2392 KB |
Output is correct |
17 |
Correct |
1 ms |
2392 KB |
Output is correct |
18 |
Correct |
1 ms |
2392 KB |
Output is correct |
19 |
Correct |
1 ms |
2392 KB |
Output is correct |
20 |
Correct |
254 ms |
5456 KB |
Output is correct |
21 |
Correct |
221 ms |
5456 KB |
Output is correct |
22 |
Correct |
219 ms |
5580 KB |
Output is correct |
23 |
Correct |
188 ms |
5972 KB |
Output is correct |
24 |
Correct |
187 ms |
5060 KB |
Output is correct |
25 |
Correct |
235 ms |
5748 KB |
Output is correct |
26 |
Correct |
234 ms |
5568 KB |
Output is correct |
27 |
Correct |
1 ms |
4440 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2396 KB |
Output is correct |
30 |
Correct |
1 ms |
2648 KB |
Output is correct |
31 |
Correct |
2 ms |
4440 KB |
Output is correct |
32 |
Correct |
1 ms |
4440 KB |
Output is correct |
33 |
Correct |
1 ms |
4444 KB |
Output is correct |
34 |
Correct |
1 ms |
4440 KB |
Output is correct |
35 |
Correct |
1 ms |
4440 KB |
Output is correct |
36 |
Correct |
1 ms |
4440 KB |
Output is correct |
37 |
Correct |
1 ms |
2392 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2392 KB |
Output is correct |
40 |
Correct |
1 ms |
4440 KB |
Output is correct |
41 |
Correct |
1 ms |
4440 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
1 ms |
4440 KB |
Output is correct |
44 |
Correct |
1 ms |
4444 KB |
Output is correct |
45 |
Correct |
1 ms |
4440 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
3600 KB |
Output is correct |
3 |
Correct |
44 ms |
3024 KB |
Output is correct |
4 |
Correct |
33 ms |
3408 KB |
Output is correct |
5 |
Correct |
51 ms |
3408 KB |
Output is correct |
6 |
Correct |
36 ms |
3408 KB |
Output is correct |
7 |
Correct |
52 ms |
3412 KB |
Output is correct |
8 |
Correct |
1 ms |
2392 KB |
Output is correct |
9 |
Correct |
1 ms |
2392 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2392 KB |
Output is correct |
12 |
Correct |
1 ms |
2392 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2396 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2392 KB |
Output is correct |
17 |
Correct |
1 ms |
2392 KB |
Output is correct |
18 |
Correct |
1 ms |
2392 KB |
Output is correct |
19 |
Correct |
1 ms |
2392 KB |
Output is correct |
20 |
Correct |
254 ms |
5456 KB |
Output is correct |
21 |
Correct |
221 ms |
5456 KB |
Output is correct |
22 |
Correct |
219 ms |
5580 KB |
Output is correct |
23 |
Correct |
188 ms |
5972 KB |
Output is correct |
24 |
Correct |
187 ms |
5060 KB |
Output is correct |
25 |
Correct |
235 ms |
5748 KB |
Output is correct |
26 |
Correct |
234 ms |
5568 KB |
Output is correct |
27 |
Correct |
1 ms |
4440 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2396 KB |
Output is correct |
30 |
Correct |
1 ms |
2648 KB |
Output is correct |
31 |
Correct |
2 ms |
4440 KB |
Output is correct |
32 |
Correct |
1 ms |
4440 KB |
Output is correct |
33 |
Correct |
1 ms |
4444 KB |
Output is correct |
34 |
Correct |
1 ms |
4440 KB |
Output is correct |
35 |
Correct |
1 ms |
4440 KB |
Output is correct |
36 |
Correct |
1 ms |
4440 KB |
Output is correct |
37 |
Correct |
1 ms |
2392 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2392 KB |
Output is correct |
40 |
Correct |
1 ms |
4440 KB |
Output is correct |
41 |
Correct |
1 ms |
4440 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
1 ms |
4440 KB |
Output is correct |
44 |
Correct |
1 ms |
4444 KB |
Output is correct |
45 |
Correct |
1 ms |
4440 KB |
Output is correct |
46 |
Correct |
1 ms |
4440 KB |
Output is correct |
47 |
Correct |
538 ms |
7648 KB |
Output is correct |
48 |
Correct |
467 ms |
5564 KB |
Output is correct |
49 |
Correct |
461 ms |
5568 KB |
Output is correct |
50 |
Correct |
413 ms |
7900 KB |
Output is correct |
51 |
Correct |
412 ms |
7248 KB |
Output is correct |
52 |
Correct |
493 ms |
7652 KB |
Output is correct |
53 |
Correct |
499 ms |
8272 KB |
Output is correct |
54 |
Correct |
1 ms |
6488 KB |
Output is correct |
55 |
Correct |
1 ms |
6488 KB |
Output is correct |
56 |
Correct |
1 ms |
6488 KB |
Output is correct |
57 |
Correct |
1 ms |
6488 KB |
Output is correct |
58 |
Correct |
1 ms |
6488 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
3600 KB |
Output is correct |
3 |
Correct |
44 ms |
3024 KB |
Output is correct |
4 |
Correct |
33 ms |
3408 KB |
Output is correct |
5 |
Correct |
51 ms |
3408 KB |
Output is correct |
6 |
Correct |
36 ms |
3408 KB |
Output is correct |
7 |
Correct |
52 ms |
3412 KB |
Output is correct |
8 |
Correct |
1 ms |
2392 KB |
Output is correct |
9 |
Correct |
1 ms |
2392 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2392 KB |
Output is correct |
12 |
Correct |
1 ms |
2392 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2396 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2392 KB |
Output is correct |
17 |
Correct |
1 ms |
2392 KB |
Output is correct |
18 |
Correct |
1 ms |
2392 KB |
Output is correct |
19 |
Correct |
1 ms |
2392 KB |
Output is correct |
20 |
Correct |
254 ms |
5456 KB |
Output is correct |
21 |
Correct |
221 ms |
5456 KB |
Output is correct |
22 |
Correct |
219 ms |
5580 KB |
Output is correct |
23 |
Correct |
188 ms |
5972 KB |
Output is correct |
24 |
Correct |
187 ms |
5060 KB |
Output is correct |
25 |
Correct |
235 ms |
5748 KB |
Output is correct |
26 |
Correct |
234 ms |
5568 KB |
Output is correct |
27 |
Correct |
1 ms |
4440 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2396 KB |
Output is correct |
30 |
Correct |
1 ms |
2648 KB |
Output is correct |
31 |
Correct |
2 ms |
4440 KB |
Output is correct |
32 |
Correct |
1 ms |
4440 KB |
Output is correct |
33 |
Correct |
1 ms |
4444 KB |
Output is correct |
34 |
Correct |
1 ms |
4440 KB |
Output is correct |
35 |
Correct |
1 ms |
4440 KB |
Output is correct |
36 |
Correct |
1 ms |
4440 KB |
Output is correct |
37 |
Correct |
1 ms |
2392 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2392 KB |
Output is correct |
40 |
Correct |
1 ms |
4440 KB |
Output is correct |
41 |
Correct |
1 ms |
4440 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
1 ms |
4440 KB |
Output is correct |
44 |
Correct |
1 ms |
4444 KB |
Output is correct |
45 |
Correct |
1 ms |
4440 KB |
Output is correct |
46 |
Correct |
1 ms |
4440 KB |
Output is correct |
47 |
Correct |
538 ms |
7648 KB |
Output is correct |
48 |
Correct |
467 ms |
5564 KB |
Output is correct |
49 |
Correct |
461 ms |
5568 KB |
Output is correct |
50 |
Correct |
413 ms |
7900 KB |
Output is correct |
51 |
Correct |
412 ms |
7248 KB |
Output is correct |
52 |
Correct |
493 ms |
7652 KB |
Output is correct |
53 |
Correct |
499 ms |
8272 KB |
Output is correct |
54 |
Correct |
1 ms |
6488 KB |
Output is correct |
55 |
Correct |
1 ms |
6488 KB |
Output is correct |
56 |
Correct |
1 ms |
6488 KB |
Output is correct |
57 |
Correct |
1 ms |
6488 KB |
Output is correct |
58 |
Correct |
1 ms |
6488 KB |
Output is correct |
59 |
Correct |
796 ms |
11980 KB |
Output is correct |
60 |
Correct |
464 ms |
11088 KB |
Output is correct |
61 |
Correct |
485 ms |
11592 KB |
Output is correct |
62 |
Correct |
511 ms |
11088 KB |
Output is correct |
63 |
Correct |
883 ms |
12196 KB |
Output is correct |
64 |
Correct |
1253 ms |
11708 KB |
Output is correct |
65 |
Correct |
1243 ms |
12300 KB |
Output is correct |
66 |
Correct |
934 ms |
12084 KB |
Output is correct |
67 |
Correct |
945 ms |
11324 KB |
Output is correct |
68 |
Correct |
1106 ms |
11856 KB |
Output is correct |
69 |
Correct |
1185 ms |
12084 KB |
Output is correct |
70 |
Correct |
2 ms |
10584 KB |
Output is correct |
71 |
Correct |
2 ms |
10584 KB |
Output is correct |
72 |
Correct |
2 ms |
10584 KB |
Output is correct |
73 |
Correct |
2 ms |
10588 KB |
Output is correct |
74 |
Correct |
2 ms |
10584 KB |
Output is correct |
75 |
Correct |
20 ms |
10588 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
1 ms |
4440 KB |
Output is correct |
3 |
Correct |
1 ms |
2392 KB |
Output is correct |
4 |
Correct |
1 ms |
2392 KB |
Output is correct |
5 |
Correct |
10 ms |
35416 KB |
Output is correct |
6 |
Correct |
8 ms |
35416 KB |
Output is correct |
7 |
Correct |
6 ms |
35420 KB |
Output is correct |
8 |
Correct |
7 ms |
35420 KB |
Output is correct |
9 |
Correct |
10 ms |
35416 KB |
Output is correct |
10 |
Correct |
7 ms |
35416 KB |
Output is correct |
11 |
Correct |
7 ms |
35420 KB |
Output is correct |
12 |
Correct |
17 ms |
35416 KB |
Output is correct |
13 |
Correct |
1 ms |
2392 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
0 ms |
2392 KB |
Output is correct |
18 |
Correct |
0 ms |
2392 KB |
Output is correct |
19 |
Correct |
1 ms |
2392 KB |
Output is correct |
20 |
Correct |
1 ms |
2392 KB |
Output is correct |
21 |
Correct |
1 ms |
2392 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
1 ms |
2392 KB |
Output is correct |
24 |
Correct |
1 ms |
2396 KB |
Output is correct |
25 |
Correct |
1 ms |
2396 KB |
Output is correct |
26 |
Correct |
1 ms |
4440 KB |
Output is correct |
27 |
Correct |
1 ms |
4440 KB |
Output is correct |
28 |
Correct |
1 ms |
4440 KB |
Output is correct |
29 |
Correct |
1 ms |
4440 KB |
Output is correct |
30 |
Correct |
1 ms |
4440 KB |
Output is correct |
31 |
Correct |
1 ms |
4440 KB |
Output is correct |
32 |
Correct |
1 ms |
2392 KB |
Output is correct |
33 |
Correct |
0 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2392 KB |
Output is correct |
35 |
Correct |
1 ms |
4444 KB |
Output is correct |
36 |
Correct |
1 ms |
4440 KB |
Output is correct |
37 |
Correct |
1 ms |
4444 KB |
Output is correct |
38 |
Correct |
1 ms |
4440 KB |
Output is correct |
39 |
Correct |
1 ms |
4440 KB |
Output is correct |
40 |
Correct |
1 ms |
4440 KB |
Output is correct |
41 |
Correct |
1 ms |
6488 KB |
Output is correct |
42 |
Correct |
1 ms |
6488 KB |
Output is correct |
43 |
Correct |
2 ms |
6744 KB |
Output is correct |
44 |
Correct |
1 ms |
6492 KB |
Output is correct |
45 |
Correct |
1 ms |
6492 KB |
Output is correct |
46 |
Correct |
2 ms |
10588 KB |
Output is correct |
47 |
Correct |
2 ms |
10840 KB |
Output is correct |
48 |
Correct |
2 ms |
10584 KB |
Output is correct |
49 |
Correct |
2 ms |
10588 KB |
Output is correct |
50 |
Correct |
2 ms |
10588 KB |
Output is correct |
51 |
Correct |
28 ms |
35416 KB |
Output is correct |
52 |
Correct |
29 ms |
35416 KB |
Output is correct |
53 |
Correct |
45 ms |
35420 KB |
Output is correct |
54 |
Correct |
127 ms |
35416 KB |
Output is correct |
55 |
Correct |
1 ms |
2392 KB |
Output is correct |
56 |
Correct |
20 ms |
10848 KB |
Output is correct |
57 |
Correct |
1 ms |
2392 KB |
Output is correct |
58 |
Correct |
44 ms |
3600 KB |
Output is correct |
59 |
Correct |
44 ms |
3024 KB |
Output is correct |
60 |
Correct |
33 ms |
3408 KB |
Output is correct |
61 |
Correct |
51 ms |
3408 KB |
Output is correct |
62 |
Correct |
36 ms |
3408 KB |
Output is correct |
63 |
Correct |
52 ms |
3412 KB |
Output is correct |
64 |
Correct |
1 ms |
2392 KB |
Output is correct |
65 |
Correct |
1 ms |
2392 KB |
Output is correct |
66 |
Correct |
1 ms |
2396 KB |
Output is correct |
67 |
Correct |
1 ms |
2392 KB |
Output is correct |
68 |
Correct |
1 ms |
2392 KB |
Output is correct |
69 |
Correct |
1 ms |
2396 KB |
Output is correct |
70 |
Correct |
1 ms |
2396 KB |
Output is correct |
71 |
Correct |
1 ms |
2396 KB |
Output is correct |
72 |
Correct |
1 ms |
2392 KB |
Output is correct |
73 |
Correct |
1 ms |
2392 KB |
Output is correct |
74 |
Correct |
1 ms |
2392 KB |
Output is correct |
75 |
Correct |
1 ms |
2392 KB |
Output is correct |
76 |
Correct |
254 ms |
5456 KB |
Output is correct |
77 |
Correct |
221 ms |
5456 KB |
Output is correct |
78 |
Correct |
219 ms |
5580 KB |
Output is correct |
79 |
Correct |
188 ms |
5972 KB |
Output is correct |
80 |
Correct |
187 ms |
5060 KB |
Output is correct |
81 |
Correct |
235 ms |
5748 KB |
Output is correct |
82 |
Correct |
234 ms |
5568 KB |
Output is correct |
83 |
Correct |
1 ms |
4440 KB |
Output is correct |
84 |
Correct |
1 ms |
2396 KB |
Output is correct |
85 |
Correct |
1 ms |
2396 KB |
Output is correct |
86 |
Correct |
1 ms |
2648 KB |
Output is correct |
87 |
Correct |
2 ms |
4440 KB |
Output is correct |
88 |
Correct |
1 ms |
4440 KB |
Output is correct |
89 |
Correct |
1 ms |
4444 KB |
Output is correct |
90 |
Correct |
1 ms |
4440 KB |
Output is correct |
91 |
Correct |
1 ms |
4440 KB |
Output is correct |
92 |
Correct |
1 ms |
4440 KB |
Output is correct |
93 |
Correct |
1 ms |
2392 KB |
Output is correct |
94 |
Correct |
1 ms |
2396 KB |
Output is correct |
95 |
Correct |
1 ms |
2392 KB |
Output is correct |
96 |
Correct |
1 ms |
4440 KB |
Output is correct |
97 |
Correct |
1 ms |
4440 KB |
Output is correct |
98 |
Correct |
1 ms |
4444 KB |
Output is correct |
99 |
Correct |
1 ms |
4440 KB |
Output is correct |
100 |
Correct |
1 ms |
4444 KB |
Output is correct |
101 |
Correct |
1 ms |
4440 KB |
Output is correct |
102 |
Correct |
1 ms |
4440 KB |
Output is correct |
103 |
Correct |
538 ms |
7648 KB |
Output is correct |
104 |
Correct |
467 ms |
5564 KB |
Output is correct |
105 |
Correct |
461 ms |
5568 KB |
Output is correct |
106 |
Correct |
413 ms |
7900 KB |
Output is correct |
107 |
Correct |
412 ms |
7248 KB |
Output is correct |
108 |
Correct |
493 ms |
7652 KB |
Output is correct |
109 |
Correct |
499 ms |
8272 KB |
Output is correct |
110 |
Correct |
1 ms |
6488 KB |
Output is correct |
111 |
Correct |
1 ms |
6488 KB |
Output is correct |
112 |
Correct |
1 ms |
6488 KB |
Output is correct |
113 |
Correct |
1 ms |
6488 KB |
Output is correct |
114 |
Correct |
1 ms |
6488 KB |
Output is correct |
115 |
Correct |
796 ms |
11980 KB |
Output is correct |
116 |
Correct |
464 ms |
11088 KB |
Output is correct |
117 |
Correct |
485 ms |
11592 KB |
Output is correct |
118 |
Correct |
511 ms |
11088 KB |
Output is correct |
119 |
Correct |
883 ms |
12196 KB |
Output is correct |
120 |
Correct |
1253 ms |
11708 KB |
Output is correct |
121 |
Correct |
1243 ms |
12300 KB |
Output is correct |
122 |
Correct |
934 ms |
12084 KB |
Output is correct |
123 |
Correct |
945 ms |
11324 KB |
Output is correct |
124 |
Correct |
1106 ms |
11856 KB |
Output is correct |
125 |
Correct |
1185 ms |
12084 KB |
Output is correct |
126 |
Correct |
2 ms |
10584 KB |
Output is correct |
127 |
Correct |
2 ms |
10584 KB |
Output is correct |
128 |
Correct |
2 ms |
10584 KB |
Output is correct |
129 |
Correct |
2 ms |
10588 KB |
Output is correct |
130 |
Correct |
2 ms |
10584 KB |
Output is correct |
131 |
Correct |
20 ms |
10588 KB |
Output is correct |
132 |
Execution timed out |
4027 ms |
36392 KB |
Time limit exceeded |
133 |
Halted |
0 ms |
0 KB |
- |