Result

AC

Code [DL]

for i=0:49 g=base2dec(fgetl(stdin),2);disp(mod((8*g+1)^0.5,2)==1) endfor

stdin

11010010
00110110
10100011
01111000
01000100
00001111
00000001
00001111
01001110
00000000
00010101
11100111
00100100
00101101
01101001
10000100
00100001
11111010
00011100
00001000
00000011
00111011
00010001
11000110
00001010
00110111
11111101
01010111
00001101
01011011
00100010
10101011
01000010
01101110
01101101
01000101
00100011
10001000
01100001
11111001
01001000
00000110
01101100
11001011
10110100
00001011
01000010
10101010
10011001
10111110

stdout

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

stderr

octave: X11 DISPLAY environment variable not set
octave: disabling GUI features

strace