Result

AC

Duration

897ms

Code [DL]

$><<gets.gsub(/1(?!....1.{6}1....1)/,?0)

stdin

11111011111110110010011111001010001010110110110111

stdout

00000010000000000000000000000000000000000000000000

stderr

strace