#!ruby -na h={} t=proc{|x,y,z|h[[x,y,z]]||=x>y ?t[t[x-5,y,z],t[y-5,z,x],t[z-5,x,y]]:z} p t[*$F.map(&:to_i)]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page