#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define all(a) a.begin(), a.end()
const int N = 3e5;
int a[N][20];
pair<int, int> dp[2][1024][1024];
int cnt[20], bits[N], bpc[1<<20];
int n, m;
signed main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin >> n >> m;
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
cin >> a[i][j];
}
}
for(int i = 0;i < 1<<20; i++){
bpc[i] = __builtin_popcount(i);
}
for(int i = 0;i < 2; i++){
for(int j = 0;j < 1024; j++){
for(int k = 0;k < 1024; k++){
dp[i][j][k] = {-1, -1};
}
}
}
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
bits[i]+= (a[i][j] << j);
cnt[j]+= a[i][j];
}
int m0 = bits[i] & 1023;
int m1 = bits[i]>>10;
for(int j = 0;j < 1024; j++){
int c = bpc[m1 & j];
if(dp[0][m0][j].ff == -1){
dp[0][m0][j] = {c, i};
}else{
if(dp[0][m0][j].ff >= c){
dp[1][m0][j] = dp[0][m0][j];
dp[0][m0][j] = {c, i};
}else if(dp[1][m0][j].ff == -1 || dp[1][m0][j].ff >= c){
dp[1][m0][j] = {c, i};
}
}
}
}
for(int i = 0;i < n; i++){
int mask = 0, bc = 0;
for(int j = 0;j < m; j++){
if(bits[i] & (1<<j)){
if(cnt[j] == n/2 + 1){
bc++;
mask+= (1<<j);
}else if(cnt[j] > n/2+1){
bc++;
}
}else{
if(cnt[j] > n / 2) bc++;
else if(cnt[j] == n / 2){
mask+= (1<<j);
bc++;
}
}
}
int mn = m;
int m0 = mask & 1023;
int m1 = mask >> 10;
for(int j = 0;j < 1024; j++){
int c = bpc[m0 & j];
if(dp[0][j][m1].ff == -1) continue;
int kek = 20;
if(dp[0][j][m1].ss != i && dp[0][j][m1].ss != -1){
kek = min(kek, dp[0][j][m1].ff);
}
else if(dp[1][j][m1].ss != i && dp[1][j][m1].ss != -1){
kek = min(kek, dp[1][j][m1].ff);
}
mn = min(mn, kek + c);
}
cout << bc-mn << '\n';
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23128 KB |
Output is correct |
2 |
Correct |
6 ms |
23380 KB |
Output is correct |
3 |
Correct |
6 ms |
23128 KB |
Output is correct |
4 |
Correct |
6 ms |
23132 KB |
Output is correct |
5 |
Correct |
6 ms |
23132 KB |
Output is correct |
6 |
Correct |
9 ms |
23132 KB |
Output is correct |
7 |
Correct |
6 ms |
23132 KB |
Output is correct |
8 |
Correct |
6 ms |
23132 KB |
Output is correct |
9 |
Correct |
9 ms |
23224 KB |
Output is correct |
10 |
Correct |
6 ms |
23132 KB |
Output is correct |
11 |
Correct |
6 ms |
23132 KB |
Output is correct |
12 |
Correct |
8 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23384 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23132 KB |
Output is correct |
16 |
Correct |
6 ms |
23132 KB |
Output is correct |
17 |
Correct |
8 ms |
23132 KB |
Output is correct |
18 |
Correct |
7 ms |
23212 KB |
Output is correct |
19 |
Correct |
6 ms |
23132 KB |
Output is correct |
20 |
Correct |
6 ms |
23132 KB |
Output is correct |
21 |
Correct |
8 ms |
23132 KB |
Output is correct |
22 |
Correct |
7 ms |
23212 KB |
Output is correct |
23 |
Correct |
6 ms |
23128 KB |
Output is correct |
24 |
Correct |
6 ms |
23132 KB |
Output is correct |
25 |
Correct |
6 ms |
23128 KB |
Output is correct |
26 |
Correct |
8 ms |
23132 KB |
Output is correct |
27 |
Correct |
7 ms |
23132 KB |
Output is correct |
28 |
Correct |
7 ms |
23128 KB |
Output is correct |
29 |
Correct |
6 ms |
23132 KB |
Output is correct |
30 |
Correct |
6 ms |
23132 KB |
Output is correct |
31 |
Correct |
8 ms |
23132 KB |
Output is correct |
32 |
Correct |
6 ms |
23132 KB |
Output is correct |
33 |
Correct |
6 ms |
23180 KB |
Output is correct |
34 |
Correct |
6 ms |
23132 KB |
Output is correct |
35 |
Correct |
8 ms |
23220 KB |
Output is correct |
36 |
Correct |
6 ms |
23132 KB |
Output is correct |
37 |
Correct |
7 ms |
23132 KB |
Output is correct |
38 |
Correct |
6 ms |
23132 KB |
Output is correct |
39 |
Correct |
7 ms |
23132 KB |
Output is correct |
40 |
Correct |
8 ms |
23132 KB |
Output is correct |
41 |
Correct |
6 ms |
23132 KB |
Output is correct |
42 |
Correct |
6 ms |
23172 KB |
Output is correct |
43 |
Correct |
7 ms |
23132 KB |
Output is correct |
44 |
Correct |
6 ms |
23132 KB |
Output is correct |
45 |
Correct |
6 ms |
23132 KB |
Output is correct |
46 |
Correct |
7 ms |
23132 KB |
Output is correct |
47 |
Correct |
6 ms |
23128 KB |
Output is correct |
48 |
Correct |
6 ms |
23128 KB |
Output is correct |
49 |
Correct |
6 ms |
23132 KB |
Output is correct |
50 |
Correct |
6 ms |
23132 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23128 KB |
Output is correct |
2 |
Correct |
6 ms |
23380 KB |
Output is correct |
3 |
Correct |
6 ms |
23128 KB |
Output is correct |
4 |
Correct |
6 ms |
23132 KB |
Output is correct |
5 |
Correct |
6 ms |
23132 KB |
Output is correct |
6 |
Correct |
9 ms |
23132 KB |
Output is correct |
7 |
Correct |
6 ms |
23132 KB |
Output is correct |
8 |
Correct |
6 ms |
23132 KB |
Output is correct |
9 |
Correct |
9 ms |
23224 KB |
Output is correct |
10 |
Correct |
6 ms |
23132 KB |
Output is correct |
11 |
Correct |
6 ms |
23132 KB |
Output is correct |
12 |
Correct |
8 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23384 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23132 KB |
Output is correct |
16 |
Correct |
6 ms |
23132 KB |
Output is correct |
17 |
Correct |
8 ms |
23132 KB |
Output is correct |
18 |
Correct |
7 ms |
23212 KB |
Output is correct |
19 |
Correct |
6 ms |
23132 KB |
Output is correct |
20 |
Correct |
6 ms |
23132 KB |
Output is correct |
21 |
Correct |
8 ms |
23132 KB |
Output is correct |
22 |
Correct |
7 ms |
23212 KB |
Output is correct |
23 |
Correct |
6 ms |
23128 KB |
Output is correct |
24 |
Correct |
6 ms |
23132 KB |
Output is correct |
25 |
Correct |
6 ms |
23128 KB |
Output is correct |
26 |
Correct |
8 ms |
23132 KB |
Output is correct |
27 |
Correct |
7 ms |
23132 KB |
Output is correct |
28 |
Correct |
7 ms |
23128 KB |
Output is correct |
29 |
Correct |
6 ms |
23132 KB |
Output is correct |
30 |
Correct |
6 ms |
23132 KB |
Output is correct |
31 |
Correct |
8 ms |
23132 KB |
Output is correct |
32 |
Correct |
6 ms |
23132 KB |
Output is correct |
33 |
Correct |
6 ms |
23180 KB |
Output is correct |
34 |
Correct |
6 ms |
23132 KB |
Output is correct |
35 |
Correct |
8 ms |
23220 KB |
Output is correct |
36 |
Correct |
6 ms |
23132 KB |
Output is correct |
37 |
Correct |
7 ms |
23132 KB |
Output is correct |
38 |
Correct |
6 ms |
23132 KB |
Output is correct |
39 |
Correct |
7 ms |
23132 KB |
Output is correct |
40 |
Correct |
8 ms |
23132 KB |
Output is correct |
41 |
Correct |
6 ms |
23132 KB |
Output is correct |
42 |
Correct |
6 ms |
23172 KB |
Output is correct |
43 |
Correct |
7 ms |
23132 KB |
Output is correct |
44 |
Correct |
6 ms |
23132 KB |
Output is correct |
45 |
Correct |
6 ms |
23132 KB |
Output is correct |
46 |
Correct |
7 ms |
23132 KB |
Output is correct |
47 |
Correct |
6 ms |
23128 KB |
Output is correct |
48 |
Correct |
6 ms |
23128 KB |
Output is correct |
49 |
Correct |
6 ms |
23132 KB |
Output is correct |
50 |
Correct |
6 ms |
23132 KB |
Output is correct |
51 |
Correct |
32 ms |
23132 KB |
Output is correct |
52 |
Correct |
34 ms |
23128 KB |
Output is correct |
53 |
Correct |
28 ms |
23384 KB |
Output is correct |
54 |
Correct |
26 ms |
23132 KB |
Output is correct |
55 |
Correct |
32 ms |
23216 KB |
Output is correct |
56 |
Correct |
24 ms |
23132 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23132 KB |
Output is correct |
2 |
Correct |
2475 ms |
46200 KB |
Output is correct |
3 |
Correct |
2446 ms |
46164 KB |
Output is correct |
4 |
Correct |
2407 ms |
46676 KB |
Output is correct |
5 |
Correct |
2438 ms |
46472 KB |
Output is correct |
6 |
Correct |
2433 ms |
46296 KB |
Output is correct |
7 |
Correct |
2430 ms |
46200 KB |
Output is correct |
8 |
Correct |
6 ms |
23200 KB |
Output is correct |
9 |
Correct |
6 ms |
23172 KB |
Output is correct |
10 |
Correct |
8 ms |
23184 KB |
Output is correct |
11 |
Correct |
7 ms |
23132 KB |
Output is correct |
12 |
Correct |
11 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23132 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23180 KB |
Output is correct |
16 |
Correct |
11 ms |
23132 KB |
Output is correct |
17 |
Correct |
32 ms |
23132 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23132 KB |
Output is correct |
2 |
Correct |
2475 ms |
46200 KB |
Output is correct |
3 |
Correct |
2446 ms |
46164 KB |
Output is correct |
4 |
Correct |
2407 ms |
46676 KB |
Output is correct |
5 |
Correct |
2438 ms |
46472 KB |
Output is correct |
6 |
Correct |
2433 ms |
46296 KB |
Output is correct |
7 |
Correct |
2430 ms |
46200 KB |
Output is correct |
8 |
Correct |
6 ms |
23200 KB |
Output is correct |
9 |
Correct |
6 ms |
23172 KB |
Output is correct |
10 |
Correct |
8 ms |
23184 KB |
Output is correct |
11 |
Correct |
7 ms |
23132 KB |
Output is correct |
12 |
Correct |
11 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23132 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23180 KB |
Output is correct |
16 |
Correct |
11 ms |
23132 KB |
Output is correct |
17 |
Correct |
32 ms |
23132 KB |
Output is correct |
18 |
Correct |
6 ms |
23212 KB |
Output is correct |
19 |
Correct |
6 ms |
23132 KB |
Output is correct |
20 |
Correct |
2379 ms |
46068 KB |
Output is correct |
21 |
Correct |
2461 ms |
46328 KB |
Output is correct |
22 |
Correct |
2444 ms |
46032 KB |
Output is correct |
23 |
Correct |
2605 ms |
46852 KB |
Output is correct |
24 |
Correct |
2622 ms |
46180 KB |
Output is correct |
25 |
Correct |
1850 ms |
46308 KB |
Output is correct |
26 |
Correct |
1682 ms |
46056 KB |
Output is correct |
27 |
Correct |
8 ms |
23180 KB |
Output is correct |
28 |
Correct |
6 ms |
23132 KB |
Output is correct |
29 |
Correct |
6 ms |
23212 KB |
Output is correct |
30 |
Correct |
6 ms |
23132 KB |
Output is correct |
31 |
Correct |
12 ms |
23132 KB |
Output is correct |
32 |
Correct |
6 ms |
23132 KB |
Output is correct |
33 |
Correct |
6 ms |
23132 KB |
Output is correct |
34 |
Correct |
8 ms |
23132 KB |
Output is correct |
35 |
Correct |
9 ms |
23208 KB |
Output is correct |
36 |
Correct |
9 ms |
23184 KB |
Output is correct |
37 |
Correct |
6 ms |
23132 KB |
Output is correct |
38 |
Correct |
7 ms |
23132 KB |
Output is correct |
39 |
Correct |
10 ms |
23128 KB |
Output is correct |
40 |
Correct |
7 ms |
23132 KB |
Output is correct |
41 |
Correct |
7 ms |
23132 KB |
Output is correct |
42 |
Correct |
7 ms |
23196 KB |
Output is correct |
43 |
Correct |
8 ms |
23128 KB |
Output is correct |
44 |
Correct |
6 ms |
23132 KB |
Output is correct |
45 |
Correct |
8 ms |
23132 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23132 KB |
Output is correct |
2 |
Correct |
2475 ms |
46200 KB |
Output is correct |
3 |
Correct |
2446 ms |
46164 KB |
Output is correct |
4 |
Correct |
2407 ms |
46676 KB |
Output is correct |
5 |
Correct |
2438 ms |
46472 KB |
Output is correct |
6 |
Correct |
2433 ms |
46296 KB |
Output is correct |
7 |
Correct |
2430 ms |
46200 KB |
Output is correct |
8 |
Correct |
6 ms |
23200 KB |
Output is correct |
9 |
Correct |
6 ms |
23172 KB |
Output is correct |
10 |
Correct |
8 ms |
23184 KB |
Output is correct |
11 |
Correct |
7 ms |
23132 KB |
Output is correct |
12 |
Correct |
11 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23132 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23180 KB |
Output is correct |
16 |
Correct |
11 ms |
23132 KB |
Output is correct |
17 |
Correct |
32 ms |
23132 KB |
Output is correct |
18 |
Correct |
6 ms |
23212 KB |
Output is correct |
19 |
Correct |
6 ms |
23132 KB |
Output is correct |
20 |
Correct |
2379 ms |
46068 KB |
Output is correct |
21 |
Correct |
2461 ms |
46328 KB |
Output is correct |
22 |
Correct |
2444 ms |
46032 KB |
Output is correct |
23 |
Correct |
2605 ms |
46852 KB |
Output is correct |
24 |
Correct |
2622 ms |
46180 KB |
Output is correct |
25 |
Correct |
1850 ms |
46308 KB |
Output is correct |
26 |
Correct |
1682 ms |
46056 KB |
Output is correct |
27 |
Correct |
8 ms |
23180 KB |
Output is correct |
28 |
Correct |
6 ms |
23132 KB |
Output is correct |
29 |
Correct |
6 ms |
23212 KB |
Output is correct |
30 |
Correct |
6 ms |
23132 KB |
Output is correct |
31 |
Correct |
12 ms |
23132 KB |
Output is correct |
32 |
Correct |
6 ms |
23132 KB |
Output is correct |
33 |
Correct |
6 ms |
23132 KB |
Output is correct |
34 |
Correct |
8 ms |
23132 KB |
Output is correct |
35 |
Correct |
9 ms |
23208 KB |
Output is correct |
36 |
Correct |
9 ms |
23184 KB |
Output is correct |
37 |
Correct |
6 ms |
23132 KB |
Output is correct |
38 |
Correct |
7 ms |
23132 KB |
Output is correct |
39 |
Correct |
10 ms |
23128 KB |
Output is correct |
40 |
Correct |
7 ms |
23132 KB |
Output is correct |
41 |
Correct |
7 ms |
23132 KB |
Output is correct |
42 |
Correct |
7 ms |
23196 KB |
Output is correct |
43 |
Correct |
8 ms |
23128 KB |
Output is correct |
44 |
Correct |
6 ms |
23132 KB |
Output is correct |
45 |
Correct |
8 ms |
23132 KB |
Output is correct |
46 |
Correct |
7 ms |
23132 KB |
Output is correct |
47 |
Correct |
1880 ms |
46160 KB |
Output is correct |
48 |
Correct |
1959 ms |
45988 KB |
Output is correct |
49 |
Correct |
2060 ms |
46176 KB |
Output is correct |
50 |
Correct |
2667 ms |
46500 KB |
Output is correct |
51 |
Correct |
2621 ms |
46416 KB |
Output is correct |
52 |
Correct |
2246 ms |
46376 KB |
Output is correct |
53 |
Correct |
2013 ms |
46408 KB |
Output is correct |
54 |
Correct |
7 ms |
23132 KB |
Output is correct |
55 |
Correct |
6 ms |
23204 KB |
Output is correct |
56 |
Correct |
7 ms |
23196 KB |
Output is correct |
57 |
Correct |
7 ms |
23132 KB |
Output is correct |
58 |
Correct |
7 ms |
23128 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23132 KB |
Output is correct |
2 |
Correct |
2475 ms |
46200 KB |
Output is correct |
3 |
Correct |
2446 ms |
46164 KB |
Output is correct |
4 |
Correct |
2407 ms |
46676 KB |
Output is correct |
5 |
Correct |
2438 ms |
46472 KB |
Output is correct |
6 |
Correct |
2433 ms |
46296 KB |
Output is correct |
7 |
Correct |
2430 ms |
46200 KB |
Output is correct |
8 |
Correct |
6 ms |
23200 KB |
Output is correct |
9 |
Correct |
6 ms |
23172 KB |
Output is correct |
10 |
Correct |
8 ms |
23184 KB |
Output is correct |
11 |
Correct |
7 ms |
23132 KB |
Output is correct |
12 |
Correct |
11 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23132 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23180 KB |
Output is correct |
16 |
Correct |
11 ms |
23132 KB |
Output is correct |
17 |
Correct |
32 ms |
23132 KB |
Output is correct |
18 |
Correct |
6 ms |
23212 KB |
Output is correct |
19 |
Correct |
6 ms |
23132 KB |
Output is correct |
20 |
Correct |
2379 ms |
46068 KB |
Output is correct |
21 |
Correct |
2461 ms |
46328 KB |
Output is correct |
22 |
Correct |
2444 ms |
46032 KB |
Output is correct |
23 |
Correct |
2605 ms |
46852 KB |
Output is correct |
24 |
Correct |
2622 ms |
46180 KB |
Output is correct |
25 |
Correct |
1850 ms |
46308 KB |
Output is correct |
26 |
Correct |
1682 ms |
46056 KB |
Output is correct |
27 |
Correct |
8 ms |
23180 KB |
Output is correct |
28 |
Correct |
6 ms |
23132 KB |
Output is correct |
29 |
Correct |
6 ms |
23212 KB |
Output is correct |
30 |
Correct |
6 ms |
23132 KB |
Output is correct |
31 |
Correct |
12 ms |
23132 KB |
Output is correct |
32 |
Correct |
6 ms |
23132 KB |
Output is correct |
33 |
Correct |
6 ms |
23132 KB |
Output is correct |
34 |
Correct |
8 ms |
23132 KB |
Output is correct |
35 |
Correct |
9 ms |
23208 KB |
Output is correct |
36 |
Correct |
9 ms |
23184 KB |
Output is correct |
37 |
Correct |
6 ms |
23132 KB |
Output is correct |
38 |
Correct |
7 ms |
23132 KB |
Output is correct |
39 |
Correct |
10 ms |
23128 KB |
Output is correct |
40 |
Correct |
7 ms |
23132 KB |
Output is correct |
41 |
Correct |
7 ms |
23132 KB |
Output is correct |
42 |
Correct |
7 ms |
23196 KB |
Output is correct |
43 |
Correct |
8 ms |
23128 KB |
Output is correct |
44 |
Correct |
6 ms |
23132 KB |
Output is correct |
45 |
Correct |
8 ms |
23132 KB |
Output is correct |
46 |
Correct |
7 ms |
23132 KB |
Output is correct |
47 |
Correct |
1880 ms |
46160 KB |
Output is correct |
48 |
Correct |
1959 ms |
45988 KB |
Output is correct |
49 |
Correct |
2060 ms |
46176 KB |
Output is correct |
50 |
Correct |
2667 ms |
46500 KB |
Output is correct |
51 |
Correct |
2621 ms |
46416 KB |
Output is correct |
52 |
Correct |
2246 ms |
46376 KB |
Output is correct |
53 |
Correct |
2013 ms |
46408 KB |
Output is correct |
54 |
Correct |
7 ms |
23132 KB |
Output is correct |
55 |
Correct |
6 ms |
23204 KB |
Output is correct |
56 |
Correct |
7 ms |
23196 KB |
Output is correct |
57 |
Correct |
7 ms |
23132 KB |
Output is correct |
58 |
Correct |
7 ms |
23128 KB |
Output is correct |
59 |
Correct |
2074 ms |
46660 KB |
Output is correct |
60 |
Correct |
755 ms |
31708 KB |
Output is correct |
61 |
Correct |
843 ms |
33796 KB |
Output is correct |
62 |
Correct |
929 ms |
34024 KB |
Output is correct |
63 |
Correct |
1969 ms |
46080 KB |
Output is correct |
64 |
Correct |
1857 ms |
46224 KB |
Output is correct |
65 |
Correct |
1862 ms |
46208 KB |
Output is correct |
66 |
Correct |
2660 ms |
46404 KB |
Output is correct |
67 |
Correct |
2647 ms |
46656 KB |
Output is correct |
68 |
Correct |
2033 ms |
46380 KB |
Output is correct |
69 |
Correct |
1812 ms |
46700 KB |
Output is correct |
70 |
Correct |
9 ms |
23132 KB |
Output is correct |
71 |
Correct |
6 ms |
23128 KB |
Output is correct |
72 |
Correct |
6 ms |
23212 KB |
Output is correct |
73 |
Correct |
10 ms |
23128 KB |
Output is correct |
74 |
Correct |
6 ms |
23132 KB |
Output is correct |
75 |
Correct |
29 ms |
23188 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
23128 KB |
Output is correct |
2 |
Correct |
6 ms |
23380 KB |
Output is correct |
3 |
Correct |
6 ms |
23128 KB |
Output is correct |
4 |
Correct |
6 ms |
23132 KB |
Output is correct |
5 |
Correct |
6 ms |
23132 KB |
Output is correct |
6 |
Correct |
9 ms |
23132 KB |
Output is correct |
7 |
Correct |
6 ms |
23132 KB |
Output is correct |
8 |
Correct |
6 ms |
23132 KB |
Output is correct |
9 |
Correct |
9 ms |
23224 KB |
Output is correct |
10 |
Correct |
6 ms |
23132 KB |
Output is correct |
11 |
Correct |
6 ms |
23132 KB |
Output is correct |
12 |
Correct |
8 ms |
23132 KB |
Output is correct |
13 |
Correct |
6 ms |
23384 KB |
Output is correct |
14 |
Correct |
6 ms |
23132 KB |
Output is correct |
15 |
Correct |
6 ms |
23132 KB |
Output is correct |
16 |
Correct |
6 ms |
23132 KB |
Output is correct |
17 |
Correct |
8 ms |
23132 KB |
Output is correct |
18 |
Correct |
7 ms |
23212 KB |
Output is correct |
19 |
Correct |
6 ms |
23132 KB |
Output is correct |
20 |
Correct |
6 ms |
23132 KB |
Output is correct |
21 |
Correct |
8 ms |
23132 KB |
Output is correct |
22 |
Correct |
7 ms |
23212 KB |
Output is correct |
23 |
Correct |
6 ms |
23128 KB |
Output is correct |
24 |
Correct |
6 ms |
23132 KB |
Output is correct |
25 |
Correct |
6 ms |
23128 KB |
Output is correct |
26 |
Correct |
8 ms |
23132 KB |
Output is correct |
27 |
Correct |
7 ms |
23132 KB |
Output is correct |
28 |
Correct |
7 ms |
23128 KB |
Output is correct |
29 |
Correct |
6 ms |
23132 KB |
Output is correct |
30 |
Correct |
6 ms |
23132 KB |
Output is correct |
31 |
Correct |
8 ms |
23132 KB |
Output is correct |
32 |
Correct |
6 ms |
23132 KB |
Output is correct |
33 |
Correct |
6 ms |
23180 KB |
Output is correct |
34 |
Correct |
6 ms |
23132 KB |
Output is correct |
35 |
Correct |
8 ms |
23220 KB |
Output is correct |
36 |
Correct |
6 ms |
23132 KB |
Output is correct |
37 |
Correct |
7 ms |
23132 KB |
Output is correct |
38 |
Correct |
6 ms |
23132 KB |
Output is correct |
39 |
Correct |
7 ms |
23132 KB |
Output is correct |
40 |
Correct |
8 ms |
23132 KB |
Output is correct |
41 |
Correct |
6 ms |
23132 KB |
Output is correct |
42 |
Correct |
6 ms |
23172 KB |
Output is correct |
43 |
Correct |
7 ms |
23132 KB |
Output is correct |
44 |
Correct |
6 ms |
23132 KB |
Output is correct |
45 |
Correct |
6 ms |
23132 KB |
Output is correct |
46 |
Correct |
7 ms |
23132 KB |
Output is correct |
47 |
Correct |
6 ms |
23128 KB |
Output is correct |
48 |
Correct |
6 ms |
23128 KB |
Output is correct |
49 |
Correct |
6 ms |
23132 KB |
Output is correct |
50 |
Correct |
6 ms |
23132 KB |
Output is correct |
51 |
Correct |
32 ms |
23132 KB |
Output is correct |
52 |
Correct |
34 ms |
23128 KB |
Output is correct |
53 |
Correct |
28 ms |
23384 KB |
Output is correct |
54 |
Correct |
26 ms |
23132 KB |
Output is correct |
55 |
Correct |
32 ms |
23216 KB |
Output is correct |
56 |
Correct |
24 ms |
23132 KB |
Output is correct |
57 |
Correct |
6 ms |
23132 KB |
Output is correct |
58 |
Correct |
2475 ms |
46200 KB |
Output is correct |
59 |
Correct |
2446 ms |
46164 KB |
Output is correct |
60 |
Correct |
2407 ms |
46676 KB |
Output is correct |
61 |
Correct |
2438 ms |
46472 KB |
Output is correct |
62 |
Correct |
2433 ms |
46296 KB |
Output is correct |
63 |
Correct |
2430 ms |
46200 KB |
Output is correct |
64 |
Correct |
6 ms |
23200 KB |
Output is correct |
65 |
Correct |
6 ms |
23172 KB |
Output is correct |
66 |
Correct |
8 ms |
23184 KB |
Output is correct |
67 |
Correct |
7 ms |
23132 KB |
Output is correct |
68 |
Correct |
11 ms |
23132 KB |
Output is correct |
69 |
Correct |
6 ms |
23132 KB |
Output is correct |
70 |
Correct |
6 ms |
23132 KB |
Output is correct |
71 |
Correct |
6 ms |
23180 KB |
Output is correct |
72 |
Correct |
11 ms |
23132 KB |
Output is correct |
73 |
Correct |
32 ms |
23132 KB |
Output is correct |
74 |
Correct |
6 ms |
23212 KB |
Output is correct |
75 |
Correct |
6 ms |
23132 KB |
Output is correct |
76 |
Correct |
2379 ms |
46068 KB |
Output is correct |
77 |
Correct |
2461 ms |
46328 KB |
Output is correct |
78 |
Correct |
2444 ms |
46032 KB |
Output is correct |
79 |
Correct |
2605 ms |
46852 KB |
Output is correct |
80 |
Correct |
2622 ms |
46180 KB |
Output is correct |
81 |
Correct |
1850 ms |
46308 KB |
Output is correct |
82 |
Correct |
1682 ms |
46056 KB |
Output is correct |
83 |
Correct |
8 ms |
23180 KB |
Output is correct |
84 |
Correct |
6 ms |
23132 KB |
Output is correct |
85 |
Correct |
6 ms |
23212 KB |
Output is correct |
86 |
Correct |
6 ms |
23132 KB |
Output is correct |
87 |
Correct |
12 ms |
23132 KB |
Output is correct |
88 |
Correct |
6 ms |
23132 KB |
Output is correct |
89 |
Correct |
6 ms |
23132 KB |
Output is correct |
90 |
Correct |
8 ms |
23132 KB |
Output is correct |
91 |
Correct |
9 ms |
23208 KB |
Output is correct |
92 |
Correct |
9 ms |
23184 KB |
Output is correct |
93 |
Correct |
6 ms |
23132 KB |
Output is correct |
94 |
Correct |
7 ms |
23132 KB |
Output is correct |
95 |
Correct |
10 ms |
23128 KB |
Output is correct |
96 |
Correct |
7 ms |
23132 KB |
Output is correct |
97 |
Correct |
7 ms |
23132 KB |
Output is correct |
98 |
Correct |
7 ms |
23196 KB |
Output is correct |
99 |
Correct |
8 ms |
23128 KB |
Output is correct |
100 |
Correct |
6 ms |
23132 KB |
Output is correct |
101 |
Correct |
8 ms |
23132 KB |
Output is correct |
102 |
Correct |
7 ms |
23132 KB |
Output is correct |
103 |
Correct |
1880 ms |
46160 KB |
Output is correct |
104 |
Correct |
1959 ms |
45988 KB |
Output is correct |
105 |
Correct |
2060 ms |
46176 KB |
Output is correct |
106 |
Correct |
2667 ms |
46500 KB |
Output is correct |
107 |
Correct |
2621 ms |
46416 KB |
Output is correct |
108 |
Correct |
2246 ms |
46376 KB |
Output is correct |
109 |
Correct |
2013 ms |
46408 KB |
Output is correct |
110 |
Correct |
7 ms |
23132 KB |
Output is correct |
111 |
Correct |
6 ms |
23204 KB |
Output is correct |
112 |
Correct |
7 ms |
23196 KB |
Output is correct |
113 |
Correct |
7 ms |
23132 KB |
Output is correct |
114 |
Correct |
7 ms |
23128 KB |
Output is correct |
115 |
Correct |
2074 ms |
46660 KB |
Output is correct |
116 |
Correct |
755 ms |
31708 KB |
Output is correct |
117 |
Correct |
843 ms |
33796 KB |
Output is correct |
118 |
Correct |
929 ms |
34024 KB |
Output is correct |
119 |
Correct |
1969 ms |
46080 KB |
Output is correct |
120 |
Correct |
1857 ms |
46224 KB |
Output is correct |
121 |
Correct |
1862 ms |
46208 KB |
Output is correct |
122 |
Correct |
2660 ms |
46404 KB |
Output is correct |
123 |
Correct |
2647 ms |
46656 KB |
Output is correct |
124 |
Correct |
2033 ms |
46380 KB |
Output is correct |
125 |
Correct |
1812 ms |
46700 KB |
Output is correct |
126 |
Correct |
9 ms |
23132 KB |
Output is correct |
127 |
Correct |
6 ms |
23128 KB |
Output is correct |
128 |
Correct |
6 ms |
23212 KB |
Output is correct |
129 |
Correct |
10 ms |
23128 KB |
Output is correct |
130 |
Correct |
6 ms |
23132 KB |
Output is correct |
131 |
Correct |
29 ms |
23188 KB |
Output is correct |
132 |
Correct |
2359 ms |
46924 KB |
Output is correct |
133 |
Correct |
2303 ms |
46416 KB |
Output is correct |
134 |
Correct |
2303 ms |
46904 KB |
Output is correct |
135 |
Correct |
2077 ms |
46376 KB |
Output is correct |
136 |
Correct |
2059 ms |
46420 KB |
Output is correct |
137 |
Correct |
2128 ms |
46500 KB |
Output is correct |
138 |
Correct |
2013 ms |
46632 KB |
Output is correct |
139 |
Correct |
2623 ms |
46488 KB |
Output is correct |
140 |
Correct |
2650 ms |
46432 KB |
Output is correct |
141 |
Correct |
2212 ms |
46320 KB |
Output is correct |
142 |
Correct |
2744 ms |
46312 KB |
Output is correct |