Result

AC

Code [DL]

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

stdin

10101011
01111000
00010101
10011001
11000110
01110011
00100100
01010001
11010010
01001110
00110111
11111100
11110010
01000000
11001010
10001011
00101101
11111101
00111100
00010001
00110010
11111111
00000000
00000011
11100101
10010001
10010011
11010001
10001010
01001101
00001111
10001000
01011011
10100100
00011100
01101001
11110000
00100010
00001010
11100111
10111001
00000001
10111110
00111001
00000110
10111110
01000010
10001110
01001110
01011111

stdout

11110010111000001100001100000011101100110110111010

stderr

strace