Question
Population Doubling
A city currently has a population of
Input
A single line containing two integers KaTeX can only parse string typed expression and KaTeX can only parse string typed expression.
Output
A single integer — the minimum number of years.
Example
Example 1:
Input
Starting from 1, doubling 10 times gives 1024 ≥ 1000.
Example 2:
Input
Population already meets the target, so 0 years needed.
Input
1 1000Output10ExplanationStarting from 1, doubling 10 times gives 1024 ≥ 1000.
Example 2:
Input
5 5Output0ExplanationPopulation already meets the target, so 0 years needed.