题解 | #汽水瓶#
汽水瓶
https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
for i in range(10): t=0 try: num1=int(input()) except: pass if num1==0: continue else: while True: num2=num1%3 num1=int(num1/3) t=t+num1 num1=num1+num2 if num1==1: break elif num1==2: t=t+1 break print(t)