Result

WA

Code [DL]

a=255.times{|i|i.times.inject(&:+)}
50.times{puts gets.split.map{|x|a.index(x.to_i(2))?1:0}}

stdin

11010010
00001011
10101011
00111111
00001110
11100010
00100100
00010101
01111000
11100111
10001000
11111110
00111101
11111101
01001110
10001110
00000001
10111110
10101101
01011011
00000100
11110001
00001111
00101101
00110111
01001101
00000011
00011100
01000100
11110011
01101001
01101001
00000110
11111010
10111011
10011110
11001010
00100001
00111110
10110011
10011001
00101010
00000000
00011100
11110010
01110001
01000101
00001010
01000010
10001111

stdout

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

stderr

strace