Code Festival C Div and Add by kimiyuki

#!ruby -n
a=[]
100.times{|i|a<<i-i/10*9+(1..80).map{|j|i%j<1&&a[j]||0}.max}
a<<19
p a[eval$_]

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

download

return to the top page