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",~|d);end end endmodule

stdin

01101001
00101000
00000110
01011011
01000010
00001010
10010100
11011000
01011010
00001111
10101000
00111101
00011011
00010011
00000011
11111101
11100111
00001010
01001110
01011000
11010110
10100001
10011001
00000000
00101101
01011110
10101011
00100100
01111000
01000101
00100000
11011001
10111110
11010010
10001110
00010101
00011010
00011100
10011101
00110111
10000100
00011001
10001000
00111000
00000110
00110100
00111010
01010000
00000001
01101000

stdout

10111100010000111110001110111000110101010010100010

stderr

strace