求助大佬们,卡在90分

P5707 【深基2.例12】上学迟到

GuoHaiSheng @ 2024-09-10 15:15:10

s, v = map(int, input().split())
cont = 10
t = 7
while s > 0:
    cont += 1
    s -= v

while cont >= 60:
    cont -= 60
    t -= 1
    if t == 0:
        t = 24

print(f"{t:02d}:{(60 - cont):02d}")

by sunhewei @ 2024-09-15 16:00:07

@xxswoxi6 不懂就问 这是什么语言啊


by GuoHaiSheng @ 2024-09-18 10:05:13

@sunhewei Python忘了说了


|