BWT by niha

#!ruby -n
b=chomp.gsub(/./,'\\\'\`\&
').sort;puts"#{b.index$_+$/} #{b.to_s.scan /.$/}"

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

download

return top