Result

AC

Code [DL]

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

stdin

00011100
11010010
00101000
00000110
11001011
00001100
11100010
01000010
10110100
00000001
10101011
00100100
10011001
10001010
01101001
10000111
11101010
00101101
10001000
10100011
00010101
01011100
10000100
00000000
01011011
01111101
11110010
00001111
00000011
11111101
11001001
11001010
11100111
10111110
11010101
11011010
00110100
10010011
01001110
01101101
00101110
00001010
00011010
11100011
10110001
10001000
00110111
10100101
01111000
10001000

stdout

11010001011110100110100110011100110000100100011011

stderr

strace