Compound interest by date (kaigi)

t,i,p=gets.split(/:/).map(&:to_i)\x0d
1.upto(t){p i;i+=i*p/?d}

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

download

return top