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 = 1;
		endif
	endfor
	if (t)
		disp("1")
	else
		disp("0")
	endif
endfor

stdin

01011101
10001100
00001010
01111000
00011100
01100011
00101101
10111011
11010001
10100001
00100100
01101101
01000010
00000011
10110000
00000000
01001110
00110111
00010011
01111010
00100011
01010110
00000110
01110010
11111000
00000001
11010010
00111000
10001000
01001010
00000001
00010101
01101100
01101001
10110010
11100111
10101011
00001111
11111111
11010010
10111101
11010011
11111101
11100010
01110111
10100111
10011001
10111110
01011011
10011110

stdout

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

stderr

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

strace