高考python用户求助
查看原帖
高考python用户求助
53150
清歡三酉楼主2021/7/25 17:33
import math
a,b=map(int,input().split())
t=a/b
h=8-math.ceil(t/60)   #向上取整
s=50-math.ceil(t%60) 
if len(str(s))==1:
    s="0"+str(s)
print(str(h)+":"+str(s))

样例对的,自己搞了个补0的也是对的,过不了

HELP ME PLS!

2021/7/25 17:33
加载中...