Result

AC

Code [DL]

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

stdin

11011000
00110111
11000101
00001111
00001110
10110011
00011100
00010101
00011001
10011001
00000011
10001001
11010010
11100111
11010110
10101011
11100110
01000011
10011000
01000110
11001001
00100100
01001110
00000001
01000010
10111110
01011011
01010000
10111101
01101001
01010011
00000110
00011000
00100110
11101100
01011101
00011100
10111010
00001010
01111000
00000000
11111101
11111101
10101101
00101101
11010101
10001000
00111110
00101011
11110001

stdout

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

stderr

strace