Result

WA

Code [DL]

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

stdin

10101000
01011011
00000000
11110000
00010101
10011001
00011001
11111101
00001111
01000010
01111000
11010010
10110111
10111010
10001010
10010101
01111010
10110000
10010001
01011001
01110011
00000011
10000111
11101101
01001110
10111110
00110111
00001010
10101101
10101011
01000100
01101101
01101001
00100100
11100111
00011100
01100001
01001110
10001000
10001111
10001000
00110000
10111100
11111011
00000001
00000110
00101101
10110100
00000111
01100010

stdout

Syntax error in /volume/CODE:4: '+=' before definition of 'i'

b-=i+=1
      ^

stderr

strace