# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
874638 |
2023-11-17T13:07:24 Z |
NK_ |
Council (JOI23_council) |
C++17 |
|
1182 ms |
31928 KB |
// Success consists of going from failure to failure without loss of enthusiasm
#include <bits/stdc++.h>
using namespace std;
#define nl '\n'
#define pb push_back
#define f first
#define s second
#define mp make_pair
#define sz(x) int(x.size())
using pi = pair<int, int>;
using ll = long long;
template<class T> using V = vector<T>;
using vi = V<int>;
using vpi = V<pi>;
const int LG = 18;
int main() {
cin.tie(0)->sync_with_stdio(0);
int N, M; cin >> N >> M;
vi A(N); for(auto& x : A) {
for(int i = 0; i < M; i++) {
int v; cin >> v;
x ^= v << i;
}
}
int MX = (1 << M), MSK = MX - 1;
vi B = A; for(auto& x : B) x ^= MSK;
vi C(M, -(N / 2));
for(int i = 0; i < M; i++) for(int x = 0; x < N; x++) C[i] += (A[x] >> i) & 1;
vpi X(MX, mp(0, -2)), X2(MX, mp(0, -2)); // update to store two largest PCTs and where its from????
for(int c = 0; c < N; c++) {
int x = B[c];
// for(int i = 0; i < M; i++) {
// cout << ((x >> i) & 1) << " ";
// }
// cout << endl;
if (X[x].s == -2) X[x] = mp(__builtin_popcount(x), c);
else X[x] = mp(__builtin_popcount(x), -1);
}
for(int i = 0; i < M; i++) for(int s = MX - 1; s >= 0; s--) {
if ((s >> i) & 1) {
int ns = s ^ (1 << i); // ns <= s
vpi S = vpi{mp(X[s].f - 1, X[s].s), mp(X2[s].f - 1, X2[s].s), X[ns], X2[ns]};
sort(rbegin(S), rend(S));
X[ns] = S.front();
for(int x = 0; x < 4; x++) if (S[x].s != X[ns].s) { X2[ns] = S[x]; break; }
}
}
// for(int x = 0; x < MX; x++) cout << x << " => " << X[x] << endl;
for(int i = 0; i < M; i++) for(int s = 0; s < MX; s++) {
if ((s >> i) & 1) {
int ns = s ^ (1 << i); // ns => s
vpi S = vpi{X[s], X2[s], X[ns], X2[ns]};
sort(rbegin(S), rend(S));
X[s] = S.front();
for(int x = 0; x < 4; x++) if (S[x].s != X[s].s) { X2[s] = S[x]; break; }
}
}
// for(int x = 0; x < MX; x++) cout << x << " => " << X[x] << endl;
for(int i = 0; i < N; i++) {
for(int x = 0; x < M; x++) C[x] -= (A[i] >> x) & 1;
// for(auto& x : C) cout << x << " ";
// cout << nl;
int c = 0, yes = 0;
for(int x = 0; x < M; x++) {
if (C[x] >= 1) yes++;
else if (C[x] == 0) c ^= (1 << x);
// cout << ((c >> x) & 1) << " ";
}
// cout << nl;
// cout << X[c].f << " " << X[c].s << nl;
cout << yes + (X[c].s == i ? X2[c].f : X[c].f) << nl;
for(int x = 0; x < M; x++) C[x] += (A[i] >> x) & 1;
}
exit(0-0);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
2 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 |
734 ms |
16892 KB |
Output is correct |
6 |
Correct |
758 ms |
16732 KB |
Output is correct |
7 |
Correct |
779 ms |
16864 KB |
Output is correct |
8 |
Correct |
802 ms |
16864 KB |
Output is correct |
9 |
Correct |
834 ms |
16972 KB |
Output is correct |
10 |
Correct |
796 ms |
16976 KB |
Output is correct |
11 |
Correct |
834 ms |
16864 KB |
Output is correct |
12 |
Correct |
844 ms |
16980 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
460 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
456 KB |
Output is correct |
21 |
Correct |
1 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
456 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 |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
1 ms |
344 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
1 ms |
452 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
0 ms |
344 KB |
Output is correct |
37 |
Correct |
0 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 |
9 ms |
600 KB |
Output is correct |
42 |
Correct |
9 ms |
728 KB |
Output is correct |
43 |
Correct |
9 ms |
604 KB |
Output is correct |
44 |
Correct |
9 ms |
728 KB |
Output is correct |
45 |
Correct |
9 ms |
688 KB |
Output is correct |
46 |
Correct |
89 ms |
2396 KB |
Output is correct |
47 |
Correct |
81 ms |
2396 KB |
Output is correct |
48 |
Correct |
85 ms |
2508 KB |
Output is correct |
49 |
Correct |
97 ms |
2396 KB |
Output is correct |
50 |
Correct |
93 ms |
2584 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
2 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 |
734 ms |
16892 KB |
Output is correct |
6 |
Correct |
758 ms |
16732 KB |
Output is correct |
7 |
Correct |
779 ms |
16864 KB |
Output is correct |
8 |
Correct |
802 ms |
16864 KB |
Output is correct |
9 |
Correct |
834 ms |
16972 KB |
Output is correct |
10 |
Correct |
796 ms |
16976 KB |
Output is correct |
11 |
Correct |
834 ms |
16864 KB |
Output is correct |
12 |
Correct |
844 ms |
16980 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
460 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
456 KB |
Output is correct |
21 |
Correct |
1 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
456 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 |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
1 ms |
344 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
1 ms |
452 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
0 ms |
344 KB |
Output is correct |
37 |
Correct |
0 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 |
9 ms |
600 KB |
Output is correct |
42 |
Correct |
9 ms |
728 KB |
Output is correct |
43 |
Correct |
9 ms |
604 KB |
Output is correct |
44 |
Correct |
9 ms |
728 KB |
Output is correct |
45 |
Correct |
9 ms |
688 KB |
Output is correct |
46 |
Correct |
89 ms |
2396 KB |
Output is correct |
47 |
Correct |
81 ms |
2396 KB |
Output is correct |
48 |
Correct |
85 ms |
2508 KB |
Output is correct |
49 |
Correct |
97 ms |
2396 KB |
Output is correct |
50 |
Correct |
93 ms |
2584 KB |
Output is correct |
51 |
Correct |
748 ms |
17016 KB |
Output is correct |
52 |
Correct |
767 ms |
17008 KB |
Output is correct |
53 |
Correct |
822 ms |
17012 KB |
Output is correct |
54 |
Correct |
876 ms |
17012 KB |
Output is correct |
55 |
Correct |
1 ms |
344 KB |
Output is correct |
56 |
Correct |
91 ms |
2628 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
45 ms |
4492 KB |
Output is correct |
3 |
Correct |
41 ms |
4440 KB |
Output is correct |
4 |
Correct |
32 ms |
3920 KB |
Output is correct |
5 |
Correct |
47 ms |
4564 KB |
Output is correct |
6 |
Correct |
38 ms |
3892 KB |
Output is correct |
7 |
Correct |
53 ms |
4436 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
45 ms |
4492 KB |
Output is correct |
3 |
Correct |
41 ms |
4440 KB |
Output is correct |
4 |
Correct |
32 ms |
3920 KB |
Output is correct |
5 |
Correct |
47 ms |
4564 KB |
Output is correct |
6 |
Correct |
38 ms |
3892 KB |
Output is correct |
7 |
Correct |
53 ms |
4436 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
20 |
Correct |
184 ms |
9216 KB |
Output is correct |
21 |
Correct |
151 ms |
8524 KB |
Output is correct |
22 |
Correct |
178 ms |
8788 KB |
Output is correct |
23 |
Correct |
157 ms |
9420 KB |
Output is correct |
24 |
Correct |
144 ms |
9408 KB |
Output is correct |
25 |
Correct |
161 ms |
9292 KB |
Output is correct |
26 |
Correct |
167 ms |
9156 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
456 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
1 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 |
452 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
460 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 |
456 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
1 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 |
344 KB |
Output is correct |
2 |
Correct |
45 ms |
4492 KB |
Output is correct |
3 |
Correct |
41 ms |
4440 KB |
Output is correct |
4 |
Correct |
32 ms |
3920 KB |
Output is correct |
5 |
Correct |
47 ms |
4564 KB |
Output is correct |
6 |
Correct |
38 ms |
3892 KB |
Output is correct |
7 |
Correct |
53 ms |
4436 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
20 |
Correct |
184 ms |
9216 KB |
Output is correct |
21 |
Correct |
151 ms |
8524 KB |
Output is correct |
22 |
Correct |
178 ms |
8788 KB |
Output is correct |
23 |
Correct |
157 ms |
9420 KB |
Output is correct |
24 |
Correct |
144 ms |
9408 KB |
Output is correct |
25 |
Correct |
161 ms |
9292 KB |
Output is correct |
26 |
Correct |
167 ms |
9156 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
456 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
1 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 |
452 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
460 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 |
456 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
1 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
4 ms |
348 KB |
Output is correct |
47 |
Correct |
228 ms |
11780 KB |
Output is correct |
48 |
Correct |
219 ms |
11064 KB |
Output is correct |
49 |
Correct |
212 ms |
11220 KB |
Output is correct |
50 |
Correct |
194 ms |
11972 KB |
Output is correct |
51 |
Correct |
183 ms |
11856 KB |
Output is correct |
52 |
Correct |
223 ms |
11864 KB |
Output is correct |
53 |
Correct |
232 ms |
11980 KB |
Output is correct |
54 |
Correct |
8 ms |
600 KB |
Output is correct |
55 |
Correct |
11 ms |
860 KB |
Output is correct |
56 |
Correct |
9 ms |
732 KB |
Output is correct |
57 |
Correct |
9 ms |
604 KB |
Output is correct |
58 |
Correct |
9 ms |
736 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
45 ms |
4492 KB |
Output is correct |
3 |
Correct |
41 ms |
4440 KB |
Output is correct |
4 |
Correct |
32 ms |
3920 KB |
Output is correct |
5 |
Correct |
47 ms |
4564 KB |
Output is correct |
6 |
Correct |
38 ms |
3892 KB |
Output is correct |
7 |
Correct |
53 ms |
4436 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
452 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 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 |
348 KB |
Output is correct |
20 |
Correct |
184 ms |
9216 KB |
Output is correct |
21 |
Correct |
151 ms |
8524 KB |
Output is correct |
22 |
Correct |
178 ms |
8788 KB |
Output is correct |
23 |
Correct |
157 ms |
9420 KB |
Output is correct |
24 |
Correct |
144 ms |
9408 KB |
Output is correct |
25 |
Correct |
161 ms |
9292 KB |
Output is correct |
26 |
Correct |
167 ms |
9156 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
456 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
1 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 |
452 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
348 KB |
Output is correct |
37 |
Correct |
0 ms |
460 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 |
456 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
1 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
4 ms |
348 KB |
Output is correct |
47 |
Correct |
228 ms |
11780 KB |
Output is correct |
48 |
Correct |
219 ms |
11064 KB |
Output is correct |
49 |
Correct |
212 ms |
11220 KB |
Output is correct |
50 |
Correct |
194 ms |
11972 KB |
Output is correct |
51 |
Correct |
183 ms |
11856 KB |
Output is correct |
52 |
Correct |
223 ms |
11864 KB |
Output is correct |
53 |
Correct |
232 ms |
11980 KB |
Output is correct |
54 |
Correct |
8 ms |
600 KB |
Output is correct |
55 |
Correct |
11 ms |
860 KB |
Output is correct |
56 |
Correct |
9 ms |
732 KB |
Output is correct |
57 |
Correct |
9 ms |
604 KB |
Output is correct |
58 |
Correct |
9 ms |
736 KB |
Output is correct |
59 |
Correct |
287 ms |
14032 KB |
Output is correct |
60 |
Correct |
215 ms |
7728 KB |
Output is correct |
61 |
Correct |
188 ms |
7836 KB |
Output is correct |
62 |
Correct |
191 ms |
7988 KB |
Output is correct |
63 |
Correct |
291 ms |
13652 KB |
Output is correct |
64 |
Correct |
346 ms |
15444 KB |
Output is correct |
65 |
Correct |
354 ms |
15432 KB |
Output is correct |
66 |
Correct |
299 ms |
15564 KB |
Output is correct |
67 |
Correct |
296 ms |
15440 KB |
Output is correct |
68 |
Correct |
322 ms |
15348 KB |
Output is correct |
69 |
Correct |
363 ms |
15572 KB |
Output is correct |
70 |
Correct |
77 ms |
2504 KB |
Output is correct |
71 |
Correct |
81 ms |
2392 KB |
Output is correct |
72 |
Correct |
84 ms |
2396 KB |
Output is correct |
73 |
Correct |
84 ms |
2500 KB |
Output is correct |
74 |
Correct |
84 ms |
2396 KB |
Output is correct |
75 |
Correct |
91 ms |
2628 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
2 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 |
734 ms |
16892 KB |
Output is correct |
6 |
Correct |
758 ms |
16732 KB |
Output is correct |
7 |
Correct |
779 ms |
16864 KB |
Output is correct |
8 |
Correct |
802 ms |
16864 KB |
Output is correct |
9 |
Correct |
834 ms |
16972 KB |
Output is correct |
10 |
Correct |
796 ms |
16976 KB |
Output is correct |
11 |
Correct |
834 ms |
16864 KB |
Output is correct |
12 |
Correct |
844 ms |
16980 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
344 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
344 KB |
Output is correct |
18 |
Correct |
1 ms |
460 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
456 KB |
Output is correct |
21 |
Correct |
1 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
456 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 |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
1 ms |
344 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
1 ms |
452 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
0 ms |
344 KB |
Output is correct |
37 |
Correct |
0 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 |
9 ms |
600 KB |
Output is correct |
42 |
Correct |
9 ms |
728 KB |
Output is correct |
43 |
Correct |
9 ms |
604 KB |
Output is correct |
44 |
Correct |
9 ms |
728 KB |
Output is correct |
45 |
Correct |
9 ms |
688 KB |
Output is correct |
46 |
Correct |
89 ms |
2396 KB |
Output is correct |
47 |
Correct |
81 ms |
2396 KB |
Output is correct |
48 |
Correct |
85 ms |
2508 KB |
Output is correct |
49 |
Correct |
97 ms |
2396 KB |
Output is correct |
50 |
Correct |
93 ms |
2584 KB |
Output is correct |
51 |
Correct |
748 ms |
17016 KB |
Output is correct |
52 |
Correct |
767 ms |
17008 KB |
Output is correct |
53 |
Correct |
822 ms |
17012 KB |
Output is correct |
54 |
Correct |
876 ms |
17012 KB |
Output is correct |
55 |
Correct |
1 ms |
344 KB |
Output is correct |
56 |
Correct |
91 ms |
2628 KB |
Output is correct |
57 |
Correct |
0 ms |
344 KB |
Output is correct |
58 |
Correct |
45 ms |
4492 KB |
Output is correct |
59 |
Correct |
41 ms |
4440 KB |
Output is correct |
60 |
Correct |
32 ms |
3920 KB |
Output is correct |
61 |
Correct |
47 ms |
4564 KB |
Output is correct |
62 |
Correct |
38 ms |
3892 KB |
Output is correct |
63 |
Correct |
53 ms |
4436 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
452 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 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 |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
184 ms |
9216 KB |
Output is correct |
77 |
Correct |
151 ms |
8524 KB |
Output is correct |
78 |
Correct |
178 ms |
8788 KB |
Output is correct |
79 |
Correct |
157 ms |
9420 KB |
Output is correct |
80 |
Correct |
144 ms |
9408 KB |
Output is correct |
81 |
Correct |
161 ms |
9292 KB |
Output is correct |
82 |
Correct |
167 ms |
9156 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
456 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
1 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
1 ms |
452 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
2 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
460 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 |
456 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
1 ms |
348 KB |
Output is correct |
101 |
Correct |
1 ms |
348 KB |
Output is correct |
102 |
Correct |
4 ms |
348 KB |
Output is correct |
103 |
Correct |
228 ms |
11780 KB |
Output is correct |
104 |
Correct |
219 ms |
11064 KB |
Output is correct |
105 |
Correct |
212 ms |
11220 KB |
Output is correct |
106 |
Correct |
194 ms |
11972 KB |
Output is correct |
107 |
Correct |
183 ms |
11856 KB |
Output is correct |
108 |
Correct |
223 ms |
11864 KB |
Output is correct |
109 |
Correct |
232 ms |
11980 KB |
Output is correct |
110 |
Correct |
8 ms |
600 KB |
Output is correct |
111 |
Correct |
11 ms |
860 KB |
Output is correct |
112 |
Correct |
9 ms |
732 KB |
Output is correct |
113 |
Correct |
9 ms |
604 KB |
Output is correct |
114 |
Correct |
9 ms |
736 KB |
Output is correct |
115 |
Correct |
287 ms |
14032 KB |
Output is correct |
116 |
Correct |
215 ms |
7728 KB |
Output is correct |
117 |
Correct |
188 ms |
7836 KB |
Output is correct |
118 |
Correct |
191 ms |
7988 KB |
Output is correct |
119 |
Correct |
291 ms |
13652 KB |
Output is correct |
120 |
Correct |
346 ms |
15444 KB |
Output is correct |
121 |
Correct |
354 ms |
15432 KB |
Output is correct |
122 |
Correct |
299 ms |
15564 KB |
Output is correct |
123 |
Correct |
296 ms |
15440 KB |
Output is correct |
124 |
Correct |
322 ms |
15348 KB |
Output is correct |
125 |
Correct |
363 ms |
15572 KB |
Output is correct |
126 |
Correct |
77 ms |
2504 KB |
Output is correct |
127 |
Correct |
81 ms |
2392 KB |
Output is correct |
128 |
Correct |
84 ms |
2396 KB |
Output is correct |
129 |
Correct |
84 ms |
2500 KB |
Output is correct |
130 |
Correct |
84 ms |
2396 KB |
Output is correct |
131 |
Correct |
91 ms |
2628 KB |
Output is correct |
132 |
Correct |
1098 ms |
31824 KB |
Output is correct |
133 |
Correct |
1073 ms |
31476 KB |
Output is correct |
134 |
Correct |
1044 ms |
31736 KB |
Output is correct |
135 |
Correct |
1182 ms |
31568 KB |
Output is correct |
136 |
Correct |
1170 ms |
31864 KB |
Output is correct |
137 |
Correct |
702 ms |
22996 KB |
Output is correct |
138 |
Correct |
696 ms |
22852 KB |
Output is correct |
139 |
Correct |
1028 ms |
31568 KB |
Output is correct |
140 |
Correct |
983 ms |
31480 KB |
Output is correct |
141 |
Correct |
1094 ms |
31476 KB |
Output is correct |
142 |
Correct |
1139 ms |
31928 KB |
Output is correct |