# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1095473 |
2024-10-02T10:54:31 Z |
_8_8_ |
Council (JOI23_council) |
C++17 |
|
511 ms |
55376 KB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 3e5 + 12, MOD = (int)1e9 + 7, M = (1 << 20) + 12;
int n, m, c[N], a[N][21], s[N], f[M][2], who[M][2];
void u(int mask, int val = -1, int from = -1) {
if(val == -1) {
val = __builtin_popcount(mask);
}
if(from == who[mask][0]) {
f[mask][0] = max(f[mask][0], val);
return;
}
if(f[mask][0] < val) {
f[mask][1] = f[mask][0];
who[mask][1] = who[mask][0];
f[mask][0] = val;
who[mask][0] = from;
} else {
if(val > f[mask][1]) {
f[mask][1] = val;
who[mask][1] = from;
}
}
}
void test() {
cin >> n >> m;
for(int i = 1; i <= n; i++) {
for(int j = 0; j < m; j++) {
cin >> a[i][j];
if(a[i][j]) {
c[j]++;
} else {
s[i] += (1 << j);
}
}
u(s[i], -1, i);
}
for(int i = 0; i < m; i++) {
for(int j = 0; j < (1 << m); j++) {
if(!((j >> i) & 1)) {
int k = (j ^ (1 << i));
if(f[k][0]) {
u(j, -1, who[k][0]);
}
if(f[k][1]) {
u(j, -1, who[k][1]);
}
}
}
}
for(int i = 0; i < m; i++) {
for(int j = 0; j < (1 << m); j++) {
if(((j >> i) & 1)) {
int k = (j ^ (1 << i));
u(j, f[k][0], who[k][0]);
u(j, f[k][1], who[k][1]);
}
}
}
int val = n / 2;
for(int i = 1; i <= n; i++) {
int t = 0, cnt = 0;
for(int j = 0; j < m; j++) {
int k = c[j] - a[i][j];
if(k == val) {
t += (1 << j);
} else if(k > val) {
cnt++;
}
}
// int mx = 0;
// for(int j = 1; j <= n; j++) {
// if(j == i) continue;
// mx = max(mx, __builtin_popcount(s[j] & t));
// }
int ff = f[t][0];
if(who[t][0] == i) {
ff = f[t][1];
}
cout << ff + cnt << '\n';
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int t = 1;
// cin >> t;
while(t--)
test();
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
80 ms |
16640 KB |
Output is correct |
6 |
Correct |
69 ms |
8536 KB |
Output is correct |
7 |
Correct |
81 ms |
16716 KB |
Output is correct |
8 |
Correct |
79 ms |
16720 KB |
Output is correct |
9 |
Correct |
105 ms |
16668 KB |
Output is correct |
10 |
Correct |
79 ms |
16716 KB |
Output is correct |
11 |
Correct |
90 ms |
16860 KB |
Output is correct |
12 |
Correct |
111 ms |
16724 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
344 KB |
Output is correct |
20 |
Correct |
0 ms |
464 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
364 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
1 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
2 ms |
604 KB |
Output is correct |
44 |
Correct |
2 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
10 ms |
2372 KB |
Output is correct |
47 |
Correct |
9 ms |
2396 KB |
Output is correct |
48 |
Correct |
13 ms |
2396 KB |
Output is correct |
49 |
Correct |
9 ms |
2392 KB |
Output is correct |
50 |
Correct |
10 ms |
2396 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
80 ms |
16640 KB |
Output is correct |
6 |
Correct |
69 ms |
8536 KB |
Output is correct |
7 |
Correct |
81 ms |
16716 KB |
Output is correct |
8 |
Correct |
79 ms |
16720 KB |
Output is correct |
9 |
Correct |
105 ms |
16668 KB |
Output is correct |
10 |
Correct |
79 ms |
16716 KB |
Output is correct |
11 |
Correct |
90 ms |
16860 KB |
Output is correct |
12 |
Correct |
111 ms |
16724 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
344 KB |
Output is correct |
20 |
Correct |
0 ms |
464 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
364 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
1 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
2 ms |
604 KB |
Output is correct |
44 |
Correct |
2 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
10 ms |
2372 KB |
Output is correct |
47 |
Correct |
9 ms |
2396 KB |
Output is correct |
48 |
Correct |
13 ms |
2396 KB |
Output is correct |
49 |
Correct |
9 ms |
2392 KB |
Output is correct |
50 |
Correct |
10 ms |
2396 KB |
Output is correct |
51 |
Correct |
74 ms |
9052 KB |
Output is correct |
52 |
Correct |
85 ms |
17232 KB |
Output is correct |
53 |
Correct |
140 ms |
17256 KB |
Output is correct |
54 |
Correct |
142 ms |
17236 KB |
Output is correct |
55 |
Correct |
1 ms |
604 KB |
Output is correct |
56 |
Correct |
20 ms |
2904 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
49 ms |
25556 KB |
Output is correct |
3 |
Correct |
45 ms |
26704 KB |
Output is correct |
4 |
Correct |
36 ms |
26760 KB |
Output is correct |
5 |
Correct |
53 ms |
26708 KB |
Output is correct |
6 |
Correct |
41 ms |
26708 KB |
Output is correct |
7 |
Correct |
52 ms |
26768 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
49 ms |
25556 KB |
Output is correct |
3 |
Correct |
45 ms |
26704 KB |
Output is correct |
4 |
Correct |
36 ms |
26760 KB |
Output is correct |
5 |
Correct |
53 ms |
26708 KB |
Output is correct |
6 |
Correct |
41 ms |
26708 KB |
Output is correct |
7 |
Correct |
52 ms |
26768 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
176 ms |
26852 KB |
Output is correct |
21 |
Correct |
135 ms |
26704 KB |
Output is correct |
22 |
Correct |
129 ms |
26676 KB |
Output is correct |
23 |
Correct |
125 ms |
25940 KB |
Output is correct |
24 |
Correct |
129 ms |
26704 KB |
Output is correct |
25 |
Correct |
137 ms |
27024 KB |
Output is correct |
26 |
Correct |
160 ms |
26704 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
600 KB |
Output is correct |
33 |
Correct |
1 ms |
344 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
348 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
344 KB |
Output is correct |
43 |
Correct |
0 ms |
344 KB |
Output is correct |
44 |
Correct |
0 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
49 ms |
25556 KB |
Output is correct |
3 |
Correct |
45 ms |
26704 KB |
Output is correct |
4 |
Correct |
36 ms |
26760 KB |
Output is correct |
5 |
Correct |
53 ms |
26708 KB |
Output is correct |
6 |
Correct |
41 ms |
26708 KB |
Output is correct |
7 |
Correct |
52 ms |
26768 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
176 ms |
26852 KB |
Output is correct |
21 |
Correct |
135 ms |
26704 KB |
Output is correct |
22 |
Correct |
129 ms |
26676 KB |
Output is correct |
23 |
Correct |
125 ms |
25940 KB |
Output is correct |
24 |
Correct |
129 ms |
26704 KB |
Output is correct |
25 |
Correct |
137 ms |
27024 KB |
Output is correct |
26 |
Correct |
160 ms |
26704 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
600 KB |
Output is correct |
33 |
Correct |
1 ms |
344 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
348 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
344 KB |
Output is correct |
43 |
Correct |
0 ms |
344 KB |
Output is correct |
44 |
Correct |
0 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
209 ms |
27132 KB |
Output is correct |
48 |
Correct |
191 ms |
26848 KB |
Output is correct |
49 |
Correct |
208 ms |
26932 KB |
Output is correct |
50 |
Correct |
167 ms |
25932 KB |
Output is correct |
51 |
Correct |
160 ms |
27080 KB |
Output is correct |
52 |
Correct |
191 ms |
26964 KB |
Output is correct |
53 |
Correct |
204 ms |
27220 KB |
Output is correct |
54 |
Correct |
2 ms |
600 KB |
Output is correct |
55 |
Correct |
2 ms |
600 KB |
Output is correct |
56 |
Correct |
1 ms |
604 KB |
Output is correct |
57 |
Correct |
1 ms |
604 KB |
Output is correct |
58 |
Correct |
1 ms |
604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
49 ms |
25556 KB |
Output is correct |
3 |
Correct |
45 ms |
26704 KB |
Output is correct |
4 |
Correct |
36 ms |
26760 KB |
Output is correct |
5 |
Correct |
53 ms |
26708 KB |
Output is correct |
6 |
Correct |
41 ms |
26708 KB |
Output is correct |
7 |
Correct |
52 ms |
26768 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
176 ms |
26852 KB |
Output is correct |
21 |
Correct |
135 ms |
26704 KB |
Output is correct |
22 |
Correct |
129 ms |
26676 KB |
Output is correct |
23 |
Correct |
125 ms |
25940 KB |
Output is correct |
24 |
Correct |
129 ms |
26704 KB |
Output is correct |
25 |
Correct |
137 ms |
27024 KB |
Output is correct |
26 |
Correct |
160 ms |
26704 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
600 KB |
Output is correct |
33 |
Correct |
1 ms |
344 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
348 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
344 KB |
Output is correct |
43 |
Correct |
0 ms |
344 KB |
Output is correct |
44 |
Correct |
0 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
209 ms |
27132 KB |
Output is correct |
48 |
Correct |
191 ms |
26848 KB |
Output is correct |
49 |
Correct |
208 ms |
26932 KB |
Output is correct |
50 |
Correct |
167 ms |
25932 KB |
Output is correct |
51 |
Correct |
160 ms |
27080 KB |
Output is correct |
52 |
Correct |
191 ms |
26964 KB |
Output is correct |
53 |
Correct |
204 ms |
27220 KB |
Output is correct |
54 |
Correct |
2 ms |
600 KB |
Output is correct |
55 |
Correct |
2 ms |
600 KB |
Output is correct |
56 |
Correct |
1 ms |
604 KB |
Output is correct |
57 |
Correct |
1 ms |
604 KB |
Output is correct |
58 |
Correct |
1 ms |
604 KB |
Output is correct |
59 |
Correct |
219 ms |
27988 KB |
Output is correct |
60 |
Correct |
105 ms |
12572 KB |
Output is correct |
61 |
Correct |
111 ms |
13484 KB |
Output is correct |
62 |
Correct |
114 ms |
13764 KB |
Output is correct |
63 |
Correct |
268 ms |
27860 KB |
Output is correct |
64 |
Correct |
240 ms |
28756 KB |
Output is correct |
65 |
Correct |
290 ms |
28792 KB |
Output is correct |
66 |
Correct |
186 ms |
26960 KB |
Output is correct |
67 |
Correct |
188 ms |
28724 KB |
Output is correct |
68 |
Correct |
230 ms |
28752 KB |
Output is correct |
69 |
Correct |
268 ms |
29008 KB |
Output is correct |
70 |
Correct |
9 ms |
2396 KB |
Output is correct |
71 |
Correct |
8 ms |
2392 KB |
Output is correct |
72 |
Correct |
9 ms |
2396 KB |
Output is correct |
73 |
Correct |
8 ms |
2392 KB |
Output is correct |
74 |
Correct |
13 ms |
2396 KB |
Output is correct |
75 |
Correct |
19 ms |
2816 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
80 ms |
16640 KB |
Output is correct |
6 |
Correct |
69 ms |
8536 KB |
Output is correct |
7 |
Correct |
81 ms |
16716 KB |
Output is correct |
8 |
Correct |
79 ms |
16720 KB |
Output is correct |
9 |
Correct |
105 ms |
16668 KB |
Output is correct |
10 |
Correct |
79 ms |
16716 KB |
Output is correct |
11 |
Correct |
90 ms |
16860 KB |
Output is correct |
12 |
Correct |
111 ms |
16724 KB |
Output is correct |
13 |
Correct |
1 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
344 KB |
Output is correct |
20 |
Correct |
0 ms |
464 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
364 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
0 ms |
348 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
1 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
604 KB |
Output is correct |
43 |
Correct |
2 ms |
604 KB |
Output is correct |
44 |
Correct |
2 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
604 KB |
Output is correct |
46 |
Correct |
10 ms |
2372 KB |
Output is correct |
47 |
Correct |
9 ms |
2396 KB |
Output is correct |
48 |
Correct |
13 ms |
2396 KB |
Output is correct |
49 |
Correct |
9 ms |
2392 KB |
Output is correct |
50 |
Correct |
10 ms |
2396 KB |
Output is correct |
51 |
Correct |
74 ms |
9052 KB |
Output is correct |
52 |
Correct |
85 ms |
17232 KB |
Output is correct |
53 |
Correct |
140 ms |
17256 KB |
Output is correct |
54 |
Correct |
142 ms |
17236 KB |
Output is correct |
55 |
Correct |
1 ms |
604 KB |
Output is correct |
56 |
Correct |
20 ms |
2904 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
49 ms |
25556 KB |
Output is correct |
59 |
Correct |
45 ms |
26704 KB |
Output is correct |
60 |
Correct |
36 ms |
26760 KB |
Output is correct |
61 |
Correct |
53 ms |
26708 KB |
Output is correct |
62 |
Correct |
41 ms |
26708 KB |
Output is correct |
63 |
Correct |
52 ms |
26768 KB |
Output is correct |
64 |
Correct |
0 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
348 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
1 ms |
604 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
176 ms |
26852 KB |
Output is correct |
77 |
Correct |
135 ms |
26704 KB |
Output is correct |
78 |
Correct |
129 ms |
26676 KB |
Output is correct |
79 |
Correct |
125 ms |
25940 KB |
Output is correct |
80 |
Correct |
129 ms |
26704 KB |
Output is correct |
81 |
Correct |
137 ms |
27024 KB |
Output is correct |
82 |
Correct |
160 ms |
26704 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
600 KB |
Output is correct |
89 |
Correct |
1 ms |
344 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
344 KB |
Output is correct |
99 |
Correct |
0 ms |
344 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
1 ms |
348 KB |
Output is correct |
103 |
Correct |
209 ms |
27132 KB |
Output is correct |
104 |
Correct |
191 ms |
26848 KB |
Output is correct |
105 |
Correct |
208 ms |
26932 KB |
Output is correct |
106 |
Correct |
167 ms |
25932 KB |
Output is correct |
107 |
Correct |
160 ms |
27080 KB |
Output is correct |
108 |
Correct |
191 ms |
26964 KB |
Output is correct |
109 |
Correct |
204 ms |
27220 KB |
Output is correct |
110 |
Correct |
2 ms |
600 KB |
Output is correct |
111 |
Correct |
2 ms |
600 KB |
Output is correct |
112 |
Correct |
1 ms |
604 KB |
Output is correct |
113 |
Correct |
1 ms |
604 KB |
Output is correct |
114 |
Correct |
1 ms |
604 KB |
Output is correct |
115 |
Correct |
219 ms |
27988 KB |
Output is correct |
116 |
Correct |
105 ms |
12572 KB |
Output is correct |
117 |
Correct |
111 ms |
13484 KB |
Output is correct |
118 |
Correct |
114 ms |
13764 KB |
Output is correct |
119 |
Correct |
268 ms |
27860 KB |
Output is correct |
120 |
Correct |
240 ms |
28756 KB |
Output is correct |
121 |
Correct |
290 ms |
28792 KB |
Output is correct |
122 |
Correct |
186 ms |
26960 KB |
Output is correct |
123 |
Correct |
188 ms |
28724 KB |
Output is correct |
124 |
Correct |
230 ms |
28752 KB |
Output is correct |
125 |
Correct |
268 ms |
29008 KB |
Output is correct |
126 |
Correct |
9 ms |
2396 KB |
Output is correct |
127 |
Correct |
8 ms |
2392 KB |
Output is correct |
128 |
Correct |
9 ms |
2396 KB |
Output is correct |
129 |
Correct |
8 ms |
2392 KB |
Output is correct |
130 |
Correct |
13 ms |
2396 KB |
Output is correct |
131 |
Correct |
19 ms |
2816 KB |
Output is correct |
132 |
Correct |
419 ms |
55240 KB |
Output is correct |
133 |
Correct |
457 ms |
55052 KB |
Output is correct |
134 |
Correct |
469 ms |
55376 KB |
Output is correct |
135 |
Correct |
448 ms |
55056 KB |
Output is correct |
136 |
Correct |
486 ms |
55292 KB |
Output is correct |
137 |
Correct |
334 ms |
46396 KB |
Output is correct |
138 |
Correct |
352 ms |
46556 KB |
Output is correct |
139 |
Correct |
290 ms |
45908 KB |
Output is correct |
140 |
Correct |
307 ms |
54796 KB |
Output is correct |
141 |
Correct |
460 ms |
54900 KB |
Output is correct |
142 |
Correct |
511 ms |
55176 KB |
Output is correct |