Result

AC

Code [DL]

all:$<
(.+)\s(.+):$1 $2
0+(.|11(0|11|100|0111)?|10(101?|0100|1101))|010*1(0(1001)?|1(10|011|1000))|101*0(01000|11001|1011|)?|11+0(10010|0111|1):"1"
.+:"0"

stdin

00011100
11111101
11000111
00101101
00100100
00000110
11110010
00010101
01010101
11100100
01101000
11100111
00110100
01000010
10011001
00000000
01101001
10111111
01001010
10001000
01001110
00000011
11010000
10110001
01011110
10000111
00001010
00001111
11010010
11011001
01000100
00101001
01001111
01111000
00000001
01010100
10111010
11111010
01011011
00000110
10111110
11010110
11111011
00011100
00100010
00111111
10011011
00110111
11101110
10101011

stdout

11011101000101111001110000111000011000111001000101

stderr

strace