Result

WA

Code [DL]

$
.  v{m}2{a}s}3{<va}2{]<
>0{>[{?{5}r    @>}}s{ @1%$
.           #%9<      >0%$
$

stdin

11111101
11100011
00001010
00100100
00000001
11100111
10011001
10000010
11100111
00110001
01111000
00000110
10101011
00110110
10011111
10111010
10011100
01110100
10001001
01000010
01111100
00001111
00011100
11010010
10111110
01111101
00000000
00110111
01001101
00000011
01010111
10110010
10001000
11000010
11000100
01001110
10100101
10100010
01011011
00101101
10010111
00000110
00010101
01101001
11110110
00010100
11001100
10110111
01000011
01101110

stdout

stderr

strace