Acresium India
  1. A person wants to the buy the shares at price m or become double

calculate the minimum number of days after which he will be able to buy the shares of company give the price of the share on Day 0 is n$/share

input format:
the input consists of 2 lines each containing an integer. First line denotes n, intial price of the stock and next line denotes m the price at which the person wants to buy the stock.

constraints 0<n,m<=10000

sample test cases:

input1:
10
1
output
9

input2:
3
4
output2:
2

can some one help me in solving the question?

Comments (5)