Result

AC

Code [DL]

using System;

public class Test
{
	public static void Main()
	{	
		String[] hoge = {
			"00000000",
			"00000001",
			"00000011",
			"00000110",
			"00001010",
			"00001111",
			"00010101",
			"00011100",
			"00100100",
			"00101101",
			"00110111",
			"01000010",
			"01001110",
			"01011011",
			"01101001",
			"01111000",
			"10001000",
			"10011001",
			"10101011",
			"10111110",
			"11010010",
			"11100111",
			"11111101"
		};
		for (int i = 0; i < 50; i++) {
			String s = Console.ReadLine();
			int t = 0;
			for (int j = 0; j < 23; j++) {
				if (s == hoge[j]) t++;
			}
			if (t > 0) {
				Console.WriteLine("1");
			} else {
				Console.WriteLine("0");
			}
		}
	}
}

stdin

00110111
11100111
00000011
00101000
01010101
01011100
01010000
00100111
00110111
00000001
01111000
01010010
10000111
00110100
00000111
01011011
11110010
00011100
10111110
11111000
00000011
10001101
01000010
01110011
00000000
00100100
01101111
01001110
10011001
00100110
10001000
00011011
00001111
00010101
01101001
11111101
10101011
11101111
11100110
10010000
01111100
00101101
10000110
11010010
01101010
10000010
00001010
00111100
10101110
00000110

stdout

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

stderr

strace