Result

AC

Code [DL]

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

stdin

00100001
00010101
00110101
00010000
01000010
11010010
11001011
00001000
11101110
01011011
00000011
01110110
10011001
00000001
00001111
11100111
11100111
01000000
11111101
10010010
11111100
10101011
01111111
00001010
11111010
01100001
11100000
01011011
00110010
01111000
10001000
10110101
00010011
01101001
00000010
10111110
00000000
10111001
01100100
10101100
11110001
00000110
00101101
00100100
11001010
01010111
01001110
00011100
00110111
11110011

stdout

01001100011011111010010100010110010110000111001110

stderr

strace