100 atcoder#ABC165B. [ABC165B] 1%
[ABC165B] 1%
Score : points
Problem Statement
Takahashi has a deposit of yen (the currency of Japan) in AtCoder Bank.
The bank pays an annual interest rate of % compounded annually. (A fraction of less than one yen is discarded.)
Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach yen or above for the first time?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of years it takes for Takahashi's balance to reach yen or above for the first time.
103
3
- The balance after one year is yen.
- The balance after two years is yen.
- The balance after three years is yen.
Thus, it takes three years for the balance to reach yen or above.
1000000000000000000
3760
1333333333
1706