Minimum Spanning Tree by ksk

$_=[p,"#{[*$<]}
".sort_by{|_|_[4,4].hex}]*"F "
_=" a "
_+="|#$2"while$_[~/(?=.*(#{_})).*(?!#{_})( \S+ )/||print]=?T

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

download

return top