Result

WA

Code [DL]

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

stdin

00000011
00000000
11010010
01101000
01001010
00100011
10011000
00101100
00011100
10010001
00010101
01011011
10001000
01111000
00010101
10101011
10011011
10010100
00001111
00100000
00000001
10000111
10001001
01111001
01100011
01000000
10011001
01001110
11100111
01101001
00100100
00001010
00110111
11101110
00101101
01111111
01000010
00101111
11001111
01010010
10111110
01110001
01111100
01011011
01101101
00000110
11111101
10110000
10011110
11011001

stdout

0
0
0
1
1
1
1
1
0
1
0
0
0
0
0
0
1
1
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
1
0
1
0
1
1
1
0
1
1
0
1
0
0
1
1
1

stderr

strace