BWT by kurimura

#!ruby -n
a=scan /./
b=a.map{[]+a<<=a.shift}.sort
puts"#{b.index a} #{b.transpose.pop}"

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

download

return to the top page