# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
796024 |
2023-07-28T04:48:13 Z |
박상훈(#10069) |
Council (JOI23_council) |
C++17 |
|
1014 ms |
25792 KB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr int INF = 1e9 + 100;
int a[300300], cst[1<<20];
int que[1<<20], ptl, ptr;
vector<int> solve(int n, int m){
vector<int> ans = {-1};
for (int z=0;z<(1<<m);z++) cst[z] = INF; // 1 최소 개수
int fuck1 = 0, fuck2 = 0;
int up = 0, down = 0;
for (int j=0;j<m;j++){
int cnt = 0;
for (int i=1;i<=n;i++) if (a[i]&(1<<j)) cnt++;
if (cnt==n/2) fuck1 |= 1<<j;
else if (cnt==n/2 + 1) fuck2 |= 1<<j;
else if (cnt > n/2 + 1) up |= 1<<j;
else down |= 1<<j;
}
for (int i=1;i<=n;i++){
int fuck = 0;
int good = 0, bad = 0;
int msk = 0;
for (int j=0;j<m;j++){
if (up&(1<<j)) good++;
else if (down&(1<<j)) bad++;
else if (fuck1&(1<<j)){
if (a[i]&(1<<j)) bad++;
else fuck |= 1<<j;
}
else{
assert(fuck2&(1<<j));
if (a[i]&(1<<j)) fuck |= 1<<j;
else good++;
}
if (!(a[i]&(1<<j))) msk |= 1<<j;
}
// printf("ok i = %d / good = %d, bad = %d / fuck = %d / cst = %d\n", i, good, bad, fuck, cst[fuck]);
ans.push_back(m - bad - cst[fuck]);
ptl = ptr = 0;
if (cst[msk] <= 0) continue;
cst[msk] = 0;
que[ptr++] = msk;
while(ptl < ptr){
int cur = que[ptl++];
for (int j=0;j<m;j++){
int nxt = cur ^ (1<<j);
int val = __builtin_popcount(nxt & a[i]);
if (cst[nxt] <= val) continue;
// printf(" update %d -> %d: %d -> %d\n", cur, nxt, cst[nxt], val);
cst[nxt] = val;
que[ptr++] = nxt;
}
}
}
return ans;
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int n, m;
cin >> n >> m;
for (int i=1;i<=n;i++){
for (int j=0;j<m;j++){
char x;
cin >> x;
assert(x=='0' || x=='1');
if (x=='1') a[i] |= 1<<j;
}
}
auto ans1 = solve(n, m);
reverse(a+1, a+n+1);
auto ans2 = solve(n, m);
reverse(ans2.begin()+1, ans2.end());
for (int i=1;i<=n;i++) printf("%d\n", max(ans1[i], ans2[i]));
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
339 ms |
8512 KB |
Output is correct |
6 |
Correct |
161 ms |
8520 KB |
Output is correct |
7 |
Correct |
420 ms |
8512 KB |
Output is correct |
8 |
Correct |
521 ms |
8408 KB |
Output is correct |
9 |
Correct |
687 ms |
8524 KB |
Output is correct |
10 |
Correct |
342 ms |
8508 KB |
Output is correct |
11 |
Correct |
427 ms |
8512 KB |
Output is correct |
12 |
Correct |
714 ms |
8516 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
0 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
0 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
0 ms |
340 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
0 ms |
340 KB |
Output is correct |
36 |
Correct |
0 ms |
340 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
2 ms |
468 KB |
Output is correct |
42 |
Correct |
3 ms |
340 KB |
Output is correct |
43 |
Correct |
4 ms |
468 KB |
Output is correct |
44 |
Correct |
3 ms |
468 KB |
Output is correct |
45 |
Correct |
4 ms |
468 KB |
Output is correct |
46 |
Correct |
28 ms |
1364 KB |
Output is correct |
47 |
Correct |
24 ms |
1364 KB |
Output is correct |
48 |
Correct |
32 ms |
1260 KB |
Output is correct |
49 |
Correct |
28 ms |
1364 KB |
Output is correct |
50 |
Correct |
32 ms |
1364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
339 ms |
8512 KB |
Output is correct |
6 |
Correct |
161 ms |
8520 KB |
Output is correct |
7 |
Correct |
420 ms |
8512 KB |
Output is correct |
8 |
Correct |
521 ms |
8408 KB |
Output is correct |
9 |
Correct |
687 ms |
8524 KB |
Output is correct |
10 |
Correct |
342 ms |
8508 KB |
Output is correct |
11 |
Correct |
427 ms |
8512 KB |
Output is correct |
12 |
Correct |
714 ms |
8516 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
0 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
0 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
0 ms |
340 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
0 ms |
340 KB |
Output is correct |
36 |
Correct |
0 ms |
340 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
2 ms |
468 KB |
Output is correct |
42 |
Correct |
3 ms |
340 KB |
Output is correct |
43 |
Correct |
4 ms |
468 KB |
Output is correct |
44 |
Correct |
3 ms |
468 KB |
Output is correct |
45 |
Correct |
4 ms |
468 KB |
Output is correct |
46 |
Correct |
28 ms |
1364 KB |
Output is correct |
47 |
Correct |
24 ms |
1364 KB |
Output is correct |
48 |
Correct |
32 ms |
1260 KB |
Output is correct |
49 |
Correct |
28 ms |
1364 KB |
Output is correct |
50 |
Correct |
32 ms |
1364 KB |
Output is correct |
51 |
Correct |
172 ms |
8556 KB |
Output is correct |
52 |
Correct |
161 ms |
8512 KB |
Output is correct |
53 |
Correct |
848 ms |
8560 KB |
Output is correct |
54 |
Correct |
729 ms |
8556 KB |
Output is correct |
55 |
Correct |
1 ms |
340 KB |
Output is correct |
56 |
Correct |
50 ms |
1400 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
39 ms |
5684 KB |
Output is correct |
3 |
Correct |
33 ms |
6828 KB |
Output is correct |
4 |
Correct |
32 ms |
6348 KB |
Output is correct |
5 |
Correct |
42 ms |
6856 KB |
Output is correct |
6 |
Correct |
33 ms |
6348 KB |
Output is correct |
7 |
Correct |
41 ms |
6920 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
0 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
328 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
336 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
39 ms |
5684 KB |
Output is correct |
3 |
Correct |
33 ms |
6828 KB |
Output is correct |
4 |
Correct |
32 ms |
6348 KB |
Output is correct |
5 |
Correct |
42 ms |
6856 KB |
Output is correct |
6 |
Correct |
33 ms |
6348 KB |
Output is correct |
7 |
Correct |
41 ms |
6920 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
0 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
328 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
336 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
328 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
109 ms |
11624 KB |
Output is correct |
21 |
Correct |
104 ms |
10944 KB |
Output is correct |
22 |
Correct |
98 ms |
11016 KB |
Output is correct |
23 |
Correct |
71 ms |
11604 KB |
Output is correct |
24 |
Correct |
68 ms |
11552 KB |
Output is correct |
25 |
Correct |
117 ms |
11576 KB |
Output is correct |
26 |
Correct |
124 ms |
11544 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
328 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
328 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
1 ms |
324 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
340 KB |
Output is correct |
37 |
Correct |
0 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
340 KB |
Output is correct |
43 |
Correct |
1 ms |
340 KB |
Output is correct |
44 |
Correct |
1 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
332 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
39 ms |
5684 KB |
Output is correct |
3 |
Correct |
33 ms |
6828 KB |
Output is correct |
4 |
Correct |
32 ms |
6348 KB |
Output is correct |
5 |
Correct |
42 ms |
6856 KB |
Output is correct |
6 |
Correct |
33 ms |
6348 KB |
Output is correct |
7 |
Correct |
41 ms |
6920 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
0 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
328 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
336 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
328 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
109 ms |
11624 KB |
Output is correct |
21 |
Correct |
104 ms |
10944 KB |
Output is correct |
22 |
Correct |
98 ms |
11016 KB |
Output is correct |
23 |
Correct |
71 ms |
11604 KB |
Output is correct |
24 |
Correct |
68 ms |
11552 KB |
Output is correct |
25 |
Correct |
117 ms |
11576 KB |
Output is correct |
26 |
Correct |
124 ms |
11544 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
328 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
328 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
1 ms |
324 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
340 KB |
Output is correct |
37 |
Correct |
0 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
340 KB |
Output is correct |
43 |
Correct |
1 ms |
340 KB |
Output is correct |
44 |
Correct |
1 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
332 KB |
Output is correct |
46 |
Correct |
1 ms |
340 KB |
Output is correct |
47 |
Correct |
160 ms |
14016 KB |
Output is correct |
48 |
Correct |
139 ms |
13392 KB |
Output is correct |
49 |
Correct |
139 ms |
13336 KB |
Output is correct |
50 |
Correct |
92 ms |
14056 KB |
Output is correct |
51 |
Correct |
87 ms |
14020 KB |
Output is correct |
52 |
Correct |
159 ms |
14036 KB |
Output is correct |
53 |
Correct |
163 ms |
14076 KB |
Output is correct |
54 |
Correct |
3 ms |
468 KB |
Output is correct |
55 |
Correct |
3 ms |
468 KB |
Output is correct |
56 |
Correct |
4 ms |
468 KB |
Output is correct |
57 |
Correct |
3 ms |
456 KB |
Output is correct |
58 |
Correct |
5 ms |
468 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
39 ms |
5684 KB |
Output is correct |
3 |
Correct |
33 ms |
6828 KB |
Output is correct |
4 |
Correct |
32 ms |
6348 KB |
Output is correct |
5 |
Correct |
42 ms |
6856 KB |
Output is correct |
6 |
Correct |
33 ms |
6348 KB |
Output is correct |
7 |
Correct |
41 ms |
6920 KB |
Output is correct |
8 |
Correct |
0 ms |
340 KB |
Output is correct |
9 |
Correct |
1 ms |
340 KB |
Output is correct |
10 |
Correct |
1 ms |
340 KB |
Output is correct |
11 |
Correct |
0 ms |
340 KB |
Output is correct |
12 |
Correct |
1 ms |
328 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
336 KB |
Output is correct |
15 |
Correct |
1 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
340 KB |
Output is correct |
17 |
Correct |
1 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
328 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
109 ms |
11624 KB |
Output is correct |
21 |
Correct |
104 ms |
10944 KB |
Output is correct |
22 |
Correct |
98 ms |
11016 KB |
Output is correct |
23 |
Correct |
71 ms |
11604 KB |
Output is correct |
24 |
Correct |
68 ms |
11552 KB |
Output is correct |
25 |
Correct |
117 ms |
11576 KB |
Output is correct |
26 |
Correct |
124 ms |
11544 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
1 ms |
328 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
328 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
1 ms |
340 KB |
Output is correct |
33 |
Correct |
1 ms |
324 KB |
Output is correct |
34 |
Correct |
1 ms |
340 KB |
Output is correct |
35 |
Correct |
1 ms |
340 KB |
Output is correct |
36 |
Correct |
1 ms |
340 KB |
Output is correct |
37 |
Correct |
0 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
340 KB |
Output is correct |
43 |
Correct |
1 ms |
340 KB |
Output is correct |
44 |
Correct |
1 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
332 KB |
Output is correct |
46 |
Correct |
1 ms |
340 KB |
Output is correct |
47 |
Correct |
160 ms |
14016 KB |
Output is correct |
48 |
Correct |
139 ms |
13392 KB |
Output is correct |
49 |
Correct |
139 ms |
13336 KB |
Output is correct |
50 |
Correct |
92 ms |
14056 KB |
Output is correct |
51 |
Correct |
87 ms |
14020 KB |
Output is correct |
52 |
Correct |
159 ms |
14036 KB |
Output is correct |
53 |
Correct |
163 ms |
14076 KB |
Output is correct |
54 |
Correct |
3 ms |
468 KB |
Output is correct |
55 |
Correct |
3 ms |
468 KB |
Output is correct |
56 |
Correct |
4 ms |
468 KB |
Output is correct |
57 |
Correct |
3 ms |
456 KB |
Output is correct |
58 |
Correct |
5 ms |
468 KB |
Output is correct |
59 |
Correct |
195 ms |
15612 KB |
Output is correct |
60 |
Correct |
120 ms |
6896 KB |
Output is correct |
61 |
Correct |
137 ms |
7280 KB |
Output is correct |
62 |
Correct |
139 ms |
7516 KB |
Output is correct |
63 |
Correct |
189 ms |
15548 KB |
Output is correct |
64 |
Correct |
231 ms |
16724 KB |
Output is correct |
65 |
Correct |
237 ms |
16640 KB |
Output is correct |
66 |
Correct |
111 ms |
16708 KB |
Output is correct |
67 |
Correct |
111 ms |
16668 KB |
Output is correct |
68 |
Correct |
243 ms |
16668 KB |
Output is correct |
69 |
Correct |
257 ms |
16680 KB |
Output is correct |
70 |
Correct |
27 ms |
1364 KB |
Output is correct |
71 |
Correct |
26 ms |
1364 KB |
Output is correct |
72 |
Correct |
31 ms |
1364 KB |
Output is correct |
73 |
Correct |
27 ms |
1348 KB |
Output is correct |
74 |
Correct |
32 ms |
1364 KB |
Output is correct |
75 |
Correct |
50 ms |
1492 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
339 ms |
8512 KB |
Output is correct |
6 |
Correct |
161 ms |
8520 KB |
Output is correct |
7 |
Correct |
420 ms |
8512 KB |
Output is correct |
8 |
Correct |
521 ms |
8408 KB |
Output is correct |
9 |
Correct |
687 ms |
8524 KB |
Output is correct |
10 |
Correct |
342 ms |
8508 KB |
Output is correct |
11 |
Correct |
427 ms |
8512 KB |
Output is correct |
12 |
Correct |
714 ms |
8516 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
0 ms |
340 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
0 ms |
340 KB |
Output is correct |
17 |
Correct |
0 ms |
340 KB |
Output is correct |
18 |
Correct |
0 ms |
340 KB |
Output is correct |
19 |
Correct |
0 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
340 KB |
Output is correct |
21 |
Correct |
0 ms |
340 KB |
Output is correct |
22 |
Correct |
1 ms |
340 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
0 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
340 KB |
Output is correct |
27 |
Correct |
0 ms |
340 KB |
Output is correct |
28 |
Correct |
0 ms |
340 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
340 KB |
Output is correct |
32 |
Correct |
0 ms |
340 KB |
Output is correct |
33 |
Correct |
0 ms |
340 KB |
Output is correct |
34 |
Correct |
0 ms |
340 KB |
Output is correct |
35 |
Correct |
0 ms |
340 KB |
Output is correct |
36 |
Correct |
0 ms |
340 KB |
Output is correct |
37 |
Correct |
1 ms |
340 KB |
Output is correct |
38 |
Correct |
0 ms |
340 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
2 ms |
468 KB |
Output is correct |
42 |
Correct |
3 ms |
340 KB |
Output is correct |
43 |
Correct |
4 ms |
468 KB |
Output is correct |
44 |
Correct |
3 ms |
468 KB |
Output is correct |
45 |
Correct |
4 ms |
468 KB |
Output is correct |
46 |
Correct |
28 ms |
1364 KB |
Output is correct |
47 |
Correct |
24 ms |
1364 KB |
Output is correct |
48 |
Correct |
32 ms |
1260 KB |
Output is correct |
49 |
Correct |
28 ms |
1364 KB |
Output is correct |
50 |
Correct |
32 ms |
1364 KB |
Output is correct |
51 |
Correct |
172 ms |
8556 KB |
Output is correct |
52 |
Correct |
161 ms |
8512 KB |
Output is correct |
53 |
Correct |
848 ms |
8560 KB |
Output is correct |
54 |
Correct |
729 ms |
8556 KB |
Output is correct |
55 |
Correct |
1 ms |
340 KB |
Output is correct |
56 |
Correct |
50 ms |
1400 KB |
Output is correct |
57 |
Correct |
0 ms |
340 KB |
Output is correct |
58 |
Correct |
39 ms |
5684 KB |
Output is correct |
59 |
Correct |
33 ms |
6828 KB |
Output is correct |
60 |
Correct |
32 ms |
6348 KB |
Output is correct |
61 |
Correct |
42 ms |
6856 KB |
Output is correct |
62 |
Correct |
33 ms |
6348 KB |
Output is correct |
63 |
Correct |
41 ms |
6920 KB |
Output is correct |
64 |
Correct |
0 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
0 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
328 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
336 KB |
Output is correct |
71 |
Correct |
1 ms |
340 KB |
Output is correct |
72 |
Correct |
1 ms |
340 KB |
Output is correct |
73 |
Correct |
1 ms |
340 KB |
Output is correct |
74 |
Correct |
0 ms |
328 KB |
Output is correct |
75 |
Correct |
1 ms |
340 KB |
Output is correct |
76 |
Correct |
109 ms |
11624 KB |
Output is correct |
77 |
Correct |
104 ms |
10944 KB |
Output is correct |
78 |
Correct |
98 ms |
11016 KB |
Output is correct |
79 |
Correct |
71 ms |
11604 KB |
Output is correct |
80 |
Correct |
68 ms |
11552 KB |
Output is correct |
81 |
Correct |
117 ms |
11576 KB |
Output is correct |
82 |
Correct |
124 ms |
11544 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
328 KB |
Output is correct |
85 |
Correct |
0 ms |
340 KB |
Output is correct |
86 |
Correct |
1 ms |
328 KB |
Output is correct |
87 |
Correct |
1 ms |
340 KB |
Output is correct |
88 |
Correct |
1 ms |
340 KB |
Output is correct |
89 |
Correct |
1 ms |
324 KB |
Output is correct |
90 |
Correct |
1 ms |
340 KB |
Output is correct |
91 |
Correct |
1 ms |
340 KB |
Output is correct |
92 |
Correct |
1 ms |
340 KB |
Output is correct |
93 |
Correct |
0 ms |
340 KB |
Output is correct |
94 |
Correct |
0 ms |
340 KB |
Output is correct |
95 |
Correct |
1 ms |
340 KB |
Output is correct |
96 |
Correct |
1 ms |
340 KB |
Output is correct |
97 |
Correct |
1 ms |
340 KB |
Output is correct |
98 |
Correct |
1 ms |
340 KB |
Output is correct |
99 |
Correct |
1 ms |
340 KB |
Output is correct |
100 |
Correct |
1 ms |
340 KB |
Output is correct |
101 |
Correct |
1 ms |
332 KB |
Output is correct |
102 |
Correct |
1 ms |
340 KB |
Output is correct |
103 |
Correct |
160 ms |
14016 KB |
Output is correct |
104 |
Correct |
139 ms |
13392 KB |
Output is correct |
105 |
Correct |
139 ms |
13336 KB |
Output is correct |
106 |
Correct |
92 ms |
14056 KB |
Output is correct |
107 |
Correct |
87 ms |
14020 KB |
Output is correct |
108 |
Correct |
159 ms |
14036 KB |
Output is correct |
109 |
Correct |
163 ms |
14076 KB |
Output is correct |
110 |
Correct |
3 ms |
468 KB |
Output is correct |
111 |
Correct |
3 ms |
468 KB |
Output is correct |
112 |
Correct |
4 ms |
468 KB |
Output is correct |
113 |
Correct |
3 ms |
456 KB |
Output is correct |
114 |
Correct |
5 ms |
468 KB |
Output is correct |
115 |
Correct |
195 ms |
15612 KB |
Output is correct |
116 |
Correct |
120 ms |
6896 KB |
Output is correct |
117 |
Correct |
137 ms |
7280 KB |
Output is correct |
118 |
Correct |
139 ms |
7516 KB |
Output is correct |
119 |
Correct |
189 ms |
15548 KB |
Output is correct |
120 |
Correct |
231 ms |
16724 KB |
Output is correct |
121 |
Correct |
237 ms |
16640 KB |
Output is correct |
122 |
Correct |
111 ms |
16708 KB |
Output is correct |
123 |
Correct |
111 ms |
16668 KB |
Output is correct |
124 |
Correct |
243 ms |
16668 KB |
Output is correct |
125 |
Correct |
257 ms |
16680 KB |
Output is correct |
126 |
Correct |
27 ms |
1364 KB |
Output is correct |
127 |
Correct |
26 ms |
1364 KB |
Output is correct |
128 |
Correct |
31 ms |
1364 KB |
Output is correct |
129 |
Correct |
27 ms |
1348 KB |
Output is correct |
130 |
Correct |
32 ms |
1364 KB |
Output is correct |
131 |
Correct |
50 ms |
1492 KB |
Output is correct |
132 |
Correct |
788 ms |
25616 KB |
Output is correct |
133 |
Correct |
670 ms |
25764 KB |
Output is correct |
134 |
Correct |
552 ms |
25668 KB |
Output is correct |
135 |
Correct |
927 ms |
25780 KB |
Output is correct |
136 |
Correct |
1014 ms |
25668 KB |
Output is correct |
137 |
Correct |
532 ms |
21008 KB |
Output is correct |
138 |
Correct |
547 ms |
20888 KB |
Output is correct |
139 |
Correct |
304 ms |
25612 KB |
Output is correct |
140 |
Correct |
351 ms |
25764 KB |
Output is correct |
141 |
Correct |
944 ms |
25668 KB |
Output is correct |
142 |
Correct |
1014 ms |
25792 KB |
Output is correct |