Result

AC

Code [DL]

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

stdin

11010010
00100000
10111110
11000011
00001001
11001100
01011011
00010101
00000011
11100111
11111101
01111000
10001000
01011001
01111100
01001011
10101010
10101011
00101101
00011000
00011011
00001010
10001011
00011010
00001111
01100011
01001110
11001010
00001010
00100100
00000001
00000110
10011111
01000010
00100011
10011000
01100111
01101100
01011011
00110111
01100101
00000000
10010100
10010111
00011100
01011111
00010001
01101001
10011001
01000101

stdout

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

stderr

strace