Result

AC

Code [DL]

:$<;
(.+?)\n(.*);: ,$($1) $2;
.*,:"1"
(.*),\1(.*):a$1,$2
1:"a"
.:
(\d+)(.):$1 $1 $2
.*:"0"

stdin

01101001
00011010
11111101
00010101
00110011
00100100
11010010
10001000
00001111
00111101
11100110
00000000
01000010
11100011
10100011
00001111
11100111
00000011
00011100
11011111
01111000
00101101
10110011
01111101
10111010
00110001
00000110
01011011
10101001
11101100
01111010
10011001
10001001
10101011
10111110
00001010
01100011
01000101
01001110
00111001
00010101
00001110
11101101
11101001
11000100
01001101
11011000
00110111
10100010
00000001

stdout

10110111100110011110110000110001011100101000000101

stderr

strace