Result

AC

Code [DL]

$<.map{|q|p (1+(1+8*q.to_i(2))**0.5)%2==0?1:0}

stdin

00000001
11100111
00011100
00000011
11001010
11000011
00001011
00001010
01001110
01011011
01000010
00000110
01111000
10011100
01111110
00100010
00011100
00011100
00110111
11111101
01001001
10011010
10011001
11010010
01101001
01000001
01110001
00001110
00000000
10001000
11000111
10010101
10101011
11011011
01100000
11111111
01110101
00001111
00100100
01011001
11001100
11010001
01010110
10100011
00010101
10000000
11110110
10111110
01110011
00101101

stdout

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

stderr

strace