Result

WA

Code [DL]

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

stdin

11011011
11111101
00011100
01011011
10010100
00000000
00001010
10100000
10100111
00100100
11101111
10111100
10101011
00001010
11110000
00010101
10001111
10101101
11110001
01000010
00111100
01110010
11100001
00000110
10011001
01001101
11010010
11110110
01101001
00101101
10011011
01001110
01110000
10001000
10101111
01110110
00000001
11011101
00001111
10111110
10001100
00110111
00000100
01111000
10101010
11011010
11000011
00000011
11100111
00100100

stdout

Syntax error in /volume/CODE:7: unexpected token: 1

p !b?1:0end
     ^

stderr

strace