1条回答 默认 最新
- 辉煌仪奇 2021-10-23 11:58关注
n,u,d=eval(input().replace(' ',',')) if d<u and n<100: t=(n-1)/(u-d)*2 if t%1==0: print(int(t)) else: t=int(t)+1 print(t)
有帮助请采纳,有问题继续交流,你的采纳是对我回答的最大的肯定和动力
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
n,u,d=eval(input().replace(' ',','))
if d<u and n<100:
t=(n-1)/(u-d)*2
if t%1==0:
print(int(t))
else:
t=int(t)+1
print(t)