Result

WA

Code [DL]

module c;reg 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

00010101
10110100
11101100
00000110
00010101
01001110
01000011
00010101
00000001
00000011
11000001
00000000
01101100
10010100
00110100
10001000
11100111
11110101
00100111
01000111
01101001
00001101
00100100
01100100
01001100
00101101
01100011
00011100
01100001
00001111
11000100
11010100
11101011
11101101
11010010
11000111
10011001
10111110
01011011
01000010
00100011
01000000
00110111
01111000
00001010
11111101
11111011
10011101
10101011
10110110

stdout

11111111111111111111111111111111111111111111111111

stderr

strace