Result

AC

Code [DL]

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

stdin

00001010
10101011
01000010
01111000
00011100
01011011
00000110
00110111
00111011
10101000
11111101
00110000
10000010
10001000
01000010
01001110
11011111
00100100
11010010
01010011
10110110
01011100
00010101
01011111
10011001
11100101
10110000
00100110
00100010
00011000
00000001
01111001
01101001
10001001
00000111
11101100
10100111
00100101
01001111
11100111
00101101
01010100
01001100
00001000
00000011
00001111
10001000
10111110
11000001
00000000

stdout

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

stderr

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

strace