Result

WA

Code [DL]

module c;integer c,d,s;initial begin s=1<<31;repeat(50)begin d=0;c=48;while(c!=10)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

01001110
11100111
11101111
01011011
10001000
10101001
00101101
01101001
11010011
10000110
01100001
00101000
10010001
01111000
00100100
01011110
00001010
00000001
00000100
10011001
10110010
00011100
01010001
10010101
00101010
11001111
00000000
00110110
01000010
10011011
00110111
00001100
10011001
10111101
11011000
11010010
10111110
11100111
01010010
10110111
00000110
01010000
10101011
10001010
00000011
11111101
10010100
10000111
00010101
00001111

stdout

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

stderr

strace