#!ruby -pla n,*f=$F.map &:to_i *_=[] $_=[_[n.times{|i|f.map{|d|(_[i+d]||0)[n.size]&&_[i+d]=[d]+n}if n=_[i]}]||"-"]*" "
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page