#include <bits/stdc++.h>
using namespace std;
int n,m,v[300005][25],me[300005],have[(1<<20)+1],sol[(1<<20)+1];
int suma[25],dp[(1<<20)+1];
bool isover(int a,int b)
{
return a>=b&&(a^b)==(a-b);
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cin>>n>>m;
for(int i=1;i<=n;i++)
{
int mask=0;
for(int j=1;j<=m;j++)
{
cin>>v[i][j];
mask=(mask*2+v[i][j]);
suma[j]+=v[i][j];
}
me[i]=mask;
have[mask]=1;
dp[mask]++;
}
for(int bit=0;bit<m;bit++)
for(int mask=0;mask<(1<<m);mask++)
if((mask>>bit)&1)
dp[mask]=dp[mask]+dp[mask^(1<<bit)];
for(int mask=0;mask<(1<<m);mask++)
if(have[mask])
{
int need=0,can=0;
for(int i=m-1;i>=0;i--)
{
need*=2;
int val=((mask>>i)&1);
int poz=m-i;
int s=suma[poz]-val;
if(s-1>=n/2)
{
sol[mask]++;
need++;
}
if(s<n/2)
need++;
if(s==n/2)
{
need+=0;
can++;
}
}
int best=0;
for(int overmask=need;overmask<(1<<m);overmask=(overmask+1)|need)
if(dp[overmask]-isover(overmask,mask)>0)
{
int nr=__builtin_popcount(overmask-need);
nr=can-nr;
best=max(best,nr);
if(best==can)
break;
}
sol[mask]+=best;
}
for(int i=1;i<=n;i++)
cout<<sol[me[i]]<<'\n';
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
8536 KB |
Output is correct |
2 |
Correct |
2 ms |
8540 KB |
Output is correct |
3 |
Correct |
1 ms |
8540 KB |
Output is correct |
4 |
Correct |
2 ms |
8796 KB |
Output is correct |
5 |
Correct |
44 ms |
12952 KB |
Output is correct |
6 |
Correct |
18 ms |
8868 KB |
Output is correct |
7 |
Correct |
17 ms |
12892 KB |
Output is correct |
8 |
Correct |
21 ms |
12888 KB |
Output is correct |
9 |
Correct |
22 ms |
13396 KB |
Output is correct |
10 |
Correct |
17 ms |
12956 KB |
Output is correct |
11 |
Correct |
19 ms |
10904 KB |
Output is correct |
12 |
Correct |
21 ms |
13404 KB |
Output is correct |
13 |
Correct |
2 ms |
8696 KB |
Output is correct |
14 |
Correct |
2 ms |
8540 KB |
Output is correct |
15 |
Correct |
1 ms |
8540 KB |
Output is correct |
16 |
Correct |
1 ms |
8540 KB |
Output is correct |
17 |
Correct |
1 ms |
8540 KB |
Output is correct |
18 |
Correct |
1 ms |
8668 KB |
Output is correct |
19 |
Correct |
2 ms |
8536 KB |
Output is correct |
20 |
Correct |
1 ms |
8540 KB |
Output is correct |
21 |
Correct |
1 ms |
8540 KB |
Output is correct |
22 |
Correct |
1 ms |
8656 KB |
Output is correct |
23 |
Correct |
1 ms |
8540 KB |
Output is correct |
24 |
Correct |
1 ms |
8540 KB |
Output is correct |
25 |
Correct |
1 ms |
8540 KB |
Output is correct |
26 |
Correct |
1 ms |
8912 KB |
Output is correct |
27 |
Correct |
2 ms |
8792 KB |
Output is correct |
28 |
Correct |
2 ms |
8532 KB |
Output is correct |
29 |
Correct |
1 ms |
8540 KB |
Output is correct |
30 |
Correct |
2 ms |
8588 KB |
Output is correct |
31 |
Correct |
4 ms |
8540 KB |
Output is correct |
32 |
Correct |
1 ms |
8660 KB |
Output is correct |
33 |
Correct |
1 ms |
8792 KB |
Output is correct |
34 |
Correct |
1 ms |
8540 KB |
Output is correct |
35 |
Correct |
1 ms |
8540 KB |
Output is correct |
36 |
Correct |
2 ms |
8656 KB |
Output is correct |
37 |
Correct |
1 ms |
8540 KB |
Output is correct |
38 |
Correct |
1 ms |
8540 KB |
Output is correct |
39 |
Correct |
2 ms |
8540 KB |
Output is correct |
40 |
Correct |
2 ms |
8668 KB |
Output is correct |
41 |
Correct |
2 ms |
8540 KB |
Output is correct |
42 |
Correct |
1 ms |
8536 KB |
Output is correct |
43 |
Correct |
2 ms |
8536 KB |
Output is correct |
44 |
Correct |
2 ms |
8540 KB |
Output is correct |
45 |
Correct |
2 ms |
8540 KB |
Output is correct |
46 |
Correct |
9 ms |
12976 KB |
Output is correct |
47 |
Correct |
3 ms |
12760 KB |
Output is correct |
48 |
Correct |
3 ms |
12892 KB |
Output is correct |
49 |
Correct |
4 ms |
12752 KB |
Output is correct |
50 |
Correct |
4 ms |
12892 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
8536 KB |
Output is correct |
2 |
Correct |
2 ms |
8540 KB |
Output is correct |
3 |
Correct |
1 ms |
8540 KB |
Output is correct |
4 |
Correct |
2 ms |
8796 KB |
Output is correct |
5 |
Correct |
44 ms |
12952 KB |
Output is correct |
6 |
Correct |
18 ms |
8868 KB |
Output is correct |
7 |
Correct |
17 ms |
12892 KB |
Output is correct |
8 |
Correct |
21 ms |
12888 KB |
Output is correct |
9 |
Correct |
22 ms |
13396 KB |
Output is correct |
10 |
Correct |
17 ms |
12956 KB |
Output is correct |
11 |
Correct |
19 ms |
10904 KB |
Output is correct |
12 |
Correct |
21 ms |
13404 KB |
Output is correct |
13 |
Correct |
2 ms |
8696 KB |
Output is correct |
14 |
Correct |
2 ms |
8540 KB |
Output is correct |
15 |
Correct |
1 ms |
8540 KB |
Output is correct |
16 |
Correct |
1 ms |
8540 KB |
Output is correct |
17 |
Correct |
1 ms |
8540 KB |
Output is correct |
18 |
Correct |
1 ms |
8668 KB |
Output is correct |
19 |
Correct |
2 ms |
8536 KB |
Output is correct |
20 |
Correct |
1 ms |
8540 KB |
Output is correct |
21 |
Correct |
1 ms |
8540 KB |
Output is correct |
22 |
Correct |
1 ms |
8656 KB |
Output is correct |
23 |
Correct |
1 ms |
8540 KB |
Output is correct |
24 |
Correct |
1 ms |
8540 KB |
Output is correct |
25 |
Correct |
1 ms |
8540 KB |
Output is correct |
26 |
Correct |
1 ms |
8912 KB |
Output is correct |
27 |
Correct |
2 ms |
8792 KB |
Output is correct |
28 |
Correct |
2 ms |
8532 KB |
Output is correct |
29 |
Correct |
1 ms |
8540 KB |
Output is correct |
30 |
Correct |
2 ms |
8588 KB |
Output is correct |
31 |
Correct |
4 ms |
8540 KB |
Output is correct |
32 |
Correct |
1 ms |
8660 KB |
Output is correct |
33 |
Correct |
1 ms |
8792 KB |
Output is correct |
34 |
Correct |
1 ms |
8540 KB |
Output is correct |
35 |
Correct |
1 ms |
8540 KB |
Output is correct |
36 |
Correct |
2 ms |
8656 KB |
Output is correct |
37 |
Correct |
1 ms |
8540 KB |
Output is correct |
38 |
Correct |
1 ms |
8540 KB |
Output is correct |
39 |
Correct |
2 ms |
8540 KB |
Output is correct |
40 |
Correct |
2 ms |
8668 KB |
Output is correct |
41 |
Correct |
2 ms |
8540 KB |
Output is correct |
42 |
Correct |
1 ms |
8536 KB |
Output is correct |
43 |
Correct |
2 ms |
8536 KB |
Output is correct |
44 |
Correct |
2 ms |
8540 KB |
Output is correct |
45 |
Correct |
2 ms |
8540 KB |
Output is correct |
46 |
Correct |
9 ms |
12976 KB |
Output is correct |
47 |
Correct |
3 ms |
12760 KB |
Output is correct |
48 |
Correct |
3 ms |
12892 KB |
Output is correct |
49 |
Correct |
4 ms |
12752 KB |
Output is correct |
50 |
Correct |
4 ms |
12892 KB |
Output is correct |
51 |
Correct |
19 ms |
8796 KB |
Output is correct |
52 |
Correct |
28 ms |
10844 KB |
Output is correct |
53 |
Correct |
32 ms |
14928 KB |
Output is correct |
54 |
Correct |
45 ms |
14928 KB |
Output is correct |
55 |
Correct |
2 ms |
8540 KB |
Output is correct |
56 |
Correct |
14 ms |
13360 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
8536 KB |
Output is correct |
2 |
Correct |
43 ms |
38568 KB |
Output is correct |
3 |
Correct |
43 ms |
38620 KB |
Output is correct |
4 |
Correct |
48 ms |
37968 KB |
Output is correct |
5 |
Correct |
44 ms |
38480 KB |
Output is correct |
6 |
Correct |
51 ms |
37972 KB |
Output is correct |
7 |
Correct |
50 ms |
38592 KB |
Output is correct |
8 |
Correct |
1 ms |
8540 KB |
Output is correct |
9 |
Correct |
1 ms |
8540 KB |
Output is correct |
10 |
Correct |
1 ms |
8536 KB |
Output is correct |
11 |
Correct |
2 ms |
8664 KB |
Output is correct |
12 |
Correct |
2 ms |
8536 KB |
Output is correct |
13 |
Correct |
1 ms |
8536 KB |
Output is correct |
14 |
Correct |
1 ms |
8536 KB |
Output is correct |
15 |
Correct |
1 ms |
8660 KB |
Output is correct |
16 |
Correct |
2 ms |
8540 KB |
Output is correct |
17 |
Correct |
2 ms |
8540 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
8536 KB |
Output is correct |
2 |
Correct |
43 ms |
38568 KB |
Output is correct |
3 |
Correct |
43 ms |
38620 KB |
Output is correct |
4 |
Correct |
48 ms |
37968 KB |
Output is correct |
5 |
Correct |
44 ms |
38480 KB |
Output is correct |
6 |
Correct |
51 ms |
37972 KB |
Output is correct |
7 |
Correct |
50 ms |
38592 KB |
Output is correct |
8 |
Correct |
1 ms |
8540 KB |
Output is correct |
9 |
Correct |
1 ms |
8540 KB |
Output is correct |
10 |
Correct |
1 ms |
8536 KB |
Output is correct |
11 |
Correct |
2 ms |
8664 KB |
Output is correct |
12 |
Correct |
2 ms |
8536 KB |
Output is correct |
13 |
Correct |
1 ms |
8536 KB |
Output is correct |
14 |
Correct |
1 ms |
8536 KB |
Output is correct |
15 |
Correct |
1 ms |
8660 KB |
Output is correct |
16 |
Correct |
2 ms |
8540 KB |
Output is correct |
17 |
Correct |
2 ms |
8540 KB |
Output is correct |
18 |
Correct |
2 ms |
8540 KB |
Output is correct |
19 |
Correct |
1 ms |
8664 KB |
Output is correct |
20 |
Correct |
152 ms |
43348 KB |
Output is correct |
21 |
Correct |
130 ms |
42576 KB |
Output is correct |
22 |
Correct |
135 ms |
42580 KB |
Output is correct |
23 |
Correct |
133 ms |
43608 KB |
Output is correct |
24 |
Correct |
127 ms |
43332 KB |
Output is correct |
25 |
Correct |
144 ms |
43348 KB |
Output is correct |
26 |
Correct |
149 ms |
43696 KB |
Output is correct |
27 |
Correct |
2 ms |
8672 KB |
Output is correct |
28 |
Correct |
1 ms |
8536 KB |
Output is correct |
29 |
Correct |
1 ms |
8540 KB |
Output is correct |
30 |
Correct |
1 ms |
8540 KB |
Output is correct |
31 |
Correct |
1 ms |
8916 KB |
Output is correct |
32 |
Correct |
1 ms |
8540 KB |
Output is correct |
33 |
Correct |
1 ms |
8540 KB |
Output is correct |
34 |
Correct |
1 ms |
8540 KB |
Output is correct |
35 |
Correct |
1 ms |
8540 KB |
Output is correct |
36 |
Correct |
2 ms |
8540 KB |
Output is correct |
37 |
Correct |
1 ms |
8540 KB |
Output is correct |
38 |
Correct |
1 ms |
8536 KB |
Output is correct |
39 |
Correct |
1 ms |
8540 KB |
Output is correct |
40 |
Correct |
1 ms |
8540 KB |
Output is correct |
41 |
Correct |
1 ms |
8536 KB |
Output is correct |
42 |
Correct |
2 ms |
8540 KB |
Output is correct |
43 |
Correct |
1 ms |
8540 KB |
Output is correct |
44 |
Correct |
1 ms |
8540 KB |
Output is correct |
45 |
Correct |
1 ms |
8540 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
8536 KB |
Output is correct |
2 |
Correct |
43 ms |
38568 KB |
Output is correct |
3 |
Correct |
43 ms |
38620 KB |
Output is correct |
4 |
Correct |
48 ms |
37968 KB |
Output is correct |
5 |
Correct |
44 ms |
38480 KB |
Output is correct |
6 |
Correct |
51 ms |
37972 KB |
Output is correct |
7 |
Correct |
50 ms |
38592 KB |
Output is correct |
8 |
Correct |
1 ms |
8540 KB |
Output is correct |
9 |
Correct |
1 ms |
8540 KB |
Output is correct |
10 |
Correct |
1 ms |
8536 KB |
Output is correct |
11 |
Correct |
2 ms |
8664 KB |
Output is correct |
12 |
Correct |
2 ms |
8536 KB |
Output is correct |
13 |
Correct |
1 ms |
8536 KB |
Output is correct |
14 |
Correct |
1 ms |
8536 KB |
Output is correct |
15 |
Correct |
1 ms |
8660 KB |
Output is correct |
16 |
Correct |
2 ms |
8540 KB |
Output is correct |
17 |
Correct |
2 ms |
8540 KB |
Output is correct |
18 |
Correct |
2 ms |
8540 KB |
Output is correct |
19 |
Correct |
1 ms |
8664 KB |
Output is correct |
20 |
Correct |
152 ms |
43348 KB |
Output is correct |
21 |
Correct |
130 ms |
42576 KB |
Output is correct |
22 |
Correct |
135 ms |
42580 KB |
Output is correct |
23 |
Correct |
133 ms |
43608 KB |
Output is correct |
24 |
Correct |
127 ms |
43332 KB |
Output is correct |
25 |
Correct |
144 ms |
43348 KB |
Output is correct |
26 |
Correct |
149 ms |
43696 KB |
Output is correct |
27 |
Correct |
2 ms |
8672 KB |
Output is correct |
28 |
Correct |
1 ms |
8536 KB |
Output is correct |
29 |
Correct |
1 ms |
8540 KB |
Output is correct |
30 |
Correct |
1 ms |
8540 KB |
Output is correct |
31 |
Correct |
1 ms |
8916 KB |
Output is correct |
32 |
Correct |
1 ms |
8540 KB |
Output is correct |
33 |
Correct |
1 ms |
8540 KB |
Output is correct |
34 |
Correct |
1 ms |
8540 KB |
Output is correct |
35 |
Correct |
1 ms |
8540 KB |
Output is correct |
36 |
Correct |
2 ms |
8540 KB |
Output is correct |
37 |
Correct |
1 ms |
8540 KB |
Output is correct |
38 |
Correct |
1 ms |
8536 KB |
Output is correct |
39 |
Correct |
1 ms |
8540 KB |
Output is correct |
40 |
Correct |
1 ms |
8540 KB |
Output is correct |
41 |
Correct |
1 ms |
8536 KB |
Output is correct |
42 |
Correct |
2 ms |
8540 KB |
Output is correct |
43 |
Correct |
1 ms |
8540 KB |
Output is correct |
44 |
Correct |
1 ms |
8540 KB |
Output is correct |
45 |
Correct |
1 ms |
8540 KB |
Output is correct |
46 |
Correct |
1 ms |
8536 KB |
Output is correct |
47 |
Correct |
197 ms |
45884 KB |
Output is correct |
48 |
Correct |
182 ms |
45072 KB |
Output is correct |
49 |
Correct |
208 ms |
45140 KB |
Output is correct |
50 |
Correct |
183 ms |
46028 KB |
Output is correct |
51 |
Correct |
170 ms |
45668 KB |
Output is correct |
52 |
Correct |
202 ms |
45716 KB |
Output is correct |
53 |
Correct |
231 ms |
45960 KB |
Output is correct |
54 |
Correct |
2 ms |
8664 KB |
Output is correct |
55 |
Correct |
1 ms |
8540 KB |
Output is correct |
56 |
Correct |
2 ms |
8540 KB |
Output is correct |
57 |
Correct |
1 ms |
8540 KB |
Output is correct |
58 |
Correct |
2 ms |
8540 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
8536 KB |
Output is correct |
2 |
Correct |
43 ms |
38568 KB |
Output is correct |
3 |
Correct |
43 ms |
38620 KB |
Output is correct |
4 |
Correct |
48 ms |
37968 KB |
Output is correct |
5 |
Correct |
44 ms |
38480 KB |
Output is correct |
6 |
Correct |
51 ms |
37972 KB |
Output is correct |
7 |
Correct |
50 ms |
38592 KB |
Output is correct |
8 |
Correct |
1 ms |
8540 KB |
Output is correct |
9 |
Correct |
1 ms |
8540 KB |
Output is correct |
10 |
Correct |
1 ms |
8536 KB |
Output is correct |
11 |
Correct |
2 ms |
8664 KB |
Output is correct |
12 |
Correct |
2 ms |
8536 KB |
Output is correct |
13 |
Correct |
1 ms |
8536 KB |
Output is correct |
14 |
Correct |
1 ms |
8536 KB |
Output is correct |
15 |
Correct |
1 ms |
8660 KB |
Output is correct |
16 |
Correct |
2 ms |
8540 KB |
Output is correct |
17 |
Correct |
2 ms |
8540 KB |
Output is correct |
18 |
Correct |
2 ms |
8540 KB |
Output is correct |
19 |
Correct |
1 ms |
8664 KB |
Output is correct |
20 |
Correct |
152 ms |
43348 KB |
Output is correct |
21 |
Correct |
130 ms |
42576 KB |
Output is correct |
22 |
Correct |
135 ms |
42580 KB |
Output is correct |
23 |
Correct |
133 ms |
43608 KB |
Output is correct |
24 |
Correct |
127 ms |
43332 KB |
Output is correct |
25 |
Correct |
144 ms |
43348 KB |
Output is correct |
26 |
Correct |
149 ms |
43696 KB |
Output is correct |
27 |
Correct |
2 ms |
8672 KB |
Output is correct |
28 |
Correct |
1 ms |
8536 KB |
Output is correct |
29 |
Correct |
1 ms |
8540 KB |
Output is correct |
30 |
Correct |
1 ms |
8540 KB |
Output is correct |
31 |
Correct |
1 ms |
8916 KB |
Output is correct |
32 |
Correct |
1 ms |
8540 KB |
Output is correct |
33 |
Correct |
1 ms |
8540 KB |
Output is correct |
34 |
Correct |
1 ms |
8540 KB |
Output is correct |
35 |
Correct |
1 ms |
8540 KB |
Output is correct |
36 |
Correct |
2 ms |
8540 KB |
Output is correct |
37 |
Correct |
1 ms |
8540 KB |
Output is correct |
38 |
Correct |
1 ms |
8536 KB |
Output is correct |
39 |
Correct |
1 ms |
8540 KB |
Output is correct |
40 |
Correct |
1 ms |
8540 KB |
Output is correct |
41 |
Correct |
1 ms |
8536 KB |
Output is correct |
42 |
Correct |
2 ms |
8540 KB |
Output is correct |
43 |
Correct |
1 ms |
8540 KB |
Output is correct |
44 |
Correct |
1 ms |
8540 KB |
Output is correct |
45 |
Correct |
1 ms |
8540 KB |
Output is correct |
46 |
Correct |
1 ms |
8536 KB |
Output is correct |
47 |
Correct |
197 ms |
45884 KB |
Output is correct |
48 |
Correct |
182 ms |
45072 KB |
Output is correct |
49 |
Correct |
208 ms |
45140 KB |
Output is correct |
50 |
Correct |
183 ms |
46028 KB |
Output is correct |
51 |
Correct |
170 ms |
45668 KB |
Output is correct |
52 |
Correct |
202 ms |
45716 KB |
Output is correct |
53 |
Correct |
231 ms |
45960 KB |
Output is correct |
54 |
Correct |
2 ms |
8664 KB |
Output is correct |
55 |
Correct |
1 ms |
8540 KB |
Output is correct |
56 |
Correct |
2 ms |
8540 KB |
Output is correct |
57 |
Correct |
1 ms |
8540 KB |
Output is correct |
58 |
Correct |
2 ms |
8540 KB |
Output is correct |
59 |
Correct |
223 ms |
51572 KB |
Output is correct |
60 |
Correct |
98 ms |
27652 KB |
Output is correct |
61 |
Correct |
107 ms |
30036 KB |
Output is correct |
62 |
Correct |
107 ms |
30100 KB |
Output is correct |
63 |
Correct |
239 ms |
51180 KB |
Output is correct |
64 |
Correct |
273 ms |
52052 KB |
Output is correct |
65 |
Correct |
244 ms |
51872 KB |
Output is correct |
66 |
Correct |
211 ms |
50032 KB |
Output is correct |
67 |
Correct |
206 ms |
47808 KB |
Output is correct |
68 |
Correct |
232 ms |
51976 KB |
Output is correct |
69 |
Correct |
241 ms |
52380 KB |
Output is correct |
70 |
Correct |
7 ms |
13144 KB |
Output is correct |
71 |
Correct |
3 ms |
12892 KB |
Output is correct |
72 |
Correct |
3 ms |
13008 KB |
Output is correct |
73 |
Correct |
3 ms |
12892 KB |
Output is correct |
74 |
Correct |
3 ms |
12892 KB |
Output is correct |
75 |
Correct |
13 ms |
13404 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
8536 KB |
Output is correct |
2 |
Correct |
2 ms |
8540 KB |
Output is correct |
3 |
Correct |
1 ms |
8540 KB |
Output is correct |
4 |
Correct |
2 ms |
8796 KB |
Output is correct |
5 |
Correct |
44 ms |
12952 KB |
Output is correct |
6 |
Correct |
18 ms |
8868 KB |
Output is correct |
7 |
Correct |
17 ms |
12892 KB |
Output is correct |
8 |
Correct |
21 ms |
12888 KB |
Output is correct |
9 |
Correct |
22 ms |
13396 KB |
Output is correct |
10 |
Correct |
17 ms |
12956 KB |
Output is correct |
11 |
Correct |
19 ms |
10904 KB |
Output is correct |
12 |
Correct |
21 ms |
13404 KB |
Output is correct |
13 |
Correct |
2 ms |
8696 KB |
Output is correct |
14 |
Correct |
2 ms |
8540 KB |
Output is correct |
15 |
Correct |
1 ms |
8540 KB |
Output is correct |
16 |
Correct |
1 ms |
8540 KB |
Output is correct |
17 |
Correct |
1 ms |
8540 KB |
Output is correct |
18 |
Correct |
1 ms |
8668 KB |
Output is correct |
19 |
Correct |
2 ms |
8536 KB |
Output is correct |
20 |
Correct |
1 ms |
8540 KB |
Output is correct |
21 |
Correct |
1 ms |
8540 KB |
Output is correct |
22 |
Correct |
1 ms |
8656 KB |
Output is correct |
23 |
Correct |
1 ms |
8540 KB |
Output is correct |
24 |
Correct |
1 ms |
8540 KB |
Output is correct |
25 |
Correct |
1 ms |
8540 KB |
Output is correct |
26 |
Correct |
1 ms |
8912 KB |
Output is correct |
27 |
Correct |
2 ms |
8792 KB |
Output is correct |
28 |
Correct |
2 ms |
8532 KB |
Output is correct |
29 |
Correct |
1 ms |
8540 KB |
Output is correct |
30 |
Correct |
2 ms |
8588 KB |
Output is correct |
31 |
Correct |
4 ms |
8540 KB |
Output is correct |
32 |
Correct |
1 ms |
8660 KB |
Output is correct |
33 |
Correct |
1 ms |
8792 KB |
Output is correct |
34 |
Correct |
1 ms |
8540 KB |
Output is correct |
35 |
Correct |
1 ms |
8540 KB |
Output is correct |
36 |
Correct |
2 ms |
8656 KB |
Output is correct |
37 |
Correct |
1 ms |
8540 KB |
Output is correct |
38 |
Correct |
1 ms |
8540 KB |
Output is correct |
39 |
Correct |
2 ms |
8540 KB |
Output is correct |
40 |
Correct |
2 ms |
8668 KB |
Output is correct |
41 |
Correct |
2 ms |
8540 KB |
Output is correct |
42 |
Correct |
1 ms |
8536 KB |
Output is correct |
43 |
Correct |
2 ms |
8536 KB |
Output is correct |
44 |
Correct |
2 ms |
8540 KB |
Output is correct |
45 |
Correct |
2 ms |
8540 KB |
Output is correct |
46 |
Correct |
9 ms |
12976 KB |
Output is correct |
47 |
Correct |
3 ms |
12760 KB |
Output is correct |
48 |
Correct |
3 ms |
12892 KB |
Output is correct |
49 |
Correct |
4 ms |
12752 KB |
Output is correct |
50 |
Correct |
4 ms |
12892 KB |
Output is correct |
51 |
Correct |
19 ms |
8796 KB |
Output is correct |
52 |
Correct |
28 ms |
10844 KB |
Output is correct |
53 |
Correct |
32 ms |
14928 KB |
Output is correct |
54 |
Correct |
45 ms |
14928 KB |
Output is correct |
55 |
Correct |
2 ms |
8540 KB |
Output is correct |
56 |
Correct |
14 ms |
13360 KB |
Output is correct |
57 |
Correct |
1 ms |
8536 KB |
Output is correct |
58 |
Correct |
43 ms |
38568 KB |
Output is correct |
59 |
Correct |
43 ms |
38620 KB |
Output is correct |
60 |
Correct |
48 ms |
37968 KB |
Output is correct |
61 |
Correct |
44 ms |
38480 KB |
Output is correct |
62 |
Correct |
51 ms |
37972 KB |
Output is correct |
63 |
Correct |
50 ms |
38592 KB |
Output is correct |
64 |
Correct |
1 ms |
8540 KB |
Output is correct |
65 |
Correct |
1 ms |
8540 KB |
Output is correct |
66 |
Correct |
1 ms |
8536 KB |
Output is correct |
67 |
Correct |
2 ms |
8664 KB |
Output is correct |
68 |
Correct |
2 ms |
8536 KB |
Output is correct |
69 |
Correct |
1 ms |
8536 KB |
Output is correct |
70 |
Correct |
1 ms |
8536 KB |
Output is correct |
71 |
Correct |
1 ms |
8660 KB |
Output is correct |
72 |
Correct |
2 ms |
8540 KB |
Output is correct |
73 |
Correct |
2 ms |
8540 KB |
Output is correct |
74 |
Correct |
2 ms |
8540 KB |
Output is correct |
75 |
Correct |
1 ms |
8664 KB |
Output is correct |
76 |
Correct |
152 ms |
43348 KB |
Output is correct |
77 |
Correct |
130 ms |
42576 KB |
Output is correct |
78 |
Correct |
135 ms |
42580 KB |
Output is correct |
79 |
Correct |
133 ms |
43608 KB |
Output is correct |
80 |
Correct |
127 ms |
43332 KB |
Output is correct |
81 |
Correct |
144 ms |
43348 KB |
Output is correct |
82 |
Correct |
149 ms |
43696 KB |
Output is correct |
83 |
Correct |
2 ms |
8672 KB |
Output is correct |
84 |
Correct |
1 ms |
8536 KB |
Output is correct |
85 |
Correct |
1 ms |
8540 KB |
Output is correct |
86 |
Correct |
1 ms |
8540 KB |
Output is correct |
87 |
Correct |
1 ms |
8916 KB |
Output is correct |
88 |
Correct |
1 ms |
8540 KB |
Output is correct |
89 |
Correct |
1 ms |
8540 KB |
Output is correct |
90 |
Correct |
1 ms |
8540 KB |
Output is correct |
91 |
Correct |
1 ms |
8540 KB |
Output is correct |
92 |
Correct |
2 ms |
8540 KB |
Output is correct |
93 |
Correct |
1 ms |
8540 KB |
Output is correct |
94 |
Correct |
1 ms |
8536 KB |
Output is correct |
95 |
Correct |
1 ms |
8540 KB |
Output is correct |
96 |
Correct |
1 ms |
8540 KB |
Output is correct |
97 |
Correct |
1 ms |
8536 KB |
Output is correct |
98 |
Correct |
2 ms |
8540 KB |
Output is correct |
99 |
Correct |
1 ms |
8540 KB |
Output is correct |
100 |
Correct |
1 ms |
8540 KB |
Output is correct |
101 |
Correct |
1 ms |
8540 KB |
Output is correct |
102 |
Correct |
1 ms |
8536 KB |
Output is correct |
103 |
Correct |
197 ms |
45884 KB |
Output is correct |
104 |
Correct |
182 ms |
45072 KB |
Output is correct |
105 |
Correct |
208 ms |
45140 KB |
Output is correct |
106 |
Correct |
183 ms |
46028 KB |
Output is correct |
107 |
Correct |
170 ms |
45668 KB |
Output is correct |
108 |
Correct |
202 ms |
45716 KB |
Output is correct |
109 |
Correct |
231 ms |
45960 KB |
Output is correct |
110 |
Correct |
2 ms |
8664 KB |
Output is correct |
111 |
Correct |
1 ms |
8540 KB |
Output is correct |
112 |
Correct |
2 ms |
8540 KB |
Output is correct |
113 |
Correct |
1 ms |
8540 KB |
Output is correct |
114 |
Correct |
2 ms |
8540 KB |
Output is correct |
115 |
Correct |
223 ms |
51572 KB |
Output is correct |
116 |
Correct |
98 ms |
27652 KB |
Output is correct |
117 |
Correct |
107 ms |
30036 KB |
Output is correct |
118 |
Correct |
107 ms |
30100 KB |
Output is correct |
119 |
Correct |
239 ms |
51180 KB |
Output is correct |
120 |
Correct |
273 ms |
52052 KB |
Output is correct |
121 |
Correct |
244 ms |
51872 KB |
Output is correct |
122 |
Correct |
211 ms |
50032 KB |
Output is correct |
123 |
Correct |
206 ms |
47808 KB |
Output is correct |
124 |
Correct |
232 ms |
51976 KB |
Output is correct |
125 |
Correct |
241 ms |
52380 KB |
Output is correct |
126 |
Correct |
7 ms |
13144 KB |
Output is correct |
127 |
Correct |
3 ms |
12892 KB |
Output is correct |
128 |
Correct |
3 ms |
13008 KB |
Output is correct |
129 |
Correct |
3 ms |
12892 KB |
Output is correct |
130 |
Correct |
3 ms |
12892 KB |
Output is correct |
131 |
Correct |
13 ms |
13404 KB |
Output is correct |
132 |
Correct |
309 ms |
55808 KB |
Output is correct |
133 |
Correct |
318 ms |
55824 KB |
Output is correct |
134 |
Correct |
317 ms |
55892 KB |
Output is correct |
135 |
Correct |
633 ms |
55816 KB |
Output is correct |
136 |
Correct |
337 ms |
55936 KB |
Output is correct |
137 |
Correct |
540 ms |
54864 KB |
Output is correct |
138 |
Correct |
321 ms |
55008 KB |
Output is correct |
139 |
Correct |
263 ms |
49744 KB |
Output is correct |
140 |
Correct |
253 ms |
51432 KB |
Output is correct |
141 |
Correct |
310 ms |
55436 KB |
Output is correct |
142 |
Correct |
392 ms |
56016 KB |
Output is correct |