Result

WA

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
10101111
01110111
00010101
11110110
01010000
01001110
01010001
00001111
10101000
10101011
00000110
11011100
01011011
01010101
00101110
11110111
01110110
10110000
11101010
00101101
11111001
10011001
11100000
11010010
00000010
11110101
01000010
00000000
01101001
01111111
00011100
00100100
01111000
00000011
01010100
11111101
01000000
00110111
11011000
10111110
01011011
10000000
10110100
00000011
00011010
11100011
00000001
11100111

stdout

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

stderr

strace