Result

AC

Code [DL]

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

stdin

00000110
00101101
11101100
10010101
10111101
01000101
11001111
01111101
11100100
01000110
00000011
01001010
11010010
01011011
00010001
00000011
10011000
10110010
01111001
01110100
01111000
10011001
00001111
00000000
00011100
10101011
00101010
11111101
10111110
10001000
10100101
01101100
11100010
00010111
00010101
01000010
01001110
01000011
01001011
00110111
01101000
00001010
00000001
00010000
11100111
11110111
01101001
00110111
11000001
00100100

stdout

11000000001011010000111111011100001110010110101101

stderr

strace