a=*"0".."9"\x0d gets.split(//).map{|d|$><<a.index(d);a.delete d;a.unshift d}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page