Python,为什么第三个数据通过不了啊
查看原帖
Python,为什么第三个数据通过不了啊
1561399
ferry_121023楼主2024/11/5 20:35

import math m,t,s=map(eval,input().split()) if t!=0 and s%t!=0 and mt>=s: x=s/t x=math.ceil(x) sheng=m-x elif t!=0 and s%t==0 and mt>=s: x=s/t sheng=m-x elif t!=0 and s>m*t: sheng=0 else: sheng=0 print(f'{sheng}')

2024/11/5 20:35
加载中...