Result

WA

Code [DL]

while a = gets()
c = a.to_i
b = 0
i = 0
while i<8
r = c % 10
c /=  10
b+=r*(2**i)
i++
end
i = 1
while b>0
b-= i
i+=1
end
if b==0
puts(1)
else
puts(0)
end
end

stdin

11100110
01101001
01111010
00010101
10111110
10101110
10001000
10110000
00101101
01111000
01001000
10101011
01000010
01110010
00000110
11001000
00000010
11010010
10011001
00000011
00001010
00000011
00011100
00001111
10110111
11011011
01001110
10000101
00101001
10111001
11111101
11010010
00000000
01111110
00100100
10001110
01011011
01011010
00110111
11100111
11000110
00111011
00010110
01000101
11011110
10001101
00000001
11011001
11101000
10011000

stdout

Syntax error in /volume/CODE:9: postfix increment is not supported, use `exp += 1`

i++
  ^

stderr

strace