python3爆零求助
查看原帖
python3爆零求助
893114
denghuolanshan_1004楼主2023/1/22 10:13

所有测试点全WA\color{red}WA

m,s,t=map(int,input().split())
s1=s
t1=t
a=m//10
m-=a*10
s-=a*60
t-=a
if m%2==1:
    m-=1
while (m%10!=0)and(m!=0):
    m+=4
    t-=1
a=m/10
s-=a*60
m=0
while (s>=120)and(t>=7):
    t-=7
    s-=120
a=t*17
t-=(s//17)+1
if s<=a:
    print("Yes")
    print(t1-t)
else:
    print("No")
    s-=a
    print(s1-s)
2023/1/22 10:13
加载中...