Code Festival C Div and Add by mitchs

p *$<.map(&f=->n{(1...n=n.to_i).map{|d|n.to_s.sum%48+f[d-n%d*n]}.max||1})

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

download

return to the top page