http://e-tutor.itsa.org.tw/e-Tutor/mod/programming/view.php?a=15915
這題必須要用Python才能AC用其他語言都不能過,我也不知道原因測試了很久,這題是要你算出複利所以每次都要乘上1+月利率
raw_input() 是標準輸入(存入字串變數)
n1=int(n)
r1=float(r) 這兩個是轉換資料型別並存入新變數
r= raw_input()
n= raw_input()
p= raw_input()
n1=int(n)
r1=float(r)
p1=int(p)
tot=float(0.0)
for x in range(n1):
tot+=p1
tot*=(1.0+r1)
print(int(tot))
"""題目:ITSA Basic 題目24. 計算複利
作者:1010
時間:西元 2016 年 7 月 """