#include<stdio.h>
#include<assert.h>
#include<string.h>
#define N 300000
#define M 20
int a[N], b[N], n, m, cc[M], f[1<<M][2];
int count(int x) { return x ? 1 + count(x&x-1) : 0; }
int gt(int i,int j,int s){if(i==-1)return 0;if(j==-1)return 1;return count(b[i]&s)>count(b[j]&s);}
void put_(int i, int v)
{
if (gt(v, f[i][0], i))
f[i][1]=f[i][0],f[i][0]=v;
else if (v != f[i][0] && gt(v, f[i][1], i))
f[i][1]=v;
}
int main()
{
memset(f,-1,sizeof f);
scanf("%d%d",&n,&m);
for(int i=0;i<n;++i)
{
for(int x,j=0;j<m;++j)
scanf("%d",&x),a[i]|=x<<j, cc[j]+=x;
b[i]=((1<<m)-1)&~a[i];
put_(b[i], i);
}
/* need to find max count(b[i] & S)
* SOS dp :question:
*
*/
for(int i=0;i<m;++i)
for(int j=0;j<(1<<m);++j)
if(1==((j>>i)&1))
{
int jj=j^(1<<i);
put_(jj, f[j][1]);
put_(jj, f[j][0]);
}
for(int i=0;i<m;++i)
for(int j=0;j<(1<<m);++j)
if(0==((j>>i)&1))
{
int jj=j^(1<<i);
put_(jj, f[j][1]);
put_(jj, f[j][0]);
}
for(int i=0;i<n;++i)
{
int S=0,ans=0;
for(int j=0;j<m;++j)
{
int c=cc[j]-((a[i]>>j)&1);
if (c>n/2)
++ans;
else if(c==n/2)
S|=1<<j;
}
if (i == f[S][0])
ans += count(b[f[S][1]]&S);
else
ans += count(b[f[S][0]]&S);
printf("%d\n", ans);
}
}
Compilation message
council.c: In function 'count':
council.c:10:44: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
10 | int count(int x) { return x ? 1 + count(x&x-1) : 0; }
| ~^~
council.c: In function 'main':
council.c:25:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d%d",&n,&m);
| ^~~~~~~~~~~~~~~~~~~
council.c:29:13: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d",&x),a[i]|=x<<j, cc[j]+=x;
| ^~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9564 KB |
Output is correct |
2 |
Correct |
2 ms |
9564 KB |
Output is correct |
3 |
Correct |
2 ms |
9564 KB |
Output is correct |
4 |
Correct |
2 ms |
9560 KB |
Output is correct |
5 |
Correct |
401 ms |
9812 KB |
Output is correct |
6 |
Correct |
187 ms |
9564 KB |
Output is correct |
7 |
Correct |
247 ms |
9560 KB |
Output is correct |
8 |
Correct |
311 ms |
9756 KB |
Output is correct |
9 |
Correct |
552 ms |
9764 KB |
Output is correct |
10 |
Correct |
254 ms |
9564 KB |
Output is correct |
11 |
Correct |
332 ms |
9560 KB |
Output is correct |
12 |
Correct |
579 ms |
9768 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9560 KB |
Output is correct |
15 |
Correct |
2 ms |
9760 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
2 ms |
9564 KB |
Output is correct |
18 |
Correct |
2 ms |
9564 KB |
Output is correct |
19 |
Correct |
2 ms |
9768 KB |
Output is correct |
20 |
Correct |
2 ms |
9564 KB |
Output is correct |
21 |
Correct |
2 ms |
9560 KB |
Output is correct |
22 |
Correct |
2 ms |
9564 KB |
Output is correct |
23 |
Correct |
2 ms |
9564 KB |
Output is correct |
24 |
Correct |
3 ms |
9564 KB |
Output is correct |
25 |
Correct |
2 ms |
9564 KB |
Output is correct |
26 |
Correct |
2 ms |
9564 KB |
Output is correct |
27 |
Correct |
2 ms |
9776 KB |
Output is correct |
28 |
Correct |
2 ms |
9564 KB |
Output is correct |
29 |
Correct |
2 ms |
9564 KB |
Output is correct |
30 |
Correct |
2 ms |
9560 KB |
Output is correct |
31 |
Correct |
2 ms |
9560 KB |
Output is correct |
32 |
Correct |
2 ms |
9564 KB |
Output is correct |
33 |
Correct |
2 ms |
9708 KB |
Output is correct |
34 |
Correct |
2 ms |
9564 KB |
Output is correct |
35 |
Correct |
2 ms |
9564 KB |
Output is correct |
36 |
Correct |
2 ms |
9564 KB |
Output is correct |
37 |
Correct |
2 ms |
9564 KB |
Output is correct |
38 |
Correct |
2 ms |
9564 KB |
Output is correct |
39 |
Correct |
2 ms |
9564 KB |
Output is correct |
40 |
Correct |
3 ms |
9564 KB |
Output is correct |
41 |
Correct |
5 ms |
9564 KB |
Output is correct |
42 |
Correct |
5 ms |
9560 KB |
Output is correct |
43 |
Correct |
6 ms |
9564 KB |
Output is correct |
44 |
Correct |
5 ms |
9564 KB |
Output is correct |
45 |
Correct |
6 ms |
9560 KB |
Output is correct |
46 |
Correct |
42 ms |
9564 KB |
Output is correct |
47 |
Correct |
28 ms |
9784 KB |
Output is correct |
48 |
Correct |
37 ms |
9776 KB |
Output is correct |
49 |
Correct |
28 ms |
9564 KB |
Output is correct |
50 |
Correct |
47 ms |
9564 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9564 KB |
Output is correct |
2 |
Correct |
2 ms |
9564 KB |
Output is correct |
3 |
Correct |
2 ms |
9564 KB |
Output is correct |
4 |
Correct |
2 ms |
9560 KB |
Output is correct |
5 |
Correct |
401 ms |
9812 KB |
Output is correct |
6 |
Correct |
187 ms |
9564 KB |
Output is correct |
7 |
Correct |
247 ms |
9560 KB |
Output is correct |
8 |
Correct |
311 ms |
9756 KB |
Output is correct |
9 |
Correct |
552 ms |
9764 KB |
Output is correct |
10 |
Correct |
254 ms |
9564 KB |
Output is correct |
11 |
Correct |
332 ms |
9560 KB |
Output is correct |
12 |
Correct |
579 ms |
9768 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9560 KB |
Output is correct |
15 |
Correct |
2 ms |
9760 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
2 ms |
9564 KB |
Output is correct |
18 |
Correct |
2 ms |
9564 KB |
Output is correct |
19 |
Correct |
2 ms |
9768 KB |
Output is correct |
20 |
Correct |
2 ms |
9564 KB |
Output is correct |
21 |
Correct |
2 ms |
9560 KB |
Output is correct |
22 |
Correct |
2 ms |
9564 KB |
Output is correct |
23 |
Correct |
2 ms |
9564 KB |
Output is correct |
24 |
Correct |
3 ms |
9564 KB |
Output is correct |
25 |
Correct |
2 ms |
9564 KB |
Output is correct |
26 |
Correct |
2 ms |
9564 KB |
Output is correct |
27 |
Correct |
2 ms |
9776 KB |
Output is correct |
28 |
Correct |
2 ms |
9564 KB |
Output is correct |
29 |
Correct |
2 ms |
9564 KB |
Output is correct |
30 |
Correct |
2 ms |
9560 KB |
Output is correct |
31 |
Correct |
2 ms |
9560 KB |
Output is correct |
32 |
Correct |
2 ms |
9564 KB |
Output is correct |
33 |
Correct |
2 ms |
9708 KB |
Output is correct |
34 |
Correct |
2 ms |
9564 KB |
Output is correct |
35 |
Correct |
2 ms |
9564 KB |
Output is correct |
36 |
Correct |
2 ms |
9564 KB |
Output is correct |
37 |
Correct |
2 ms |
9564 KB |
Output is correct |
38 |
Correct |
2 ms |
9564 KB |
Output is correct |
39 |
Correct |
2 ms |
9564 KB |
Output is correct |
40 |
Correct |
3 ms |
9564 KB |
Output is correct |
41 |
Correct |
5 ms |
9564 KB |
Output is correct |
42 |
Correct |
5 ms |
9560 KB |
Output is correct |
43 |
Correct |
6 ms |
9564 KB |
Output is correct |
44 |
Correct |
5 ms |
9564 KB |
Output is correct |
45 |
Correct |
6 ms |
9560 KB |
Output is correct |
46 |
Correct |
42 ms |
9564 KB |
Output is correct |
47 |
Correct |
28 ms |
9784 KB |
Output is correct |
48 |
Correct |
37 ms |
9776 KB |
Output is correct |
49 |
Correct |
28 ms |
9564 KB |
Output is correct |
50 |
Correct |
47 ms |
9564 KB |
Output is correct |
51 |
Correct |
193 ms |
9816 KB |
Output is correct |
52 |
Correct |
610 ms |
9880 KB |
Output is correct |
53 |
Correct |
741 ms |
9884 KB |
Output is correct |
54 |
Correct |
735 ms |
9884 KB |
Output is correct |
55 |
Correct |
2 ms |
9560 KB |
Output is correct |
56 |
Correct |
87 ms |
9872 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9772 KB |
Output is correct |
2 |
Correct |
73 ms |
12676 KB |
Output is correct |
3 |
Correct |
64 ms |
12624 KB |
Output is correct |
4 |
Correct |
45 ms |
12112 KB |
Output is correct |
5 |
Correct |
68 ms |
12628 KB |
Output is correct |
6 |
Correct |
50 ms |
12116 KB |
Output is correct |
7 |
Correct |
68 ms |
12624 KB |
Output is correct |
8 |
Correct |
2 ms |
9564 KB |
Output is correct |
9 |
Correct |
2 ms |
9564 KB |
Output is correct |
10 |
Correct |
2 ms |
9564 KB |
Output is correct |
11 |
Correct |
2 ms |
9564 KB |
Output is correct |
12 |
Correct |
2 ms |
9564 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9564 KB |
Output is correct |
15 |
Correct |
2 ms |
9768 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
3 ms |
9564 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9772 KB |
Output is correct |
2 |
Correct |
73 ms |
12676 KB |
Output is correct |
3 |
Correct |
64 ms |
12624 KB |
Output is correct |
4 |
Correct |
45 ms |
12112 KB |
Output is correct |
5 |
Correct |
68 ms |
12628 KB |
Output is correct |
6 |
Correct |
50 ms |
12116 KB |
Output is correct |
7 |
Correct |
68 ms |
12624 KB |
Output is correct |
8 |
Correct |
2 ms |
9564 KB |
Output is correct |
9 |
Correct |
2 ms |
9564 KB |
Output is correct |
10 |
Correct |
2 ms |
9564 KB |
Output is correct |
11 |
Correct |
2 ms |
9564 KB |
Output is correct |
12 |
Correct |
2 ms |
9564 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9564 KB |
Output is correct |
15 |
Correct |
2 ms |
9768 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
3 ms |
9564 KB |
Output is correct |
18 |
Correct |
2 ms |
9564 KB |
Output is correct |
19 |
Correct |
2 ms |
9564 KB |
Output is correct |
20 |
Correct |
224 ms |
17268 KB |
Output is correct |
21 |
Correct |
203 ms |
16716 KB |
Output is correct |
22 |
Correct |
212 ms |
16976 KB |
Output is correct |
23 |
Correct |
209 ms |
17696 KB |
Output is correct |
24 |
Correct |
204 ms |
17200 KB |
Output is correct |
25 |
Correct |
229 ms |
17520 KB |
Output is correct |
26 |
Correct |
240 ms |
17236 KB |
Output is correct |
27 |
Correct |
2 ms |
9560 KB |
Output is correct |
28 |
Correct |
2 ms |
9564 KB |
Output is correct |
29 |
Correct |
2 ms |
9564 KB |
Output is correct |
30 |
Correct |
2 ms |
9564 KB |
Output is correct |
31 |
Correct |
2 ms |
9564 KB |
Output is correct |
32 |
Correct |
2 ms |
9776 KB |
Output is correct |
33 |
Correct |
2 ms |
9560 KB |
Output is correct |
34 |
Correct |
2 ms |
9564 KB |
Output is correct |
35 |
Correct |
2 ms |
9564 KB |
Output is correct |
36 |
Correct |
2 ms |
9564 KB |
Output is correct |
37 |
Correct |
2 ms |
9564 KB |
Output is correct |
38 |
Correct |
2 ms |
9780 KB |
Output is correct |
39 |
Correct |
2 ms |
9564 KB |
Output is correct |
40 |
Correct |
2 ms |
9564 KB |
Output is correct |
41 |
Correct |
2 ms |
9764 KB |
Output is correct |
42 |
Correct |
2 ms |
9564 KB |
Output is correct |
43 |
Correct |
2 ms |
9564 KB |
Output is correct |
44 |
Correct |
2 ms |
9564 KB |
Output is correct |
45 |
Correct |
2 ms |
9564 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9772 KB |
Output is correct |
2 |
Correct |
73 ms |
12676 KB |
Output is correct |
3 |
Correct |
64 ms |
12624 KB |
Output is correct |
4 |
Correct |
45 ms |
12112 KB |
Output is correct |
5 |
Correct |
68 ms |
12628 KB |
Output is correct |
6 |
Correct |
50 ms |
12116 KB |
Output is correct |
7 |
Correct |
68 ms |
12624 KB |
Output is correct |
8 |
Correct |
2 ms |
9564 KB |
Output is correct |
9 |
Correct |
2 ms |
9564 KB |
Output is correct |
10 |
Correct |
2 ms |
9564 KB |
Output is correct |
11 |
Correct |
2 ms |
9564 KB |
Output is correct |
12 |
Correct |
2 ms |
9564 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9564 KB |
Output is correct |
15 |
Correct |
2 ms |
9768 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
3 ms |
9564 KB |
Output is correct |
18 |
Correct |
2 ms |
9564 KB |
Output is correct |
19 |
Correct |
2 ms |
9564 KB |
Output is correct |
20 |
Correct |
224 ms |
17268 KB |
Output is correct |
21 |
Correct |
203 ms |
16716 KB |
Output is correct |
22 |
Correct |
212 ms |
16976 KB |
Output is correct |
23 |
Correct |
209 ms |
17696 KB |
Output is correct |
24 |
Correct |
204 ms |
17200 KB |
Output is correct |
25 |
Correct |
229 ms |
17520 KB |
Output is correct |
26 |
Correct |
240 ms |
17236 KB |
Output is correct |
27 |
Correct |
2 ms |
9560 KB |
Output is correct |
28 |
Correct |
2 ms |
9564 KB |
Output is correct |
29 |
Correct |
2 ms |
9564 KB |
Output is correct |
30 |
Correct |
2 ms |
9564 KB |
Output is correct |
31 |
Correct |
2 ms |
9564 KB |
Output is correct |
32 |
Correct |
2 ms |
9776 KB |
Output is correct |
33 |
Correct |
2 ms |
9560 KB |
Output is correct |
34 |
Correct |
2 ms |
9564 KB |
Output is correct |
35 |
Correct |
2 ms |
9564 KB |
Output is correct |
36 |
Correct |
2 ms |
9564 KB |
Output is correct |
37 |
Correct |
2 ms |
9564 KB |
Output is correct |
38 |
Correct |
2 ms |
9780 KB |
Output is correct |
39 |
Correct |
2 ms |
9564 KB |
Output is correct |
40 |
Correct |
2 ms |
9564 KB |
Output is correct |
41 |
Correct |
2 ms |
9764 KB |
Output is correct |
42 |
Correct |
2 ms |
9564 KB |
Output is correct |
43 |
Correct |
2 ms |
9564 KB |
Output is correct |
44 |
Correct |
2 ms |
9564 KB |
Output is correct |
45 |
Correct |
2 ms |
9564 KB |
Output is correct |
46 |
Correct |
3 ms |
9564 KB |
Output is correct |
47 |
Correct |
314 ms |
19696 KB |
Output is correct |
48 |
Correct |
288 ms |
19032 KB |
Output is correct |
49 |
Correct |
283 ms |
19024 KB |
Output is correct |
50 |
Correct |
263 ms |
19840 KB |
Output is correct |
51 |
Correct |
306 ms |
19592 KB |
Output is correct |
52 |
Correct |
297 ms |
19504 KB |
Output is correct |
53 |
Correct |
330 ms |
20140 KB |
Output is correct |
54 |
Correct |
6 ms |
9560 KB |
Output is correct |
55 |
Correct |
4 ms |
9564 KB |
Output is correct |
56 |
Correct |
6 ms |
9564 KB |
Output is correct |
57 |
Correct |
5 ms |
9564 KB |
Output is correct |
58 |
Correct |
6 ms |
9776 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9772 KB |
Output is correct |
2 |
Correct |
73 ms |
12676 KB |
Output is correct |
3 |
Correct |
64 ms |
12624 KB |
Output is correct |
4 |
Correct |
45 ms |
12112 KB |
Output is correct |
5 |
Correct |
68 ms |
12628 KB |
Output is correct |
6 |
Correct |
50 ms |
12116 KB |
Output is correct |
7 |
Correct |
68 ms |
12624 KB |
Output is correct |
8 |
Correct |
2 ms |
9564 KB |
Output is correct |
9 |
Correct |
2 ms |
9564 KB |
Output is correct |
10 |
Correct |
2 ms |
9564 KB |
Output is correct |
11 |
Correct |
2 ms |
9564 KB |
Output is correct |
12 |
Correct |
2 ms |
9564 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9564 KB |
Output is correct |
15 |
Correct |
2 ms |
9768 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
3 ms |
9564 KB |
Output is correct |
18 |
Correct |
2 ms |
9564 KB |
Output is correct |
19 |
Correct |
2 ms |
9564 KB |
Output is correct |
20 |
Correct |
224 ms |
17268 KB |
Output is correct |
21 |
Correct |
203 ms |
16716 KB |
Output is correct |
22 |
Correct |
212 ms |
16976 KB |
Output is correct |
23 |
Correct |
209 ms |
17696 KB |
Output is correct |
24 |
Correct |
204 ms |
17200 KB |
Output is correct |
25 |
Correct |
229 ms |
17520 KB |
Output is correct |
26 |
Correct |
240 ms |
17236 KB |
Output is correct |
27 |
Correct |
2 ms |
9560 KB |
Output is correct |
28 |
Correct |
2 ms |
9564 KB |
Output is correct |
29 |
Correct |
2 ms |
9564 KB |
Output is correct |
30 |
Correct |
2 ms |
9564 KB |
Output is correct |
31 |
Correct |
2 ms |
9564 KB |
Output is correct |
32 |
Correct |
2 ms |
9776 KB |
Output is correct |
33 |
Correct |
2 ms |
9560 KB |
Output is correct |
34 |
Correct |
2 ms |
9564 KB |
Output is correct |
35 |
Correct |
2 ms |
9564 KB |
Output is correct |
36 |
Correct |
2 ms |
9564 KB |
Output is correct |
37 |
Correct |
2 ms |
9564 KB |
Output is correct |
38 |
Correct |
2 ms |
9780 KB |
Output is correct |
39 |
Correct |
2 ms |
9564 KB |
Output is correct |
40 |
Correct |
2 ms |
9564 KB |
Output is correct |
41 |
Correct |
2 ms |
9764 KB |
Output is correct |
42 |
Correct |
2 ms |
9564 KB |
Output is correct |
43 |
Correct |
2 ms |
9564 KB |
Output is correct |
44 |
Correct |
2 ms |
9564 KB |
Output is correct |
45 |
Correct |
2 ms |
9564 KB |
Output is correct |
46 |
Correct |
3 ms |
9564 KB |
Output is correct |
47 |
Correct |
314 ms |
19696 KB |
Output is correct |
48 |
Correct |
288 ms |
19032 KB |
Output is correct |
49 |
Correct |
283 ms |
19024 KB |
Output is correct |
50 |
Correct |
263 ms |
19840 KB |
Output is correct |
51 |
Correct |
306 ms |
19592 KB |
Output is correct |
52 |
Correct |
297 ms |
19504 KB |
Output is correct |
53 |
Correct |
330 ms |
20140 KB |
Output is correct |
54 |
Correct |
6 ms |
9560 KB |
Output is correct |
55 |
Correct |
4 ms |
9564 KB |
Output is correct |
56 |
Correct |
6 ms |
9564 KB |
Output is correct |
57 |
Correct |
5 ms |
9564 KB |
Output is correct |
58 |
Correct |
6 ms |
9776 KB |
Output is correct |
59 |
Correct |
373 ms |
21048 KB |
Output is correct |
60 |
Correct |
237 ms |
14268 KB |
Output is correct |
61 |
Correct |
270 ms |
14572 KB |
Output is correct |
62 |
Correct |
280 ms |
14672 KB |
Output is correct |
63 |
Correct |
392 ms |
20708 KB |
Output is correct |
64 |
Correct |
443 ms |
21432 KB |
Output is correct |
65 |
Correct |
450 ms |
21432 KB |
Output is correct |
66 |
Correct |
335 ms |
21588 KB |
Output is correct |
67 |
Correct |
408 ms |
21460 KB |
Output is correct |
68 |
Correct |
476 ms |
21708 KB |
Output is correct |
69 |
Correct |
500 ms |
21624 KB |
Output is correct |
70 |
Correct |
41 ms |
9564 KB |
Output is correct |
71 |
Correct |
34 ms |
9820 KB |
Output is correct |
72 |
Correct |
37 ms |
9564 KB |
Output is correct |
73 |
Correct |
28 ms |
9564 KB |
Output is correct |
74 |
Correct |
45 ms |
9564 KB |
Output is correct |
75 |
Correct |
90 ms |
9888 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
9564 KB |
Output is correct |
2 |
Correct |
2 ms |
9564 KB |
Output is correct |
3 |
Correct |
2 ms |
9564 KB |
Output is correct |
4 |
Correct |
2 ms |
9560 KB |
Output is correct |
5 |
Correct |
401 ms |
9812 KB |
Output is correct |
6 |
Correct |
187 ms |
9564 KB |
Output is correct |
7 |
Correct |
247 ms |
9560 KB |
Output is correct |
8 |
Correct |
311 ms |
9756 KB |
Output is correct |
9 |
Correct |
552 ms |
9764 KB |
Output is correct |
10 |
Correct |
254 ms |
9564 KB |
Output is correct |
11 |
Correct |
332 ms |
9560 KB |
Output is correct |
12 |
Correct |
579 ms |
9768 KB |
Output is correct |
13 |
Correct |
2 ms |
9564 KB |
Output is correct |
14 |
Correct |
2 ms |
9560 KB |
Output is correct |
15 |
Correct |
2 ms |
9760 KB |
Output is correct |
16 |
Correct |
2 ms |
9564 KB |
Output is correct |
17 |
Correct |
2 ms |
9564 KB |
Output is correct |
18 |
Correct |
2 ms |
9564 KB |
Output is correct |
19 |
Correct |
2 ms |
9768 KB |
Output is correct |
20 |
Correct |
2 ms |
9564 KB |
Output is correct |
21 |
Correct |
2 ms |
9560 KB |
Output is correct |
22 |
Correct |
2 ms |
9564 KB |
Output is correct |
23 |
Correct |
2 ms |
9564 KB |
Output is correct |
24 |
Correct |
3 ms |
9564 KB |
Output is correct |
25 |
Correct |
2 ms |
9564 KB |
Output is correct |
26 |
Correct |
2 ms |
9564 KB |
Output is correct |
27 |
Correct |
2 ms |
9776 KB |
Output is correct |
28 |
Correct |
2 ms |
9564 KB |
Output is correct |
29 |
Correct |
2 ms |
9564 KB |
Output is correct |
30 |
Correct |
2 ms |
9560 KB |
Output is correct |
31 |
Correct |
2 ms |
9560 KB |
Output is correct |
32 |
Correct |
2 ms |
9564 KB |
Output is correct |
33 |
Correct |
2 ms |
9708 KB |
Output is correct |
34 |
Correct |
2 ms |
9564 KB |
Output is correct |
35 |
Correct |
2 ms |
9564 KB |
Output is correct |
36 |
Correct |
2 ms |
9564 KB |
Output is correct |
37 |
Correct |
2 ms |
9564 KB |
Output is correct |
38 |
Correct |
2 ms |
9564 KB |
Output is correct |
39 |
Correct |
2 ms |
9564 KB |
Output is correct |
40 |
Correct |
3 ms |
9564 KB |
Output is correct |
41 |
Correct |
5 ms |
9564 KB |
Output is correct |
42 |
Correct |
5 ms |
9560 KB |
Output is correct |
43 |
Correct |
6 ms |
9564 KB |
Output is correct |
44 |
Correct |
5 ms |
9564 KB |
Output is correct |
45 |
Correct |
6 ms |
9560 KB |
Output is correct |
46 |
Correct |
42 ms |
9564 KB |
Output is correct |
47 |
Correct |
28 ms |
9784 KB |
Output is correct |
48 |
Correct |
37 ms |
9776 KB |
Output is correct |
49 |
Correct |
28 ms |
9564 KB |
Output is correct |
50 |
Correct |
47 ms |
9564 KB |
Output is correct |
51 |
Correct |
193 ms |
9816 KB |
Output is correct |
52 |
Correct |
610 ms |
9880 KB |
Output is correct |
53 |
Correct |
741 ms |
9884 KB |
Output is correct |
54 |
Correct |
735 ms |
9884 KB |
Output is correct |
55 |
Correct |
2 ms |
9560 KB |
Output is correct |
56 |
Correct |
87 ms |
9872 KB |
Output is correct |
57 |
Correct |
2 ms |
9772 KB |
Output is correct |
58 |
Correct |
73 ms |
12676 KB |
Output is correct |
59 |
Correct |
64 ms |
12624 KB |
Output is correct |
60 |
Correct |
45 ms |
12112 KB |
Output is correct |
61 |
Correct |
68 ms |
12628 KB |
Output is correct |
62 |
Correct |
50 ms |
12116 KB |
Output is correct |
63 |
Correct |
68 ms |
12624 KB |
Output is correct |
64 |
Correct |
2 ms |
9564 KB |
Output is correct |
65 |
Correct |
2 ms |
9564 KB |
Output is correct |
66 |
Correct |
2 ms |
9564 KB |
Output is correct |
67 |
Correct |
2 ms |
9564 KB |
Output is correct |
68 |
Correct |
2 ms |
9564 KB |
Output is correct |
69 |
Correct |
2 ms |
9564 KB |
Output is correct |
70 |
Correct |
2 ms |
9564 KB |
Output is correct |
71 |
Correct |
2 ms |
9768 KB |
Output is correct |
72 |
Correct |
2 ms |
9564 KB |
Output is correct |
73 |
Correct |
3 ms |
9564 KB |
Output is correct |
74 |
Correct |
2 ms |
9564 KB |
Output is correct |
75 |
Correct |
2 ms |
9564 KB |
Output is correct |
76 |
Correct |
224 ms |
17268 KB |
Output is correct |
77 |
Correct |
203 ms |
16716 KB |
Output is correct |
78 |
Correct |
212 ms |
16976 KB |
Output is correct |
79 |
Correct |
209 ms |
17696 KB |
Output is correct |
80 |
Correct |
204 ms |
17200 KB |
Output is correct |
81 |
Correct |
229 ms |
17520 KB |
Output is correct |
82 |
Correct |
240 ms |
17236 KB |
Output is correct |
83 |
Correct |
2 ms |
9560 KB |
Output is correct |
84 |
Correct |
2 ms |
9564 KB |
Output is correct |
85 |
Correct |
2 ms |
9564 KB |
Output is correct |
86 |
Correct |
2 ms |
9564 KB |
Output is correct |
87 |
Correct |
2 ms |
9564 KB |
Output is correct |
88 |
Correct |
2 ms |
9776 KB |
Output is correct |
89 |
Correct |
2 ms |
9560 KB |
Output is correct |
90 |
Correct |
2 ms |
9564 KB |
Output is correct |
91 |
Correct |
2 ms |
9564 KB |
Output is correct |
92 |
Correct |
2 ms |
9564 KB |
Output is correct |
93 |
Correct |
2 ms |
9564 KB |
Output is correct |
94 |
Correct |
2 ms |
9780 KB |
Output is correct |
95 |
Correct |
2 ms |
9564 KB |
Output is correct |
96 |
Correct |
2 ms |
9564 KB |
Output is correct |
97 |
Correct |
2 ms |
9764 KB |
Output is correct |
98 |
Correct |
2 ms |
9564 KB |
Output is correct |
99 |
Correct |
2 ms |
9564 KB |
Output is correct |
100 |
Correct |
2 ms |
9564 KB |
Output is correct |
101 |
Correct |
2 ms |
9564 KB |
Output is correct |
102 |
Correct |
3 ms |
9564 KB |
Output is correct |
103 |
Correct |
314 ms |
19696 KB |
Output is correct |
104 |
Correct |
288 ms |
19032 KB |
Output is correct |
105 |
Correct |
283 ms |
19024 KB |
Output is correct |
106 |
Correct |
263 ms |
19840 KB |
Output is correct |
107 |
Correct |
306 ms |
19592 KB |
Output is correct |
108 |
Correct |
297 ms |
19504 KB |
Output is correct |
109 |
Correct |
330 ms |
20140 KB |
Output is correct |
110 |
Correct |
6 ms |
9560 KB |
Output is correct |
111 |
Correct |
4 ms |
9564 KB |
Output is correct |
112 |
Correct |
6 ms |
9564 KB |
Output is correct |
113 |
Correct |
5 ms |
9564 KB |
Output is correct |
114 |
Correct |
6 ms |
9776 KB |
Output is correct |
115 |
Correct |
373 ms |
21048 KB |
Output is correct |
116 |
Correct |
237 ms |
14268 KB |
Output is correct |
117 |
Correct |
270 ms |
14572 KB |
Output is correct |
118 |
Correct |
280 ms |
14672 KB |
Output is correct |
119 |
Correct |
392 ms |
20708 KB |
Output is correct |
120 |
Correct |
443 ms |
21432 KB |
Output is correct |
121 |
Correct |
450 ms |
21432 KB |
Output is correct |
122 |
Correct |
335 ms |
21588 KB |
Output is correct |
123 |
Correct |
408 ms |
21460 KB |
Output is correct |
124 |
Correct |
476 ms |
21708 KB |
Output is correct |
125 |
Correct |
500 ms |
21624 KB |
Output is correct |
126 |
Correct |
41 ms |
9564 KB |
Output is correct |
127 |
Correct |
34 ms |
9820 KB |
Output is correct |
128 |
Correct |
37 ms |
9564 KB |
Output is correct |
129 |
Correct |
28 ms |
9564 KB |
Output is correct |
130 |
Correct |
45 ms |
9564 KB |
Output is correct |
131 |
Correct |
90 ms |
9888 KB |
Output is correct |
132 |
Correct |
1433 ms |
23592 KB |
Output is correct |
133 |
Correct |
1400 ms |
23188 KB |
Output is correct |
134 |
Correct |
1472 ms |
23696 KB |
Output is correct |
135 |
Correct |
1219 ms |
23436 KB |
Output is correct |
136 |
Correct |
1249 ms |
23492 KB |
Output is correct |
137 |
Correct |
811 ms |
22632 KB |
Output is correct |
138 |
Correct |
826 ms |
22856 KB |
Output is correct |
139 |
Correct |
575 ms |
23468 KB |
Output is correct |
140 |
Correct |
961 ms |
23180 KB |
Output is correct |
141 |
Correct |
1573 ms |
23048 KB |
Output is correct |
142 |
Correct |
1619 ms |
23432 KB |
Output is correct |