MC_xjhjdA @ 2024-07-12 16:09:17
a,b=map(int,input().split())
c=a/b+10
if c!=int(c):
c=c//1+1
if c>480:
c=3600-480
c=int(c) #总耗时
if c<480:
h=7-c//60
elif c==480:
h=0
m=60-c%60
if m==60:
m=0
def z(b): #补0
b=str(b)
b=b.zfill(2)
return b
print(z(h)+':'+z(m))
by cocopook @ 2024-07-15 00:20:19
题目前一天的意思是用时不超过24h,会存在00:00之前就出发的情况,很容易让人产生歧义