Result

WA

Code [DL]

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

stdin

01011011
10011111
11111101
10110010
00110011
01001110
00010101
10011011
00101101
00011100
11110111
11011101
10101011
10111000
00010000
00110101
11010010
00100100
00010101
01111000
10110101
01110101
01010111
00000001
10110001
11001001
00110111
00010011
01011100
00110001
11110011
11100111
11000110
01010001
00001011
00011101
01000111
01100101
01100011
10111110
00000011
00001010
10001000
01101001
10011001
00001111
00000110
00000000
01000010
00000011

stdout

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

stderr

strace