Result

AC

Code [DL]

module c;integer c,d;initial begin while($fscanf(1<<31,"%b",d))begin for(c=1;d>0;c=c+1)d=d-c;$write(~|d);end end endmodule

stdin

11001100
00010101
11001000
10100000
10100011
10011001
01001110
00100100
01110001
11011101
00000011
10001000
01010101
00010010
00001010
00000001
01010110
10101101
00011100
11101010
10111110
10101011
11111101
11100111
01111000
10001011
00110111
11110101
10101110
00100100
10101111
00000110
11110000
00110110
10101011
01000010
01011011
11110111
01010000
10000100
00101101
01101001
01101101
00001111
00000000
11100000
10110101
11010010
00110000
00100011

stdout

01000111001100110010111110100101001110001101100100

stderr

strace