Compound interest by amapyon

v=(l=gets.split(":"))[1].to_i;l[0].to_i.times{p v;v+=(v*l[2].to_f/100).to_i}

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

download

return top