Compound interest by m_pixy

a=gets.split(":")\x0d
p n=a[1].to_i\x0d
(a[0].to_i-1).times{p n+=n*a[2].to_i/100}

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

download

return top