|
|
back to boardWA#8 Time Limit(Python) Не могу понять, что не так. # -*- coding: utf-8 -*- n, k = [int(i) for i in input().split()] currentAmount = 1 result = 0 while currentAmount < n: if currentAmount <= k: currentAmount += currentAmount elif currentAmount > k: currentAmount += k result += 1 print(result) Edited by author 24.10.2019 17:58 |
|
|