Count diamonds level 3 by flagitious

$<.map{gets'-';p scan(/\*(?=.{39}\* \*)/m).size}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top