Compound interest by m-kawato (kaigi)

a=gets.split(':').map{|i|i.to_i}\x0d
s=a[1]\x0d
a[0].times{puts s;s=(s*(100.0+a[2])/100).to_i}

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

download

return top