Result

WA

Code [DL]

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

stdin

00000110
00100001
10111110
00110111
00001111
01011101
10010110
10100001
01101101
10001000
01000000
00010000
10011001
10110111
00011101
01001110
01001100
11100111
00001011
00010101
00101111
11111101
10010001
01111000
11101110
01000010
11011111
00000011
01110010
10000010
00101101
01110001
01010111
00000000
10101011
11010100
01101001
01111010
01100111
10010011
11010010
00011100
00000011
11011001
01011011
00001010
00001000
00000000
00100100
00000001

stdout

stderr

strace