python3,求帮助
查看原帖
python3,求帮助
483191
文渊小杨潇楼主2022/12/28 22:32

只过了前3个点

代码如下

import math
s,v=map(int,input().split(" "))
u=8
t=math.ceil(s/v)+10
b=t%60
a=t//60
if a>=8:
   u=32
u=u-a-math.ceil(t/60)
if u<10:
   u="0"+str(u)
else:
   u=str(u)
v=(60-b)%60
if v<10:
   v="0"+str(v)
else:
   v=str(v)
print(u+":"+v)
2022/12/28 22:32
加载中...