Result

WA

Code [DL]

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

stdin

01011101
00011111
01000010
11100111
01111000
00001100
00001111
00011100
00001010
11111101
00011110
00000110
00000001
00001000
01001110
01110001
11111111
10000011
11110110
00010101
00010110
00000011
00010001
11110001
01010101
11111010
01100001
10111110
00000000
10101001
01110111
11000011
00101101
01101001
00111100
10011001
01000010
10001000
00100100
10101011
00110111
01111100
01000101
01011011
01111111
01001000
10001010
00000001
11010010
10001101

stdout

Syntax error in /volume/CODE:6: expecting identifier 'end', not 'EOF'

p b==0 ?1:0end
              ^

stderr

strace