#include <bits/stdc++.h>
//#pragma GCC optimize("O3")
//#pragma GCC target("avx,avx2,fma")
#define sz(x) int((x).size())
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
using namespace std;
using ll = long long;
using ld = long double; // or double, if TL is tight
using str = string;
using ii = pair<int, int>;
using pl = pair<ll, ll>;
using vi = vector<int>;
using vll = vector<ll>;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(0);
int n, m;
cin >> n >> m;
vector<vi> A(n, vi(m, 0));
vi B(n, 0);
vector<vector<ii> > DP(1 << m); /// DP[bm] -> min popcnt(x & bm) pt x in A
vi Fr(m, 0);
for(int i = 0; i < n; ++i) {
for(int j = 0; j < m; ++j) {
cin >> A[i][j];
Fr[j] += A[i][j];
if(A[i][j]) B[i] |= 1 << j;
}
DP[(~B[i]) & ((1 << m) - 1)].push_back({0, i});
}
auto clean = [&](int bm) {
if(DP[bm].size() <= 2) return;
sort(all(DP[bm]));
if(DP[bm][0].second == DP[bm][1].second)
DP[bm][1] = DP[bm][2];
DP[bm].resize(2);
};
for(int i = 0; i < m; ++i)
for(int j = 0; j < (1 << m); ++j) {
sort(all(DP[j]));
clean(j);
for(auto [cost, orig] : DP[j]) {
int jj = j ^ (1 << i), cnou = cost;
if(!(j & (1 << i))) cnou++;
DP[jj].push_back({cnou, orig});
clean(jj);
}
}
for(int i = 0; i < n; ++i) {
int bm = 0, cre = 0;
for(int j = 0; j < m; ++j) {
if(Fr[j] - A[i][j] >= n / 2 + 1) {
++cre; continue;
}
if(Fr[j] - A[i][j] < n / 2) continue;
if(Fr[j] - A[i][j] == n / 2) {
bm |= (1 << j);
}
}
int tmp = __builtin_popcount(bm);
for(auto [cost, orig] : DP[bm])
if(orig != i) tmp = min(tmp, cost);
cre += __builtin_popcount(bm) - tmp;
cout << cre << "\n";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
604 KB |
Output is correct |
3 |
Correct |
0 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
258 ms |
74208 KB |
Output is correct |
6 |
Correct |
196 ms |
65996 KB |
Output is correct |
7 |
Correct |
281 ms |
74208 KB |
Output is correct |
8 |
Correct |
398 ms |
74224 KB |
Output is correct |
9 |
Correct |
586 ms |
74504 KB |
Output is correct |
10 |
Correct |
297 ms |
74364 KB |
Output is correct |
11 |
Correct |
393 ms |
74244 KB |
Output is correct |
12 |
Correct |
589 ms |
74596 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
452 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
600 KB |
Output is correct |
26 |
Correct |
1 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
460 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
0 ms |
344 KB |
Output is correct |
33 |
Correct |
0 ms |
460 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 |
1 ms |
452 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 |
4 ms |
1476 KB |
Output is correct |
42 |
Correct |
5 ms |
1628 KB |
Output is correct |
43 |
Correct |
9 ms |
1508 KB |
Output is correct |
44 |
Correct |
5 ms |
1624 KB |
Output is correct |
45 |
Correct |
6 ms |
1628 KB |
Output is correct |
46 |
Correct |
30 ms |
9556 KB |
Output is correct |
47 |
Correct |
34 ms |
9528 KB |
Output is correct |
48 |
Correct |
45 ms |
9496 KB |
Output is correct |
49 |
Correct |
36 ms |
9556 KB |
Output is correct |
50 |
Correct |
47 ms |
9548 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
604 KB |
Output is correct |
3 |
Correct |
0 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
258 ms |
74208 KB |
Output is correct |
6 |
Correct |
196 ms |
65996 KB |
Output is correct |
7 |
Correct |
281 ms |
74208 KB |
Output is correct |
8 |
Correct |
398 ms |
74224 KB |
Output is correct |
9 |
Correct |
586 ms |
74504 KB |
Output is correct |
10 |
Correct |
297 ms |
74364 KB |
Output is correct |
11 |
Correct |
393 ms |
74244 KB |
Output is correct |
12 |
Correct |
589 ms |
74596 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
452 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
600 KB |
Output is correct |
26 |
Correct |
1 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
460 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
0 ms |
344 KB |
Output is correct |
33 |
Correct |
0 ms |
460 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 |
1 ms |
452 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 |
4 ms |
1476 KB |
Output is correct |
42 |
Correct |
5 ms |
1628 KB |
Output is correct |
43 |
Correct |
9 ms |
1508 KB |
Output is correct |
44 |
Correct |
5 ms |
1624 KB |
Output is correct |
45 |
Correct |
6 ms |
1628 KB |
Output is correct |
46 |
Correct |
30 ms |
9556 KB |
Output is correct |
47 |
Correct |
34 ms |
9528 KB |
Output is correct |
48 |
Correct |
45 ms |
9496 KB |
Output is correct |
49 |
Correct |
36 ms |
9556 KB |
Output is correct |
50 |
Correct |
47 ms |
9548 KB |
Output is correct |
51 |
Correct |
206 ms |
66668 KB |
Output is correct |
52 |
Correct |
162 ms |
58252 KB |
Output is correct |
53 |
Correct |
798 ms |
75632 KB |
Output is correct |
54 |
Correct |
794 ms |
75304 KB |
Output is correct |
55 |
Correct |
1 ms |
612 KB |
Output is correct |
56 |
Correct |
99 ms |
10340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
81 ms |
23476 KB |
Output is correct |
3 |
Correct |
70 ms |
24012 KB |
Output is correct |
4 |
Correct |
55 ms |
21724 KB |
Output is correct |
5 |
Correct |
67 ms |
22272 KB |
Output is correct |
6 |
Correct |
60 ms |
21664 KB |
Output is correct |
7 |
Correct |
73 ms |
22148 KB |
Output is correct |
8 |
Correct |
0 ms |
600 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
544 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
600 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
81 ms |
23476 KB |
Output is correct |
3 |
Correct |
70 ms |
24012 KB |
Output is correct |
4 |
Correct |
55 ms |
21724 KB |
Output is correct |
5 |
Correct |
67 ms |
22272 KB |
Output is correct |
6 |
Correct |
60 ms |
21664 KB |
Output is correct |
7 |
Correct |
73 ms |
22148 KB |
Output is correct |
8 |
Correct |
0 ms |
600 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
544 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
600 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
202 ms |
33308 KB |
Output is correct |
21 |
Correct |
169 ms |
32956 KB |
Output is correct |
22 |
Correct |
171 ms |
32892 KB |
Output is correct |
23 |
Correct |
168 ms |
33524 KB |
Output is correct |
24 |
Correct |
163 ms |
34376 KB |
Output is correct |
25 |
Correct |
170 ms |
33616 KB |
Output is correct |
26 |
Correct |
192 ms |
33616 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
456 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
0 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 |
0 ms |
452 KB |
Output is correct |
34 |
Correct |
1 ms |
348 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 |
344 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
600 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
1 ms |
344 KB |
Output is correct |
45 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
81 ms |
23476 KB |
Output is correct |
3 |
Correct |
70 ms |
24012 KB |
Output is correct |
4 |
Correct |
55 ms |
21724 KB |
Output is correct |
5 |
Correct |
67 ms |
22272 KB |
Output is correct |
6 |
Correct |
60 ms |
21664 KB |
Output is correct |
7 |
Correct |
73 ms |
22148 KB |
Output is correct |
8 |
Correct |
0 ms |
600 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
544 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
600 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
202 ms |
33308 KB |
Output is correct |
21 |
Correct |
169 ms |
32956 KB |
Output is correct |
22 |
Correct |
171 ms |
32892 KB |
Output is correct |
23 |
Correct |
168 ms |
33524 KB |
Output is correct |
24 |
Correct |
163 ms |
34376 KB |
Output is correct |
25 |
Correct |
170 ms |
33616 KB |
Output is correct |
26 |
Correct |
192 ms |
33616 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
456 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
0 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 |
0 ms |
452 KB |
Output is correct |
34 |
Correct |
1 ms |
348 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 |
344 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
600 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
1 ms |
344 KB |
Output is correct |
45 |
Correct |
1 ms |
344 KB |
Output is correct |
46 |
Correct |
1 ms |
604 KB |
Output is correct |
47 |
Correct |
267 ms |
40792 KB |
Output is correct |
48 |
Correct |
276 ms |
40172 KB |
Output is correct |
49 |
Correct |
236 ms |
39764 KB |
Output is correct |
50 |
Correct |
241 ms |
40196 KB |
Output is correct |
51 |
Correct |
216 ms |
39948 KB |
Output is correct |
52 |
Correct |
254 ms |
40768 KB |
Output is correct |
53 |
Correct |
282 ms |
41032 KB |
Output is correct |
54 |
Correct |
4 ms |
1628 KB |
Output is correct |
55 |
Correct |
4 ms |
1628 KB |
Output is correct |
56 |
Correct |
6 ms |
1628 KB |
Output is correct |
57 |
Correct |
5 ms |
1628 KB |
Output is correct |
58 |
Correct |
6 ms |
1620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
81 ms |
23476 KB |
Output is correct |
3 |
Correct |
70 ms |
24012 KB |
Output is correct |
4 |
Correct |
55 ms |
21724 KB |
Output is correct |
5 |
Correct |
67 ms |
22272 KB |
Output is correct |
6 |
Correct |
60 ms |
21664 KB |
Output is correct |
7 |
Correct |
73 ms |
22148 KB |
Output is correct |
8 |
Correct |
0 ms |
600 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
544 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 |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
344 KB |
Output is correct |
16 |
Correct |
1 ms |
344 KB |
Output is correct |
17 |
Correct |
1 ms |
600 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
202 ms |
33308 KB |
Output is correct |
21 |
Correct |
169 ms |
32956 KB |
Output is correct |
22 |
Correct |
171 ms |
32892 KB |
Output is correct |
23 |
Correct |
168 ms |
33524 KB |
Output is correct |
24 |
Correct |
163 ms |
34376 KB |
Output is correct |
25 |
Correct |
170 ms |
33616 KB |
Output is correct |
26 |
Correct |
192 ms |
33616 KB |
Output is correct |
27 |
Correct |
1 ms |
344 KB |
Output is correct |
28 |
Correct |
1 ms |
456 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
0 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 |
0 ms |
452 KB |
Output is correct |
34 |
Correct |
1 ms |
348 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 |
344 KB |
Output is correct |
38 |
Correct |
0 ms |
348 KB |
Output is correct |
39 |
Correct |
0 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
600 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
1 ms |
344 KB |
Output is correct |
45 |
Correct |
1 ms |
344 KB |
Output is correct |
46 |
Correct |
1 ms |
604 KB |
Output is correct |
47 |
Correct |
267 ms |
40792 KB |
Output is correct |
48 |
Correct |
276 ms |
40172 KB |
Output is correct |
49 |
Correct |
236 ms |
39764 KB |
Output is correct |
50 |
Correct |
241 ms |
40196 KB |
Output is correct |
51 |
Correct |
216 ms |
39948 KB |
Output is correct |
52 |
Correct |
254 ms |
40768 KB |
Output is correct |
53 |
Correct |
282 ms |
41032 KB |
Output is correct |
54 |
Correct |
4 ms |
1628 KB |
Output is correct |
55 |
Correct |
4 ms |
1628 KB |
Output is correct |
56 |
Correct |
6 ms |
1628 KB |
Output is correct |
57 |
Correct |
5 ms |
1628 KB |
Output is correct |
58 |
Correct |
6 ms |
1620 KB |
Output is correct |
59 |
Correct |
340 ms |
49560 KB |
Output is correct |
60 |
Correct |
231 ms |
26852 KB |
Output is correct |
61 |
Correct |
307 ms |
28160 KB |
Output is correct |
62 |
Correct |
260 ms |
28752 KB |
Output is correct |
63 |
Correct |
402 ms |
49632 KB |
Output is correct |
64 |
Correct |
457 ms |
54540 KB |
Output is correct |
65 |
Correct |
444 ms |
54528 KB |
Output is correct |
66 |
Correct |
302 ms |
54536 KB |
Output is correct |
67 |
Correct |
263 ms |
52824 KB |
Output is correct |
68 |
Correct |
455 ms |
53352 KB |
Output is correct |
69 |
Correct |
488 ms |
53432 KB |
Output is correct |
70 |
Correct |
33 ms |
9524 KB |
Output is correct |
71 |
Correct |
34 ms |
9564 KB |
Output is correct |
72 |
Correct |
48 ms |
9552 KB |
Output is correct |
73 |
Correct |
36 ms |
9552 KB |
Output is correct |
74 |
Correct |
47 ms |
9552 KB |
Output is correct |
75 |
Correct |
107 ms |
10484 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
604 KB |
Output is correct |
3 |
Correct |
0 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
344 KB |
Output is correct |
5 |
Correct |
258 ms |
74208 KB |
Output is correct |
6 |
Correct |
196 ms |
65996 KB |
Output is correct |
7 |
Correct |
281 ms |
74208 KB |
Output is correct |
8 |
Correct |
398 ms |
74224 KB |
Output is correct |
9 |
Correct |
586 ms |
74504 KB |
Output is correct |
10 |
Correct |
297 ms |
74364 KB |
Output is correct |
11 |
Correct |
393 ms |
74244 KB |
Output is correct |
12 |
Correct |
589 ms |
74596 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
452 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
344 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
600 KB |
Output is correct |
26 |
Correct |
1 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
460 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
344 KB |
Output is correct |
32 |
Correct |
0 ms |
344 KB |
Output is correct |
33 |
Correct |
0 ms |
460 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 |
1 ms |
452 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 |
4 ms |
1476 KB |
Output is correct |
42 |
Correct |
5 ms |
1628 KB |
Output is correct |
43 |
Correct |
9 ms |
1508 KB |
Output is correct |
44 |
Correct |
5 ms |
1624 KB |
Output is correct |
45 |
Correct |
6 ms |
1628 KB |
Output is correct |
46 |
Correct |
30 ms |
9556 KB |
Output is correct |
47 |
Correct |
34 ms |
9528 KB |
Output is correct |
48 |
Correct |
45 ms |
9496 KB |
Output is correct |
49 |
Correct |
36 ms |
9556 KB |
Output is correct |
50 |
Correct |
47 ms |
9548 KB |
Output is correct |
51 |
Correct |
206 ms |
66668 KB |
Output is correct |
52 |
Correct |
162 ms |
58252 KB |
Output is correct |
53 |
Correct |
798 ms |
75632 KB |
Output is correct |
54 |
Correct |
794 ms |
75304 KB |
Output is correct |
55 |
Correct |
1 ms |
612 KB |
Output is correct |
56 |
Correct |
99 ms |
10340 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
81 ms |
23476 KB |
Output is correct |
59 |
Correct |
70 ms |
24012 KB |
Output is correct |
60 |
Correct |
55 ms |
21724 KB |
Output is correct |
61 |
Correct |
67 ms |
22272 KB |
Output is correct |
62 |
Correct |
60 ms |
21664 KB |
Output is correct |
63 |
Correct |
73 ms |
22148 KB |
Output is correct |
64 |
Correct |
0 ms |
600 KB |
Output is correct |
65 |
Correct |
1 ms |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
544 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 |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
344 KB |
Output is correct |
73 |
Correct |
1 ms |
600 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
202 ms |
33308 KB |
Output is correct |
77 |
Correct |
169 ms |
32956 KB |
Output is correct |
78 |
Correct |
171 ms |
32892 KB |
Output is correct |
79 |
Correct |
168 ms |
33524 KB |
Output is correct |
80 |
Correct |
163 ms |
34376 KB |
Output is correct |
81 |
Correct |
170 ms |
33616 KB |
Output is correct |
82 |
Correct |
192 ms |
33616 KB |
Output is correct |
83 |
Correct |
1 ms |
344 KB |
Output is correct |
84 |
Correct |
1 ms |
456 KB |
Output is correct |
85 |
Correct |
1 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
1 ms |
348 KB |
Output is correct |
88 |
Correct |
1 ms |
344 KB |
Output is correct |
89 |
Correct |
0 ms |
452 KB |
Output is correct |
90 |
Correct |
1 ms |
348 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 |
344 KB |
Output is correct |
94 |
Correct |
0 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
1 ms |
600 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
1 ms |
344 KB |
Output is correct |
101 |
Correct |
1 ms |
344 KB |
Output is correct |
102 |
Correct |
1 ms |
604 KB |
Output is correct |
103 |
Correct |
267 ms |
40792 KB |
Output is correct |
104 |
Correct |
276 ms |
40172 KB |
Output is correct |
105 |
Correct |
236 ms |
39764 KB |
Output is correct |
106 |
Correct |
241 ms |
40196 KB |
Output is correct |
107 |
Correct |
216 ms |
39948 KB |
Output is correct |
108 |
Correct |
254 ms |
40768 KB |
Output is correct |
109 |
Correct |
282 ms |
41032 KB |
Output is correct |
110 |
Correct |
4 ms |
1628 KB |
Output is correct |
111 |
Correct |
4 ms |
1628 KB |
Output is correct |
112 |
Correct |
6 ms |
1628 KB |
Output is correct |
113 |
Correct |
5 ms |
1628 KB |
Output is correct |
114 |
Correct |
6 ms |
1620 KB |
Output is correct |
115 |
Correct |
340 ms |
49560 KB |
Output is correct |
116 |
Correct |
231 ms |
26852 KB |
Output is correct |
117 |
Correct |
307 ms |
28160 KB |
Output is correct |
118 |
Correct |
260 ms |
28752 KB |
Output is correct |
119 |
Correct |
402 ms |
49632 KB |
Output is correct |
120 |
Correct |
457 ms |
54540 KB |
Output is correct |
121 |
Correct |
444 ms |
54528 KB |
Output is correct |
122 |
Correct |
302 ms |
54536 KB |
Output is correct |
123 |
Correct |
263 ms |
52824 KB |
Output is correct |
124 |
Correct |
455 ms |
53352 KB |
Output is correct |
125 |
Correct |
488 ms |
53432 KB |
Output is correct |
126 |
Correct |
33 ms |
9524 KB |
Output is correct |
127 |
Correct |
34 ms |
9564 KB |
Output is correct |
128 |
Correct |
48 ms |
9552 KB |
Output is correct |
129 |
Correct |
36 ms |
9552 KB |
Output is correct |
130 |
Correct |
47 ms |
9552 KB |
Output is correct |
131 |
Correct |
107 ms |
10484 KB |
Output is correct |
132 |
Correct |
1709 ms |
126600 KB |
Output is correct |
133 |
Correct |
1623 ms |
126268 KB |
Output is correct |
134 |
Correct |
1727 ms |
126140 KB |
Output is correct |
135 |
Correct |
1605 ms |
126104 KB |
Output is correct |
136 |
Correct |
1660 ms |
125632 KB |
Output is correct |
137 |
Correct |
1020 ms |
87412 KB |
Output is correct |
138 |
Correct |
968 ms |
87416 KB |
Output is correct |
139 |
Correct |
502 ms |
117836 KB |
Output is correct |
140 |
Correct |
465 ms |
110076 KB |
Output is correct |
141 |
Correct |
1928 ms |
127060 KB |
Output is correct |
142 |
Correct |
1975 ms |
127004 KB |
Output is correct |