Result

WA

Code [DL]

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

stdin

11101000
10011001
00101101
10101011
01101100
10000111
00110111
11100111
00000011
10000000
01001110
10011001
00000110
01001110
11000110
00010110
11110011
11101110
00101001
00100010
00000000
00001111
01001010
11000111
11110010
00001010
00000001
01011011
01101000
10001000
00010100
10100100
11111101
00011100
11111000
11010011
00010101
01000010
10010111
01101001
10111110
10011101
01101010
01111000
10010000
00100110
11010010
00111111
00100100
10110011

stdout

0

stderr

strace