by@akouryy1
AC
897ms
$><<gets.gsub(/1(?!....1.{6}1....1)/,?0)
11111011111110110010011111001010001010110110110111
00000010000000000000000000000000000000000000000000