Result

AC

Code [DL]

for i=0:49
	Ninput=input('');
	A=[00000000 00000001 00000011 00000110 00001010 00001111 00010101 00011100 00100100 00101101 00110111 01000010 01001110 01011011 01101001 01111000 10001000 10011001 10101011 10111110 11010010 11100111 11111101];
	t=0;
	for j=1:23
		if Ninput==A(j)
			t = t + 1;
		endif
	endfor
	if (t > 0)
		disp("1")
	else
		disp("0")
	endif
endfor

stdin

10111110
00000001
00000110
01110011
01000111
11000100
10110001
10001101
00001010
01000010
11111101
00000011
00001001
00010101
10011001
11100111
11001101
00001111
00110111
10101101
01001000
00000000
01101001
01111011
11010010
10100100
01100111
11110010
00101101
10001100
10001000
11011100
11110001
10001000
01111000
10000010
01001110
00000101
10111101
00011100
00100100
10101011
01110100
00000010
01111111
01011011
00010001
01110001
00100100
10111111

stdout

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

stderr

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

strace