Result

AC

Code [DL]

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

stdin

10010010
01111000
00000001
11110000
00100100
00001111
00111011
01011011
11000001
00010101
00000110
01101001
00011011
11011010
01001111
10001110
01000010
10011001
10101011
00011100
00011001
11111101
01101011
11010010
00111110
10100100
10011010
00000001
01011000
00101110
00001010
10111110
11100111
01010010
11010010
00101101
10011000
00110111
10001000
10111001
11111000
01001110
01000100
00001110
00000011
10100000
10001011
00000000
01111111
11110111

stdout

01101101011100001111010100010011101101100100100100

stderr

strace