Result

AC

Code [DL]

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

stdin

11100111
00010011
11010100
11101110
01111000
01100100
01110010
00101101
11111111
00001010
01000001
10110011
11111101
00001101
00010101
10011001
00100100
00000000
00000011
11110110
00110111
10101010
00111011
10000111
00001111
11110011
00000100
10101011
01001111
10001101
01001110
11111001
00001111
10001000
00000001
01111111
01011011
00110001
00000110
01000010
11011100
11010010
01101001
00011100
11111101
10111110
00010100
10110100
10111101
01111110

stdout

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

stderr

strace