以下是引用Dinaxie在2006-8-30 19:55:00的发言:a certain library assesses fines for overdue books at follows. One the fisrt day that a book is overdue, the total fine is 0.1$. For each additional day the book is overdue, the total fine is either increased by 0.3$ or doubled, whichever results in the lesser amount. What is the total fine for a book on the fourth day it is overdue. 0.6 0.7 0.8 0.9 1 mine:0.9 ans:0.7 why? 我的答案是0.8雅, 超期的天数: 1 2 3 4 方法一double) 0.1 0.2 0.4 0.8 方法二0.1+(n-1)*0.3) 0.1 0.4 0.7 1.0 有谁可以帮忙看看嘛? |