Bank Loan 1
Xem dạng PDF
Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Mr. Huy wants to buy a new house worth X VND, so he decided to take out a bank loan with an interest rate of r% per year. He calculates that he could pay a maximum of Y VND per month (includes principal and interest). How long would he pay off his loan?
Input
The only line contains 2 integers X, Y and a real number r (0 < X, Y < 10^12, 0 < r ≤ 100).
Output
A number indicating which month he pays off his loan.
Example
Input
1000000000 100000000 6
Output
11
Input
500000000 100000000 6.2
Output
6
Bình luận