#34782: 小"溪"很"特"別因為它會"勒"死我


raphaelchu0205@gmail.com (?? “‪Raphael‬” ??)

學校 : 不指定學校
編號 : 181268
來源 : [125.230.71.195]
最後登入時間 :
2024-01-22 09:11:15

while 1:
    S1=input()
    a=int(S1.split(":")[0])
    b=int(S1.split(":")[1])
    c=0
    if S1=="0:00":
        break
    c=abs(float(0.5*(60*a+b)-6*b))
    if c>180:
        print("{:.3f}".format(360-c))
    else:
        print("{:.3f}".format(c))