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

00000110
10001000
00100100
10101011
11001011
11101010
10011001
11100010
00000001
11011110
00111001
01010001
00010001
01011001
01001011
10101111
01001110
01101001
10100010
01111000
11100111
01000010
00111010
11010010
00011100
00000001
01011011
00101101
00101100
01010111
11100101
10111110
00010101
11111000
00000011
10000110
00000000
01111101
00100101
11010111
01010110
00011111
11111101
10111101
00001010
10101011
00110111
00001111
10001001
01000000

stdout

11110010100000001101110111110001101010000010111100

stderr

strace