python第9个测试点过不去,求大佬指点
查看原帖
python第9个测试点过不去,求大佬指点
822952
2471797647yaya楼主2025/1/15 21:31

s,v=input().split() n=int(int(s)/int(v)) a=7 b=59 if n<=49: minutes=b-n-10 print(f"07:{minutes:02d}") if n>49: hours=a-((n+10)//60) if hours<0: hours=24+hours minutes=b-10-(n-(60*((n+10)//60))) print(f"{hours:02d}:{minutes:02d}") #好像缺少不提前一天的代码,但不知道如何实现

2025/1/15 21:31
加载中...