Result [link]

AC

Code [DL]

>10/)`99 0{.@2*)'1=_?1_!0);+)}\;

stdin

1100110010111010011010000100100011010111001111101100000111110111011110111010111000001101010011101110

stdout

1013764714812680867710836462830

stderr

strace