SaveText.Ru

Без имени
  1. ages = input().split()
  2. limak_age = int(ages[0])
  3. bob_age = int(ages[1])
  4. ages_need = 0
  5.  
  6. if limak_age == bob_age:
  7.     print(1)
  8. else:
  9.     while limak_age <= bob_age:
  10.         limak_age *= 3
  11.         bob_age *= 2
  12.         ages_need += 1
  13.     print(ages_need)
  14.  

Share with your friends:

Print