Result

WA

Code [DL]

while a=gets()
b=a.to_i 2
i=0
while b>0
b-=i+=1end
p b==0?1:0end

stdin

01000010
10111101
00111001
00101101
00001111
11111101
10001000
10001000
00000000
00101011
00010101
00001010
00100100
10011011
10110011
10100110
01101001
01001101
11101100
00111000
00100100
01001110
11100111
00011100
01011010
10111000
10011001
00000110
01101110
10100010
01001111
10011101
11100100
11101110
00000011
10010001
10111110
11111001
01011011
11010010
11001001
11000011
10110101
10111111
00110111
00000001
10101011
10101010
01111000
11110111

stdout

Syntax error in /volume/CODE:5: unexpected token: nd

b-=i+=1end
        ^

stderr

strace