Result

WA

Code [DL]

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

stdin

10111100
10001000
01100010
11111101
01101001
11101101
10111000
11101100
00001010
10000010
00010101
00011100
11001010
01101110
11100111
01000010
00011101
01100000
11110010
00000110
10001111
11101111
00011100
11110000
00110111
10010001
11010010
10011001
00001011
01000110
00001111
00111101
00000001
10000001
10101011
00000001
00100100
01111000
01001101
01011110
10111110
00111111
00000011
01001110
00000000
00101101
01000001
01011011
01101010
00101111

stdout

376

stderr

strace