Result

AC

Code [DL]

module c;integer c,d,s;initial begin s=1<<31;repeat(50)begin d=0;c=48;repeat(9)begin d=d*2+c-48;c=$fgetc(s);end for(c=1;d>0;c=c+1)d=d-c;$write("%d ",~|d);end end endmodule

stdin

00001010
10001000
01010101
11110011
01011011
01010011
11010001
00000101
00100011
00011100
00000111
01100010
01000010
01000100
00000110
00001000
10111110
00010101
00100100
00110111
01001010
00011111
01101101
11010010
01101001
11111101
01100100
10100010
00101101
10100011
00000000
00101010
00100100
01000010
11100111
11101101
10011001
11111110
10110000
00111010
10001100
00001111
00000011
10101011
01010110
00111000
01111000
00010110
01001110
00000001

stdout

1 1 0 0 1 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 1 1 0 0 1 0 1 0 1 1 1 0 1 0 0 0 0 1 1 1 0 0 1 0 1 1 

stderr

strace