#37143: python 紀錄


BensonDC (python戰士)

學校 : 不指定學校
編號 : 240921
來源 : [1.175.217.87]
最後登入時間 :
2024-03-27 12:33:26
f375. 神奇肥料 Fertilizer -- TOI 練習賽202010新手組3 | From: [36.238.105.93] | 發表日期 : 2023-08-23 00:01

S,E,A=map(int,input().split())
D=1
while S<E and A>0:
    D+=1
    if D%9==1 or D%10==1:
        None
    elif D%3==1:
        S=S+S//3
    else:
        S=S+S//10
    if D%11==1:
        A-=1
if A<=0:
    print("unsalable")
else:
    print(D)

 
ZeroJudge Forum