#include<bits/stdc++.h>
using namespace std;
using pi = pair<int,int>;
using ppi = pair<pi,pi>;
const int N=3e5+5;
const int M=25;
const int K=(1<<20)+5;
int n,m;
int a[N],cnt[M];
ppi dp[K];
void upd(ppi &x,pi v){
if(v.second==x.first.second)return void(x.first=min(x.first,v));
x.second=min(x.second,v);
if(x.first>x.second)swap(x.first,x.second);
}
void upd(ppi &x,ppi y){
upd(x,y.first);
upd(x,y.second);
}
int main(){
cin.tie(nullptr)->sync_with_stdio(false);
cin >> n >> m;
for(int i=1;i<=n;i++){
for(int j=0;j<m;j++){
int x;
cin >> x;
a[i]|=x<<j;
cnt[j]+=x;
}
}
const ppi IDN=ppi(pi(m,0),pi(m,0));
for(int i=0;i<1<<m;i++)dp[i]=IDN;
for(int i=1;i<=n;i++)upd(dp[a[i]],pi(0,i));
for(int k=1;k<1<<m;k<<=1){
for(int i=0;i<1<<m;i+=k<<1){
for(int j=0;j<k;j++){
int u=i+j,v=i+j+k;
auto du=dp[u],dv=dp[v];
dp[v].first.first++;
dp[v].second.first++;
upd(dp[u],dv);
upd(dp[v],du);
}
}
}
for(int i=1;i<=n;i++){
int mask=0,ans=0;
for(int j=0;j<m;j++){
int res=cnt[j]-(a[i]>>j&1);
if(res==n/2)mask|=1<<j;
if(res>=n/2)ans++;
}
cout << ans-(dp[mask].first.second!=i?dp[mask].first:dp[mask].second).first << "\n";
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2396 KB |
Output is correct |
2 |
Correct |
1 ms |
2396 KB |
Output is correct |
3 |
Correct |
1 ms |
2396 KB |
Output is correct |
4 |
Correct |
1 ms |
2392 KB |
Output is correct |
5 |
Correct |
94 ms |
16844 KB |
Output is correct |
6 |
Correct |
88 ms |
17048 KB |
Output is correct |
7 |
Correct |
96 ms |
16984 KB |
Output is correct |
8 |
Correct |
106 ms |
17036 KB |
Output is correct |
9 |
Correct |
139 ms |
17048 KB |
Output is correct |
10 |
Correct |
97 ms |
16988 KB |
Output is correct |
11 |
Correct |
115 ms |
16988 KB |
Output is correct |
12 |
Correct |
142 ms |
16984 KB |
Output is correct |
13 |
Correct |
1 ms |
2392 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2512 KB |
Output is correct |
17 |
Correct |
1 ms |
2396 KB |
Output is correct |
18 |
Correct |
1 ms |
2512 KB |
Output is correct |
19 |
Correct |
1 ms |
2396 KB |
Output is correct |
20 |
Correct |
1 ms |
2396 KB |
Output is correct |
21 |
Correct |
1 ms |
2396 KB |
Output is correct |
22 |
Correct |
1 ms |
2396 KB |
Output is correct |
23 |
Correct |
1 ms |
2392 KB |
Output is correct |
24 |
Correct |
1 ms |
2396 KB |
Output is correct |
25 |
Correct |
1 ms |
2396 KB |
Output is correct |
26 |
Correct |
1 ms |
2396 KB |
Output is correct |
27 |
Correct |
1 ms |
2396 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2392 KB |
Output is correct |
30 |
Correct |
1 ms |
2396 KB |
Output is correct |
31 |
Correct |
1 ms |
2396 KB |
Output is correct |
32 |
Correct |
1 ms |
2396 KB |
Output is correct |
33 |
Correct |
0 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2396 KB |
Output is correct |
35 |
Correct |
1 ms |
2396 KB |
Output is correct |
36 |
Correct |
1 ms |
2512 KB |
Output is correct |
37 |
Correct |
1 ms |
2396 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2396 KB |
Output is correct |
40 |
Correct |
1 ms |
2396 KB |
Output is correct |
41 |
Correct |
2 ms |
4700 KB |
Output is correct |
42 |
Correct |
2 ms |
4560 KB |
Output is correct |
43 |
Correct |
2 ms |
4712 KB |
Output is correct |
44 |
Correct |
2 ms |
4700 KB |
Output is correct |
45 |
Correct |
2 ms |
4700 KB |
Output is correct |
46 |
Correct |
11 ms |
4700 KB |
Output is correct |
47 |
Correct |
11 ms |
4556 KB |
Output is correct |
48 |
Correct |
12 ms |
4696 KB |
Output is correct |
49 |
Correct |
11 ms |
4700 KB |
Output is correct |
50 |
Correct |
13 ms |
4700 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2396 KB |
Output is correct |
2 |
Correct |
1 ms |
2396 KB |
Output is correct |
3 |
Correct |
1 ms |
2396 KB |
Output is correct |
4 |
Correct |
1 ms |
2392 KB |
Output is correct |
5 |
Correct |
94 ms |
16844 KB |
Output is correct |
6 |
Correct |
88 ms |
17048 KB |
Output is correct |
7 |
Correct |
96 ms |
16984 KB |
Output is correct |
8 |
Correct |
106 ms |
17036 KB |
Output is correct |
9 |
Correct |
139 ms |
17048 KB |
Output is correct |
10 |
Correct |
97 ms |
16988 KB |
Output is correct |
11 |
Correct |
115 ms |
16988 KB |
Output is correct |
12 |
Correct |
142 ms |
16984 KB |
Output is correct |
13 |
Correct |
1 ms |
2392 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2512 KB |
Output is correct |
17 |
Correct |
1 ms |
2396 KB |
Output is correct |
18 |
Correct |
1 ms |
2512 KB |
Output is correct |
19 |
Correct |
1 ms |
2396 KB |
Output is correct |
20 |
Correct |
1 ms |
2396 KB |
Output is correct |
21 |
Correct |
1 ms |
2396 KB |
Output is correct |
22 |
Correct |
1 ms |
2396 KB |
Output is correct |
23 |
Correct |
1 ms |
2392 KB |
Output is correct |
24 |
Correct |
1 ms |
2396 KB |
Output is correct |
25 |
Correct |
1 ms |
2396 KB |
Output is correct |
26 |
Correct |
1 ms |
2396 KB |
Output is correct |
27 |
Correct |
1 ms |
2396 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2392 KB |
Output is correct |
30 |
Correct |
1 ms |
2396 KB |
Output is correct |
31 |
Correct |
1 ms |
2396 KB |
Output is correct |
32 |
Correct |
1 ms |
2396 KB |
Output is correct |
33 |
Correct |
0 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2396 KB |
Output is correct |
35 |
Correct |
1 ms |
2396 KB |
Output is correct |
36 |
Correct |
1 ms |
2512 KB |
Output is correct |
37 |
Correct |
1 ms |
2396 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2396 KB |
Output is correct |
40 |
Correct |
1 ms |
2396 KB |
Output is correct |
41 |
Correct |
2 ms |
4700 KB |
Output is correct |
42 |
Correct |
2 ms |
4560 KB |
Output is correct |
43 |
Correct |
2 ms |
4712 KB |
Output is correct |
44 |
Correct |
2 ms |
4700 KB |
Output is correct |
45 |
Correct |
2 ms |
4700 KB |
Output is correct |
46 |
Correct |
11 ms |
4700 KB |
Output is correct |
47 |
Correct |
11 ms |
4556 KB |
Output is correct |
48 |
Correct |
12 ms |
4696 KB |
Output is correct |
49 |
Correct |
11 ms |
4700 KB |
Output is correct |
50 |
Correct |
13 ms |
4700 KB |
Output is correct |
51 |
Correct |
88 ms |
16984 KB |
Output is correct |
52 |
Correct |
90 ms |
17236 KB |
Output is correct |
53 |
Correct |
168 ms |
17168 KB |
Output is correct |
54 |
Correct |
170 ms |
16988 KB |
Output is correct |
55 |
Correct |
1 ms |
2396 KB |
Output is correct |
56 |
Correct |
23 ms |
4660 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
5248 KB |
Output is correct |
3 |
Correct |
38 ms |
5204 KB |
Output is correct |
4 |
Correct |
28 ms |
4444 KB |
Output is correct |
5 |
Correct |
41 ms |
5200 KB |
Output is correct |
6 |
Correct |
30 ms |
4684 KB |
Output is correct |
7 |
Correct |
44 ms |
5200 KB |
Output is correct |
8 |
Correct |
1 ms |
2396 KB |
Output is correct |
9 |
Correct |
1 ms |
2396 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2396 KB |
Output is correct |
12 |
Correct |
1 ms |
2396 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
0 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
1 ms |
2472 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
5248 KB |
Output is correct |
3 |
Correct |
38 ms |
5204 KB |
Output is correct |
4 |
Correct |
28 ms |
4444 KB |
Output is correct |
5 |
Correct |
41 ms |
5200 KB |
Output is correct |
6 |
Correct |
30 ms |
4684 KB |
Output is correct |
7 |
Correct |
44 ms |
5200 KB |
Output is correct |
8 |
Correct |
1 ms |
2396 KB |
Output is correct |
9 |
Correct |
1 ms |
2396 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2396 KB |
Output is correct |
12 |
Correct |
1 ms |
2396 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
0 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
1 ms |
2472 KB |
Output is correct |
18 |
Correct |
1 ms |
2592 KB |
Output is correct |
19 |
Correct |
1 ms |
2652 KB |
Output is correct |
20 |
Correct |
150 ms |
9916 KB |
Output is correct |
21 |
Correct |
152 ms |
9296 KB |
Output is correct |
22 |
Correct |
137 ms |
9352 KB |
Output is correct |
23 |
Correct |
139 ms |
10040 KB |
Output is correct |
24 |
Correct |
123 ms |
9812 KB |
Output is correct |
25 |
Correct |
142 ms |
9808 KB |
Output is correct |
26 |
Correct |
166 ms |
10044 KB |
Output is correct |
27 |
Correct |
1 ms |
2392 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2396 KB |
Output is correct |
30 |
Correct |
1 ms |
2508 KB |
Output is correct |
31 |
Correct |
1 ms |
2396 KB |
Output is correct |
32 |
Correct |
1 ms |
2396 KB |
Output is correct |
33 |
Correct |
1 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2396 KB |
Output is correct |
35 |
Correct |
1 ms |
2396 KB |
Output is correct |
36 |
Correct |
1 ms |
2396 KB |
Output is correct |
37 |
Correct |
0 ms |
2396 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2396 KB |
Output is correct |
40 |
Correct |
1 ms |
2504 KB |
Output is correct |
41 |
Correct |
1 ms |
2396 KB |
Output is correct |
42 |
Correct |
1 ms |
2396 KB |
Output is correct |
43 |
Correct |
1 ms |
2396 KB |
Output is correct |
44 |
Correct |
1 ms |
2396 KB |
Output is correct |
45 |
Correct |
1 ms |
2516 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
5248 KB |
Output is correct |
3 |
Correct |
38 ms |
5204 KB |
Output is correct |
4 |
Correct |
28 ms |
4444 KB |
Output is correct |
5 |
Correct |
41 ms |
5200 KB |
Output is correct |
6 |
Correct |
30 ms |
4684 KB |
Output is correct |
7 |
Correct |
44 ms |
5200 KB |
Output is correct |
8 |
Correct |
1 ms |
2396 KB |
Output is correct |
9 |
Correct |
1 ms |
2396 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2396 KB |
Output is correct |
12 |
Correct |
1 ms |
2396 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
0 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
1 ms |
2472 KB |
Output is correct |
18 |
Correct |
1 ms |
2592 KB |
Output is correct |
19 |
Correct |
1 ms |
2652 KB |
Output is correct |
20 |
Correct |
150 ms |
9916 KB |
Output is correct |
21 |
Correct |
152 ms |
9296 KB |
Output is correct |
22 |
Correct |
137 ms |
9352 KB |
Output is correct |
23 |
Correct |
139 ms |
10040 KB |
Output is correct |
24 |
Correct |
123 ms |
9812 KB |
Output is correct |
25 |
Correct |
142 ms |
9808 KB |
Output is correct |
26 |
Correct |
166 ms |
10044 KB |
Output is correct |
27 |
Correct |
1 ms |
2392 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2396 KB |
Output is correct |
30 |
Correct |
1 ms |
2508 KB |
Output is correct |
31 |
Correct |
1 ms |
2396 KB |
Output is correct |
32 |
Correct |
1 ms |
2396 KB |
Output is correct |
33 |
Correct |
1 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2396 KB |
Output is correct |
35 |
Correct |
1 ms |
2396 KB |
Output is correct |
36 |
Correct |
1 ms |
2396 KB |
Output is correct |
37 |
Correct |
0 ms |
2396 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2396 KB |
Output is correct |
40 |
Correct |
1 ms |
2504 KB |
Output is correct |
41 |
Correct |
1 ms |
2396 KB |
Output is correct |
42 |
Correct |
1 ms |
2396 KB |
Output is correct |
43 |
Correct |
1 ms |
2396 KB |
Output is correct |
44 |
Correct |
1 ms |
2396 KB |
Output is correct |
45 |
Correct |
1 ms |
2516 KB |
Output is correct |
46 |
Correct |
1 ms |
2396 KB |
Output is correct |
47 |
Correct |
211 ms |
14388 KB |
Output is correct |
48 |
Correct |
199 ms |
11800 KB |
Output is correct |
49 |
Correct |
193 ms |
11776 KB |
Output is correct |
50 |
Correct |
181 ms |
14596 KB |
Output is correct |
51 |
Correct |
167 ms |
14440 KB |
Output is correct |
52 |
Correct |
194 ms |
14340 KB |
Output is correct |
53 |
Correct |
224 ms |
14760 KB |
Output is correct |
54 |
Correct |
2 ms |
4696 KB |
Output is correct |
55 |
Correct |
2 ms |
4700 KB |
Output is correct |
56 |
Correct |
2 ms |
4696 KB |
Output is correct |
57 |
Correct |
2 ms |
4700 KB |
Output is correct |
58 |
Correct |
2 ms |
4696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Correct |
44 ms |
5248 KB |
Output is correct |
3 |
Correct |
38 ms |
5204 KB |
Output is correct |
4 |
Correct |
28 ms |
4444 KB |
Output is correct |
5 |
Correct |
41 ms |
5200 KB |
Output is correct |
6 |
Correct |
30 ms |
4684 KB |
Output is correct |
7 |
Correct |
44 ms |
5200 KB |
Output is correct |
8 |
Correct |
1 ms |
2396 KB |
Output is correct |
9 |
Correct |
1 ms |
2396 KB |
Output is correct |
10 |
Correct |
1 ms |
2396 KB |
Output is correct |
11 |
Correct |
1 ms |
2396 KB |
Output is correct |
12 |
Correct |
1 ms |
2396 KB |
Output is correct |
13 |
Correct |
1 ms |
2396 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
0 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
1 ms |
2472 KB |
Output is correct |
18 |
Correct |
1 ms |
2592 KB |
Output is correct |
19 |
Correct |
1 ms |
2652 KB |
Output is correct |
20 |
Correct |
150 ms |
9916 KB |
Output is correct |
21 |
Correct |
152 ms |
9296 KB |
Output is correct |
22 |
Correct |
137 ms |
9352 KB |
Output is correct |
23 |
Correct |
139 ms |
10040 KB |
Output is correct |
24 |
Correct |
123 ms |
9812 KB |
Output is correct |
25 |
Correct |
142 ms |
9808 KB |
Output is correct |
26 |
Correct |
166 ms |
10044 KB |
Output is correct |
27 |
Correct |
1 ms |
2392 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2396 KB |
Output is correct |
30 |
Correct |
1 ms |
2508 KB |
Output is correct |
31 |
Correct |
1 ms |
2396 KB |
Output is correct |
32 |
Correct |
1 ms |
2396 KB |
Output is correct |
33 |
Correct |
1 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2396 KB |
Output is correct |
35 |
Correct |
1 ms |
2396 KB |
Output is correct |
36 |
Correct |
1 ms |
2396 KB |
Output is correct |
37 |
Correct |
0 ms |
2396 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2396 KB |
Output is correct |
40 |
Correct |
1 ms |
2504 KB |
Output is correct |
41 |
Correct |
1 ms |
2396 KB |
Output is correct |
42 |
Correct |
1 ms |
2396 KB |
Output is correct |
43 |
Correct |
1 ms |
2396 KB |
Output is correct |
44 |
Correct |
1 ms |
2396 KB |
Output is correct |
45 |
Correct |
1 ms |
2516 KB |
Output is correct |
46 |
Correct |
1 ms |
2396 KB |
Output is correct |
47 |
Correct |
211 ms |
14388 KB |
Output is correct |
48 |
Correct |
199 ms |
11800 KB |
Output is correct |
49 |
Correct |
193 ms |
11776 KB |
Output is correct |
50 |
Correct |
181 ms |
14596 KB |
Output is correct |
51 |
Correct |
167 ms |
14440 KB |
Output is correct |
52 |
Correct |
194 ms |
14340 KB |
Output is correct |
53 |
Correct |
224 ms |
14760 KB |
Output is correct |
54 |
Correct |
2 ms |
4696 KB |
Output is correct |
55 |
Correct |
2 ms |
4700 KB |
Output is correct |
56 |
Correct |
2 ms |
4696 KB |
Output is correct |
57 |
Correct |
2 ms |
4700 KB |
Output is correct |
58 |
Correct |
2 ms |
4696 KB |
Output is correct |
59 |
Correct |
231 ms |
15924 KB |
Output is correct |
60 |
Correct |
116 ms |
9152 KB |
Output is correct |
61 |
Correct |
120 ms |
9476 KB |
Output is correct |
62 |
Correct |
125 ms |
9552 KB |
Output is correct |
63 |
Correct |
244 ms |
15648 KB |
Output is correct |
64 |
Correct |
267 ms |
16212 KB |
Output is correct |
65 |
Correct |
269 ms |
16364 KB |
Output is correct |
66 |
Correct |
234 ms |
16572 KB |
Output is correct |
67 |
Correct |
205 ms |
16080 KB |
Output is correct |
68 |
Correct |
252 ms |
16208 KB |
Output is correct |
69 |
Correct |
274 ms |
16468 KB |
Output is correct |
70 |
Correct |
11 ms |
4560 KB |
Output is correct |
71 |
Correct |
12 ms |
4700 KB |
Output is correct |
72 |
Correct |
12 ms |
4696 KB |
Output is correct |
73 |
Correct |
11 ms |
4696 KB |
Output is correct |
74 |
Correct |
13 ms |
4748 KB |
Output is correct |
75 |
Correct |
23 ms |
4696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2396 KB |
Output is correct |
2 |
Correct |
1 ms |
2396 KB |
Output is correct |
3 |
Correct |
1 ms |
2396 KB |
Output is correct |
4 |
Correct |
1 ms |
2392 KB |
Output is correct |
5 |
Correct |
94 ms |
16844 KB |
Output is correct |
6 |
Correct |
88 ms |
17048 KB |
Output is correct |
7 |
Correct |
96 ms |
16984 KB |
Output is correct |
8 |
Correct |
106 ms |
17036 KB |
Output is correct |
9 |
Correct |
139 ms |
17048 KB |
Output is correct |
10 |
Correct |
97 ms |
16988 KB |
Output is correct |
11 |
Correct |
115 ms |
16988 KB |
Output is correct |
12 |
Correct |
142 ms |
16984 KB |
Output is correct |
13 |
Correct |
1 ms |
2392 KB |
Output is correct |
14 |
Correct |
1 ms |
2392 KB |
Output is correct |
15 |
Correct |
1 ms |
2396 KB |
Output is correct |
16 |
Correct |
1 ms |
2512 KB |
Output is correct |
17 |
Correct |
1 ms |
2396 KB |
Output is correct |
18 |
Correct |
1 ms |
2512 KB |
Output is correct |
19 |
Correct |
1 ms |
2396 KB |
Output is correct |
20 |
Correct |
1 ms |
2396 KB |
Output is correct |
21 |
Correct |
1 ms |
2396 KB |
Output is correct |
22 |
Correct |
1 ms |
2396 KB |
Output is correct |
23 |
Correct |
1 ms |
2392 KB |
Output is correct |
24 |
Correct |
1 ms |
2396 KB |
Output is correct |
25 |
Correct |
1 ms |
2396 KB |
Output is correct |
26 |
Correct |
1 ms |
2396 KB |
Output is correct |
27 |
Correct |
1 ms |
2396 KB |
Output is correct |
28 |
Correct |
1 ms |
2396 KB |
Output is correct |
29 |
Correct |
1 ms |
2392 KB |
Output is correct |
30 |
Correct |
1 ms |
2396 KB |
Output is correct |
31 |
Correct |
1 ms |
2396 KB |
Output is correct |
32 |
Correct |
1 ms |
2396 KB |
Output is correct |
33 |
Correct |
0 ms |
2396 KB |
Output is correct |
34 |
Correct |
1 ms |
2396 KB |
Output is correct |
35 |
Correct |
1 ms |
2396 KB |
Output is correct |
36 |
Correct |
1 ms |
2512 KB |
Output is correct |
37 |
Correct |
1 ms |
2396 KB |
Output is correct |
38 |
Correct |
1 ms |
2396 KB |
Output is correct |
39 |
Correct |
1 ms |
2396 KB |
Output is correct |
40 |
Correct |
1 ms |
2396 KB |
Output is correct |
41 |
Correct |
2 ms |
4700 KB |
Output is correct |
42 |
Correct |
2 ms |
4560 KB |
Output is correct |
43 |
Correct |
2 ms |
4712 KB |
Output is correct |
44 |
Correct |
2 ms |
4700 KB |
Output is correct |
45 |
Correct |
2 ms |
4700 KB |
Output is correct |
46 |
Correct |
11 ms |
4700 KB |
Output is correct |
47 |
Correct |
11 ms |
4556 KB |
Output is correct |
48 |
Correct |
12 ms |
4696 KB |
Output is correct |
49 |
Correct |
11 ms |
4700 KB |
Output is correct |
50 |
Correct |
13 ms |
4700 KB |
Output is correct |
51 |
Correct |
88 ms |
16984 KB |
Output is correct |
52 |
Correct |
90 ms |
17236 KB |
Output is correct |
53 |
Correct |
168 ms |
17168 KB |
Output is correct |
54 |
Correct |
170 ms |
16988 KB |
Output is correct |
55 |
Correct |
1 ms |
2396 KB |
Output is correct |
56 |
Correct |
23 ms |
4660 KB |
Output is correct |
57 |
Correct |
1 ms |
2392 KB |
Output is correct |
58 |
Correct |
44 ms |
5248 KB |
Output is correct |
59 |
Correct |
38 ms |
5204 KB |
Output is correct |
60 |
Correct |
28 ms |
4444 KB |
Output is correct |
61 |
Correct |
41 ms |
5200 KB |
Output is correct |
62 |
Correct |
30 ms |
4684 KB |
Output is correct |
63 |
Correct |
44 ms |
5200 KB |
Output is correct |
64 |
Correct |
1 ms |
2396 KB |
Output is correct |
65 |
Correct |
1 ms |
2396 KB |
Output is correct |
66 |
Correct |
1 ms |
2396 KB |
Output is correct |
67 |
Correct |
1 ms |
2396 KB |
Output is correct |
68 |
Correct |
1 ms |
2396 KB |
Output is correct |
69 |
Correct |
1 ms |
2396 KB |
Output is correct |
70 |
Correct |
1 ms |
2392 KB |
Output is correct |
71 |
Correct |
0 ms |
2396 KB |
Output is correct |
72 |
Correct |
1 ms |
2396 KB |
Output is correct |
73 |
Correct |
1 ms |
2472 KB |
Output is correct |
74 |
Correct |
1 ms |
2592 KB |
Output is correct |
75 |
Correct |
1 ms |
2652 KB |
Output is correct |
76 |
Correct |
150 ms |
9916 KB |
Output is correct |
77 |
Correct |
152 ms |
9296 KB |
Output is correct |
78 |
Correct |
137 ms |
9352 KB |
Output is correct |
79 |
Correct |
139 ms |
10040 KB |
Output is correct |
80 |
Correct |
123 ms |
9812 KB |
Output is correct |
81 |
Correct |
142 ms |
9808 KB |
Output is correct |
82 |
Correct |
166 ms |
10044 KB |
Output is correct |
83 |
Correct |
1 ms |
2392 KB |
Output is correct |
84 |
Correct |
1 ms |
2396 KB |
Output is correct |
85 |
Correct |
1 ms |
2396 KB |
Output is correct |
86 |
Correct |
1 ms |
2508 KB |
Output is correct |
87 |
Correct |
1 ms |
2396 KB |
Output is correct |
88 |
Correct |
1 ms |
2396 KB |
Output is correct |
89 |
Correct |
1 ms |
2396 KB |
Output is correct |
90 |
Correct |
1 ms |
2396 KB |
Output is correct |
91 |
Correct |
1 ms |
2396 KB |
Output is correct |
92 |
Correct |
1 ms |
2396 KB |
Output is correct |
93 |
Correct |
0 ms |
2396 KB |
Output is correct |
94 |
Correct |
1 ms |
2396 KB |
Output is correct |
95 |
Correct |
1 ms |
2396 KB |
Output is correct |
96 |
Correct |
1 ms |
2504 KB |
Output is correct |
97 |
Correct |
1 ms |
2396 KB |
Output is correct |
98 |
Correct |
1 ms |
2396 KB |
Output is correct |
99 |
Correct |
1 ms |
2396 KB |
Output is correct |
100 |
Correct |
1 ms |
2396 KB |
Output is correct |
101 |
Correct |
1 ms |
2516 KB |
Output is correct |
102 |
Correct |
1 ms |
2396 KB |
Output is correct |
103 |
Correct |
211 ms |
14388 KB |
Output is correct |
104 |
Correct |
199 ms |
11800 KB |
Output is correct |
105 |
Correct |
193 ms |
11776 KB |
Output is correct |
106 |
Correct |
181 ms |
14596 KB |
Output is correct |
107 |
Correct |
167 ms |
14440 KB |
Output is correct |
108 |
Correct |
194 ms |
14340 KB |
Output is correct |
109 |
Correct |
224 ms |
14760 KB |
Output is correct |
110 |
Correct |
2 ms |
4696 KB |
Output is correct |
111 |
Correct |
2 ms |
4700 KB |
Output is correct |
112 |
Correct |
2 ms |
4696 KB |
Output is correct |
113 |
Correct |
2 ms |
4700 KB |
Output is correct |
114 |
Correct |
2 ms |
4696 KB |
Output is correct |
115 |
Correct |
231 ms |
15924 KB |
Output is correct |
116 |
Correct |
116 ms |
9152 KB |
Output is correct |
117 |
Correct |
120 ms |
9476 KB |
Output is correct |
118 |
Correct |
125 ms |
9552 KB |
Output is correct |
119 |
Correct |
244 ms |
15648 KB |
Output is correct |
120 |
Correct |
267 ms |
16212 KB |
Output is correct |
121 |
Correct |
269 ms |
16364 KB |
Output is correct |
122 |
Correct |
234 ms |
16572 KB |
Output is correct |
123 |
Correct |
205 ms |
16080 KB |
Output is correct |
124 |
Correct |
252 ms |
16208 KB |
Output is correct |
125 |
Correct |
274 ms |
16468 KB |
Output is correct |
126 |
Correct |
11 ms |
4560 KB |
Output is correct |
127 |
Correct |
12 ms |
4700 KB |
Output is correct |
128 |
Correct |
12 ms |
4696 KB |
Output is correct |
129 |
Correct |
11 ms |
4696 KB |
Output is correct |
130 |
Correct |
13 ms |
4748 KB |
Output is correct |
131 |
Correct |
23 ms |
4696 KB |
Output is correct |
132 |
Correct |
450 ms |
30900 KB |
Output is correct |
133 |
Correct |
443 ms |
30288 KB |
Output is correct |
134 |
Correct |
441 ms |
30644 KB |
Output is correct |
135 |
Correct |
502 ms |
30696 KB |
Output is correct |
136 |
Correct |
482 ms |
30548 KB |
Output is correct |
137 |
Correct |
368 ms |
23760 KB |
Output is correct |
138 |
Correct |
363 ms |
23748 KB |
Output is correct |
139 |
Correct |
335 ms |
30896 KB |
Output is correct |
140 |
Correct |
316 ms |
30292 KB |
Output is correct |
141 |
Correct |
466 ms |
30288 KB |
Output is correct |
142 |
Correct |
513 ms |
30672 KB |
Output is correct |