#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 ans[N+10];
vector< vector<int> > build(int n, int m, vector< vector<int> > &a){
vector<int> cnt(m);
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
cnt[j]+= a[i][j];
}
}
vector< vector<int> > res(n);
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
if(cnt[j] > (n / 2) + 1){
ans[i]++;
}
}
}
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
if(cnt[j] == n / 2){
res[i].push_back(a[i][j]);
}else if(cnt[j] == (n / 2) + 1){
res[i].push_back(a[i][j]);
}
}
}
return res;
}
pair<int, int> dp[2][1222][1222];
signed main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int n, m; cin >> n >> m;
vector< vector<int> > a(n, vector<int>(m));
for(int i = 0;i < n; i++){
for(int j = 0;j < m; j++){
cin >> a[i][j];
}
}
a = build(n, m, a);
n = a.size();
m = a[0].size();
vector<int> cnt(m,0);
vector<int> bits(n, 0);
int bpc[1<<20];
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{
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);
}
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);
}
ans[i] = ans[i] + bc - mn;
}
for(int i = 0;i < n; i++) cout << ans[i] << '\n';
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
27224 KB |
Output is correct |
2 |
Correct |
9 ms |
27472 KB |
Output is correct |
3 |
Correct |
8 ms |
27284 KB |
Output is correct |
4 |
Correct |
8 ms |
27228 KB |
Output is correct |
5 |
Correct |
8 ms |
27228 KB |
Output is correct |
6 |
Correct |
9 ms |
27228 KB |
Output is correct |
7 |
Correct |
9 ms |
27280 KB |
Output is correct |
8 |
Correct |
9 ms |
27228 KB |
Output is correct |
9 |
Correct |
9 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27228 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
13 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27228 KB |
Output is correct |
14 |
Correct |
9 ms |
27232 KB |
Output is correct |
15 |
Correct |
8 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27228 KB |
Output is correct |
17 |
Correct |
9 ms |
27228 KB |
Output is correct |
18 |
Correct |
8 ms |
27228 KB |
Output is correct |
19 |
Correct |
9 ms |
27228 KB |
Output is correct |
20 |
Correct |
8 ms |
27224 KB |
Output is correct |
21 |
Correct |
9 ms |
27228 KB |
Output is correct |
22 |
Correct |
8 ms |
27092 KB |
Output is correct |
23 |
Correct |
8 ms |
27228 KB |
Output is correct |
24 |
Correct |
8 ms |
27228 KB |
Output is correct |
25 |
Correct |
8 ms |
27228 KB |
Output is correct |
26 |
Correct |
9 ms |
27112 KB |
Output is correct |
27 |
Correct |
8 ms |
27228 KB |
Output is correct |
28 |
Correct |
8 ms |
27208 KB |
Output is correct |
29 |
Correct |
9 ms |
27228 KB |
Output is correct |
30 |
Correct |
9 ms |
27092 KB |
Output is correct |
31 |
Correct |
9 ms |
27228 KB |
Output is correct |
32 |
Correct |
9 ms |
27228 KB |
Output is correct |
33 |
Correct |
9 ms |
27092 KB |
Output is correct |
34 |
Correct |
9 ms |
27224 KB |
Output is correct |
35 |
Correct |
9 ms |
27480 KB |
Output is correct |
36 |
Correct |
8 ms |
27292 KB |
Output is correct |
37 |
Correct |
8 ms |
27224 KB |
Output is correct |
38 |
Correct |
8 ms |
27224 KB |
Output is correct |
39 |
Correct |
8 ms |
27228 KB |
Output is correct |
40 |
Correct |
9 ms |
27356 KB |
Output is correct |
41 |
Correct |
9 ms |
27228 KB |
Output is correct |
42 |
Correct |
9 ms |
27228 KB |
Output is correct |
43 |
Correct |
8 ms |
27228 KB |
Output is correct |
44 |
Correct |
8 ms |
27224 KB |
Output is correct |
45 |
Correct |
8 ms |
27224 KB |
Output is correct |
46 |
Correct |
8 ms |
27228 KB |
Output is correct |
47 |
Correct |
8 ms |
27228 KB |
Output is correct |
48 |
Correct |
8 ms |
27228 KB |
Output is correct |
49 |
Correct |
8 ms |
27228 KB |
Output is correct |
50 |
Correct |
8 ms |
27068 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
27224 KB |
Output is correct |
2 |
Correct |
9 ms |
27472 KB |
Output is correct |
3 |
Correct |
8 ms |
27284 KB |
Output is correct |
4 |
Correct |
8 ms |
27228 KB |
Output is correct |
5 |
Correct |
8 ms |
27228 KB |
Output is correct |
6 |
Correct |
9 ms |
27228 KB |
Output is correct |
7 |
Correct |
9 ms |
27280 KB |
Output is correct |
8 |
Correct |
9 ms |
27228 KB |
Output is correct |
9 |
Correct |
9 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27228 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
13 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27228 KB |
Output is correct |
14 |
Correct |
9 ms |
27232 KB |
Output is correct |
15 |
Correct |
8 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27228 KB |
Output is correct |
17 |
Correct |
9 ms |
27228 KB |
Output is correct |
18 |
Correct |
8 ms |
27228 KB |
Output is correct |
19 |
Correct |
9 ms |
27228 KB |
Output is correct |
20 |
Correct |
8 ms |
27224 KB |
Output is correct |
21 |
Correct |
9 ms |
27228 KB |
Output is correct |
22 |
Correct |
8 ms |
27092 KB |
Output is correct |
23 |
Correct |
8 ms |
27228 KB |
Output is correct |
24 |
Correct |
8 ms |
27228 KB |
Output is correct |
25 |
Correct |
8 ms |
27228 KB |
Output is correct |
26 |
Correct |
9 ms |
27112 KB |
Output is correct |
27 |
Correct |
8 ms |
27228 KB |
Output is correct |
28 |
Correct |
8 ms |
27208 KB |
Output is correct |
29 |
Correct |
9 ms |
27228 KB |
Output is correct |
30 |
Correct |
9 ms |
27092 KB |
Output is correct |
31 |
Correct |
9 ms |
27228 KB |
Output is correct |
32 |
Correct |
9 ms |
27228 KB |
Output is correct |
33 |
Correct |
9 ms |
27092 KB |
Output is correct |
34 |
Correct |
9 ms |
27224 KB |
Output is correct |
35 |
Correct |
9 ms |
27480 KB |
Output is correct |
36 |
Correct |
8 ms |
27292 KB |
Output is correct |
37 |
Correct |
8 ms |
27224 KB |
Output is correct |
38 |
Correct |
8 ms |
27224 KB |
Output is correct |
39 |
Correct |
8 ms |
27228 KB |
Output is correct |
40 |
Correct |
9 ms |
27356 KB |
Output is correct |
41 |
Correct |
9 ms |
27228 KB |
Output is correct |
42 |
Correct |
9 ms |
27228 KB |
Output is correct |
43 |
Correct |
8 ms |
27228 KB |
Output is correct |
44 |
Correct |
8 ms |
27224 KB |
Output is correct |
45 |
Correct |
8 ms |
27224 KB |
Output is correct |
46 |
Correct |
8 ms |
27228 KB |
Output is correct |
47 |
Correct |
8 ms |
27228 KB |
Output is correct |
48 |
Correct |
8 ms |
27228 KB |
Output is correct |
49 |
Correct |
8 ms |
27228 KB |
Output is correct |
50 |
Correct |
8 ms |
27068 KB |
Output is correct |
51 |
Correct |
18 ms |
27532 KB |
Output is correct |
52 |
Correct |
17 ms |
27740 KB |
Output is correct |
53 |
Correct |
18 ms |
27740 KB |
Output is correct |
54 |
Correct |
52 ms |
27996 KB |
Output is correct |
55 |
Correct |
17 ms |
27484 KB |
Output is correct |
56 |
Correct |
29 ms |
28116 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
27228 KB |
Output is correct |
2 |
Correct |
746 ms |
45424 KB |
Output is correct |
3 |
Correct |
727 ms |
45288 KB |
Output is correct |
4 |
Correct |
713 ms |
45528 KB |
Output is correct |
5 |
Correct |
741 ms |
45312 KB |
Output is correct |
6 |
Correct |
736 ms |
54860 KB |
Output is correct |
7 |
Correct |
758 ms |
54812 KB |
Output is correct |
8 |
Correct |
8 ms |
27224 KB |
Output is correct |
9 |
Correct |
8 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27276 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
9 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27096 KB |
Output is correct |
14 |
Correct |
8 ms |
27228 KB |
Output is correct |
15 |
Correct |
9 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27256 KB |
Output is correct |
17 |
Correct |
16 ms |
27640 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
27228 KB |
Output is correct |
2 |
Correct |
746 ms |
45424 KB |
Output is correct |
3 |
Correct |
727 ms |
45288 KB |
Output is correct |
4 |
Correct |
713 ms |
45528 KB |
Output is correct |
5 |
Correct |
741 ms |
45312 KB |
Output is correct |
6 |
Correct |
736 ms |
54860 KB |
Output is correct |
7 |
Correct |
758 ms |
54812 KB |
Output is correct |
8 |
Correct |
8 ms |
27224 KB |
Output is correct |
9 |
Correct |
8 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27276 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
9 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27096 KB |
Output is correct |
14 |
Correct |
8 ms |
27228 KB |
Output is correct |
15 |
Correct |
9 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27256 KB |
Output is correct |
17 |
Correct |
16 ms |
27640 KB |
Output is correct |
18 |
Correct |
8 ms |
27224 KB |
Output is correct |
19 |
Correct |
9 ms |
27228 KB |
Output is correct |
20 |
Correct |
992 ms |
73680 KB |
Output is correct |
21 |
Correct |
953 ms |
73548 KB |
Output is correct |
22 |
Correct |
942 ms |
74212 KB |
Output is correct |
23 |
Correct |
841 ms |
50392 KB |
Output is correct |
24 |
Correct |
826 ms |
50044 KB |
Output is correct |
25 |
Correct |
835 ms |
50140 KB |
Output is correct |
26 |
Correct |
1452 ms |
73456 KB |
Output is correct |
27 |
Correct |
8 ms |
27480 KB |
Output is correct |
28 |
Correct |
9 ms |
27228 KB |
Output is correct |
29 |
Correct |
8 ms |
27228 KB |
Output is correct |
30 |
Correct |
9 ms |
27284 KB |
Output is correct |
31 |
Correct |
9 ms |
27228 KB |
Output is correct |
32 |
Correct |
8 ms |
27228 KB |
Output is correct |
33 |
Correct |
8 ms |
27224 KB |
Output is correct |
34 |
Correct |
8 ms |
27224 KB |
Output is correct |
35 |
Correct |
8 ms |
27224 KB |
Output is correct |
36 |
Correct |
9 ms |
27228 KB |
Output is correct |
37 |
Correct |
8 ms |
27228 KB |
Output is correct |
38 |
Correct |
9 ms |
27228 KB |
Output is correct |
39 |
Correct |
8 ms |
27308 KB |
Output is correct |
40 |
Correct |
11 ms |
27224 KB |
Output is correct |
41 |
Correct |
8 ms |
27228 KB |
Output is correct |
42 |
Correct |
8 ms |
27224 KB |
Output is correct |
43 |
Correct |
8 ms |
27224 KB |
Output is correct |
44 |
Correct |
8 ms |
27228 KB |
Output is correct |
45 |
Correct |
9 ms |
27244 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
27228 KB |
Output is correct |
2 |
Correct |
746 ms |
45424 KB |
Output is correct |
3 |
Correct |
727 ms |
45288 KB |
Output is correct |
4 |
Correct |
713 ms |
45528 KB |
Output is correct |
5 |
Correct |
741 ms |
45312 KB |
Output is correct |
6 |
Correct |
736 ms |
54860 KB |
Output is correct |
7 |
Correct |
758 ms |
54812 KB |
Output is correct |
8 |
Correct |
8 ms |
27224 KB |
Output is correct |
9 |
Correct |
8 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27276 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
9 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27096 KB |
Output is correct |
14 |
Correct |
8 ms |
27228 KB |
Output is correct |
15 |
Correct |
9 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27256 KB |
Output is correct |
17 |
Correct |
16 ms |
27640 KB |
Output is correct |
18 |
Correct |
8 ms |
27224 KB |
Output is correct |
19 |
Correct |
9 ms |
27228 KB |
Output is correct |
20 |
Correct |
992 ms |
73680 KB |
Output is correct |
21 |
Correct |
953 ms |
73548 KB |
Output is correct |
22 |
Correct |
942 ms |
74212 KB |
Output is correct |
23 |
Correct |
841 ms |
50392 KB |
Output is correct |
24 |
Correct |
826 ms |
50044 KB |
Output is correct |
25 |
Correct |
835 ms |
50140 KB |
Output is correct |
26 |
Correct |
1452 ms |
73456 KB |
Output is correct |
27 |
Correct |
8 ms |
27480 KB |
Output is correct |
28 |
Correct |
9 ms |
27228 KB |
Output is correct |
29 |
Correct |
8 ms |
27228 KB |
Output is correct |
30 |
Correct |
9 ms |
27284 KB |
Output is correct |
31 |
Correct |
9 ms |
27228 KB |
Output is correct |
32 |
Correct |
8 ms |
27228 KB |
Output is correct |
33 |
Correct |
8 ms |
27224 KB |
Output is correct |
34 |
Correct |
8 ms |
27224 KB |
Output is correct |
35 |
Correct |
8 ms |
27224 KB |
Output is correct |
36 |
Correct |
9 ms |
27228 KB |
Output is correct |
37 |
Correct |
8 ms |
27228 KB |
Output is correct |
38 |
Correct |
9 ms |
27228 KB |
Output is correct |
39 |
Correct |
8 ms |
27308 KB |
Output is correct |
40 |
Correct |
11 ms |
27224 KB |
Output is correct |
41 |
Correct |
8 ms |
27228 KB |
Output is correct |
42 |
Correct |
8 ms |
27224 KB |
Output is correct |
43 |
Correct |
8 ms |
27224 KB |
Output is correct |
44 |
Correct |
8 ms |
27228 KB |
Output is correct |
45 |
Correct |
9 ms |
27244 KB |
Output is correct |
46 |
Correct |
8 ms |
27228 KB |
Output is correct |
47 |
Correct |
1527 ms |
78640 KB |
Output is correct |
48 |
Correct |
1286 ms |
78552 KB |
Output is correct |
49 |
Correct |
1284 ms |
78228 KB |
Output is correct |
50 |
Correct |
865 ms |
55068 KB |
Output is correct |
51 |
Correct |
866 ms |
54724 KB |
Output is correct |
52 |
Correct |
893 ms |
54832 KB |
Output is correct |
53 |
Correct |
1586 ms |
78648 KB |
Output is correct |
54 |
Correct |
8 ms |
27228 KB |
Output is correct |
55 |
Correct |
8 ms |
27228 KB |
Output is correct |
56 |
Correct |
8 ms |
27100 KB |
Output is correct |
57 |
Correct |
8 ms |
27228 KB |
Output is correct |
58 |
Correct |
8 ms |
27228 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
27228 KB |
Output is correct |
2 |
Correct |
746 ms |
45424 KB |
Output is correct |
3 |
Correct |
727 ms |
45288 KB |
Output is correct |
4 |
Correct |
713 ms |
45528 KB |
Output is correct |
5 |
Correct |
741 ms |
45312 KB |
Output is correct |
6 |
Correct |
736 ms |
54860 KB |
Output is correct |
7 |
Correct |
758 ms |
54812 KB |
Output is correct |
8 |
Correct |
8 ms |
27224 KB |
Output is correct |
9 |
Correct |
8 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27276 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
9 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27096 KB |
Output is correct |
14 |
Correct |
8 ms |
27228 KB |
Output is correct |
15 |
Correct |
9 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27256 KB |
Output is correct |
17 |
Correct |
16 ms |
27640 KB |
Output is correct |
18 |
Correct |
8 ms |
27224 KB |
Output is correct |
19 |
Correct |
9 ms |
27228 KB |
Output is correct |
20 |
Correct |
992 ms |
73680 KB |
Output is correct |
21 |
Correct |
953 ms |
73548 KB |
Output is correct |
22 |
Correct |
942 ms |
74212 KB |
Output is correct |
23 |
Correct |
841 ms |
50392 KB |
Output is correct |
24 |
Correct |
826 ms |
50044 KB |
Output is correct |
25 |
Correct |
835 ms |
50140 KB |
Output is correct |
26 |
Correct |
1452 ms |
73456 KB |
Output is correct |
27 |
Correct |
8 ms |
27480 KB |
Output is correct |
28 |
Correct |
9 ms |
27228 KB |
Output is correct |
29 |
Correct |
8 ms |
27228 KB |
Output is correct |
30 |
Correct |
9 ms |
27284 KB |
Output is correct |
31 |
Correct |
9 ms |
27228 KB |
Output is correct |
32 |
Correct |
8 ms |
27228 KB |
Output is correct |
33 |
Correct |
8 ms |
27224 KB |
Output is correct |
34 |
Correct |
8 ms |
27224 KB |
Output is correct |
35 |
Correct |
8 ms |
27224 KB |
Output is correct |
36 |
Correct |
9 ms |
27228 KB |
Output is correct |
37 |
Correct |
8 ms |
27228 KB |
Output is correct |
38 |
Correct |
9 ms |
27228 KB |
Output is correct |
39 |
Correct |
8 ms |
27308 KB |
Output is correct |
40 |
Correct |
11 ms |
27224 KB |
Output is correct |
41 |
Correct |
8 ms |
27228 KB |
Output is correct |
42 |
Correct |
8 ms |
27224 KB |
Output is correct |
43 |
Correct |
8 ms |
27224 KB |
Output is correct |
44 |
Correct |
8 ms |
27228 KB |
Output is correct |
45 |
Correct |
9 ms |
27244 KB |
Output is correct |
46 |
Correct |
8 ms |
27228 KB |
Output is correct |
47 |
Correct |
1527 ms |
78640 KB |
Output is correct |
48 |
Correct |
1286 ms |
78552 KB |
Output is correct |
49 |
Correct |
1284 ms |
78228 KB |
Output is correct |
50 |
Correct |
865 ms |
55068 KB |
Output is correct |
51 |
Correct |
866 ms |
54724 KB |
Output is correct |
52 |
Correct |
893 ms |
54832 KB |
Output is correct |
53 |
Correct |
1586 ms |
78648 KB |
Output is correct |
54 |
Correct |
8 ms |
27228 KB |
Output is correct |
55 |
Correct |
8 ms |
27228 KB |
Output is correct |
56 |
Correct |
8 ms |
27100 KB |
Output is correct |
57 |
Correct |
8 ms |
27228 KB |
Output is correct |
58 |
Correct |
8 ms |
27228 KB |
Output is correct |
59 |
Correct |
913 ms |
59776 KB |
Output is correct |
60 |
Correct |
833 ms |
55756 KB |
Output is correct |
61 |
Correct |
905 ms |
58204 KB |
Output is correct |
62 |
Correct |
935 ms |
58780 KB |
Output is correct |
63 |
Correct |
2076 ms |
82880 KB |
Output is correct |
64 |
Correct |
2259 ms |
102152 KB |
Output is correct |
65 |
Correct |
2161 ms |
101736 KB |
Output is correct |
66 |
Correct |
905 ms |
59772 KB |
Output is correct |
67 |
Correct |
909 ms |
59368 KB |
Output is correct |
68 |
Correct |
924 ms |
59536 KB |
Output is correct |
69 |
Correct |
2113 ms |
101956 KB |
Output is correct |
70 |
Correct |
8 ms |
27224 KB |
Output is correct |
71 |
Correct |
8 ms |
27228 KB |
Output is correct |
72 |
Correct |
8 ms |
27228 KB |
Output is correct |
73 |
Correct |
8 ms |
27228 KB |
Output is correct |
74 |
Correct |
8 ms |
27280 KB |
Output is correct |
75 |
Correct |
29 ms |
27992 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
8 ms |
27224 KB |
Output is correct |
2 |
Correct |
9 ms |
27472 KB |
Output is correct |
3 |
Correct |
8 ms |
27284 KB |
Output is correct |
4 |
Correct |
8 ms |
27228 KB |
Output is correct |
5 |
Correct |
8 ms |
27228 KB |
Output is correct |
6 |
Correct |
9 ms |
27228 KB |
Output is correct |
7 |
Correct |
9 ms |
27280 KB |
Output is correct |
8 |
Correct |
9 ms |
27228 KB |
Output is correct |
9 |
Correct |
9 ms |
27228 KB |
Output is correct |
10 |
Correct |
8 ms |
27228 KB |
Output is correct |
11 |
Correct |
8 ms |
27228 KB |
Output is correct |
12 |
Correct |
13 ms |
27228 KB |
Output is correct |
13 |
Correct |
8 ms |
27228 KB |
Output is correct |
14 |
Correct |
9 ms |
27232 KB |
Output is correct |
15 |
Correct |
8 ms |
27228 KB |
Output is correct |
16 |
Correct |
9 ms |
27228 KB |
Output is correct |
17 |
Correct |
9 ms |
27228 KB |
Output is correct |
18 |
Correct |
8 ms |
27228 KB |
Output is correct |
19 |
Correct |
9 ms |
27228 KB |
Output is correct |
20 |
Correct |
8 ms |
27224 KB |
Output is correct |
21 |
Correct |
9 ms |
27228 KB |
Output is correct |
22 |
Correct |
8 ms |
27092 KB |
Output is correct |
23 |
Correct |
8 ms |
27228 KB |
Output is correct |
24 |
Correct |
8 ms |
27228 KB |
Output is correct |
25 |
Correct |
8 ms |
27228 KB |
Output is correct |
26 |
Correct |
9 ms |
27112 KB |
Output is correct |
27 |
Correct |
8 ms |
27228 KB |
Output is correct |
28 |
Correct |
8 ms |
27208 KB |
Output is correct |
29 |
Correct |
9 ms |
27228 KB |
Output is correct |
30 |
Correct |
9 ms |
27092 KB |
Output is correct |
31 |
Correct |
9 ms |
27228 KB |
Output is correct |
32 |
Correct |
9 ms |
27228 KB |
Output is correct |
33 |
Correct |
9 ms |
27092 KB |
Output is correct |
34 |
Correct |
9 ms |
27224 KB |
Output is correct |
35 |
Correct |
9 ms |
27480 KB |
Output is correct |
36 |
Correct |
8 ms |
27292 KB |
Output is correct |
37 |
Correct |
8 ms |
27224 KB |
Output is correct |
38 |
Correct |
8 ms |
27224 KB |
Output is correct |
39 |
Correct |
8 ms |
27228 KB |
Output is correct |
40 |
Correct |
9 ms |
27356 KB |
Output is correct |
41 |
Correct |
9 ms |
27228 KB |
Output is correct |
42 |
Correct |
9 ms |
27228 KB |
Output is correct |
43 |
Correct |
8 ms |
27228 KB |
Output is correct |
44 |
Correct |
8 ms |
27224 KB |
Output is correct |
45 |
Correct |
8 ms |
27224 KB |
Output is correct |
46 |
Correct |
8 ms |
27228 KB |
Output is correct |
47 |
Correct |
8 ms |
27228 KB |
Output is correct |
48 |
Correct |
8 ms |
27228 KB |
Output is correct |
49 |
Correct |
8 ms |
27228 KB |
Output is correct |
50 |
Correct |
8 ms |
27068 KB |
Output is correct |
51 |
Correct |
18 ms |
27532 KB |
Output is correct |
52 |
Correct |
17 ms |
27740 KB |
Output is correct |
53 |
Correct |
18 ms |
27740 KB |
Output is correct |
54 |
Correct |
52 ms |
27996 KB |
Output is correct |
55 |
Correct |
17 ms |
27484 KB |
Output is correct |
56 |
Correct |
29 ms |
28116 KB |
Output is correct |
57 |
Correct |
9 ms |
27228 KB |
Output is correct |
58 |
Correct |
746 ms |
45424 KB |
Output is correct |
59 |
Correct |
727 ms |
45288 KB |
Output is correct |
60 |
Correct |
713 ms |
45528 KB |
Output is correct |
61 |
Correct |
741 ms |
45312 KB |
Output is correct |
62 |
Correct |
736 ms |
54860 KB |
Output is correct |
63 |
Correct |
758 ms |
54812 KB |
Output is correct |
64 |
Correct |
8 ms |
27224 KB |
Output is correct |
65 |
Correct |
8 ms |
27228 KB |
Output is correct |
66 |
Correct |
8 ms |
27276 KB |
Output is correct |
67 |
Correct |
8 ms |
27228 KB |
Output is correct |
68 |
Correct |
9 ms |
27228 KB |
Output is correct |
69 |
Correct |
8 ms |
27096 KB |
Output is correct |
70 |
Correct |
8 ms |
27228 KB |
Output is correct |
71 |
Correct |
9 ms |
27228 KB |
Output is correct |
72 |
Correct |
9 ms |
27256 KB |
Output is correct |
73 |
Correct |
16 ms |
27640 KB |
Output is correct |
74 |
Correct |
8 ms |
27224 KB |
Output is correct |
75 |
Correct |
9 ms |
27228 KB |
Output is correct |
76 |
Correct |
992 ms |
73680 KB |
Output is correct |
77 |
Correct |
953 ms |
73548 KB |
Output is correct |
78 |
Correct |
942 ms |
74212 KB |
Output is correct |
79 |
Correct |
841 ms |
50392 KB |
Output is correct |
80 |
Correct |
826 ms |
50044 KB |
Output is correct |
81 |
Correct |
835 ms |
50140 KB |
Output is correct |
82 |
Correct |
1452 ms |
73456 KB |
Output is correct |
83 |
Correct |
8 ms |
27480 KB |
Output is correct |
84 |
Correct |
9 ms |
27228 KB |
Output is correct |
85 |
Correct |
8 ms |
27228 KB |
Output is correct |
86 |
Correct |
9 ms |
27284 KB |
Output is correct |
87 |
Correct |
9 ms |
27228 KB |
Output is correct |
88 |
Correct |
8 ms |
27228 KB |
Output is correct |
89 |
Correct |
8 ms |
27224 KB |
Output is correct |
90 |
Correct |
8 ms |
27224 KB |
Output is correct |
91 |
Correct |
8 ms |
27224 KB |
Output is correct |
92 |
Correct |
9 ms |
27228 KB |
Output is correct |
93 |
Correct |
8 ms |
27228 KB |
Output is correct |
94 |
Correct |
9 ms |
27228 KB |
Output is correct |
95 |
Correct |
8 ms |
27308 KB |
Output is correct |
96 |
Correct |
11 ms |
27224 KB |
Output is correct |
97 |
Correct |
8 ms |
27228 KB |
Output is correct |
98 |
Correct |
8 ms |
27224 KB |
Output is correct |
99 |
Correct |
8 ms |
27224 KB |
Output is correct |
100 |
Correct |
8 ms |
27228 KB |
Output is correct |
101 |
Correct |
9 ms |
27244 KB |
Output is correct |
102 |
Correct |
8 ms |
27228 KB |
Output is correct |
103 |
Correct |
1527 ms |
78640 KB |
Output is correct |
104 |
Correct |
1286 ms |
78552 KB |
Output is correct |
105 |
Correct |
1284 ms |
78228 KB |
Output is correct |
106 |
Correct |
865 ms |
55068 KB |
Output is correct |
107 |
Correct |
866 ms |
54724 KB |
Output is correct |
108 |
Correct |
893 ms |
54832 KB |
Output is correct |
109 |
Correct |
1586 ms |
78648 KB |
Output is correct |
110 |
Correct |
8 ms |
27228 KB |
Output is correct |
111 |
Correct |
8 ms |
27228 KB |
Output is correct |
112 |
Correct |
8 ms |
27100 KB |
Output is correct |
113 |
Correct |
8 ms |
27228 KB |
Output is correct |
114 |
Correct |
8 ms |
27228 KB |
Output is correct |
115 |
Correct |
913 ms |
59776 KB |
Output is correct |
116 |
Correct |
833 ms |
55756 KB |
Output is correct |
117 |
Correct |
905 ms |
58204 KB |
Output is correct |
118 |
Correct |
935 ms |
58780 KB |
Output is correct |
119 |
Correct |
2076 ms |
82880 KB |
Output is correct |
120 |
Correct |
2259 ms |
102152 KB |
Output is correct |
121 |
Correct |
2161 ms |
101736 KB |
Output is correct |
122 |
Correct |
905 ms |
59772 KB |
Output is correct |
123 |
Correct |
909 ms |
59368 KB |
Output is correct |
124 |
Correct |
924 ms |
59536 KB |
Output is correct |
125 |
Correct |
2113 ms |
101956 KB |
Output is correct |
126 |
Correct |
8 ms |
27224 KB |
Output is correct |
127 |
Correct |
8 ms |
27228 KB |
Output is correct |
128 |
Correct |
8 ms |
27228 KB |
Output is correct |
129 |
Correct |
8 ms |
27228 KB |
Output is correct |
130 |
Correct |
8 ms |
27280 KB |
Output is correct |
131 |
Correct |
29 ms |
27992 KB |
Output is correct |
132 |
Execution timed out |
4019 ms |
107372 KB |
Time limit exceeded |
133 |
Halted |
0 ms |
0 KB |
- |