Result

AC

Code [DL]

s$<.m{|q|(1+8*q.toi(2))**0.5%2==1?1:0}

stdin

01100100
11111101
00010101
00000011
01011011
00000110
01000111
11000001
11011101
11111011
00000001
01101001
00001010
10011001
11101000
10101011
10100000
10111110
00001111
00100010
00110111
00001111
10000110
01010000
00101111
01001110
01001111
00100100
00111000
10101011
01111000
00101101
11001111
10010001
00000100
00010000
00000000
11110100
11100111
10001000
10111010
10011110
01000010
00011100
01101011
11010010
10000011
01110100
10010110
11100110

stdout

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

stderr

strace