#34949: python AC


1554101-0@g.puiching.edu.mo (P6A29_1300題了)

學校 : 澳門培正中學
編號 : 216811
來源 : [60.246.150.90]
最後登入時間 :
2024-10-10 18:56:38
b981. YoJudge 預練(時間之章) -- b961YoJudge | From: [27.109.151.69] | 發表日期 : 2023-04-28 22:38

try:
    while True:
        s=input().replace("hour","*3600000+").replace("h","*3600000+").replace("min","*60000+").replace("ms","*1+").replace("m","*60000+").replace("s","*1000+")
        print(int(eval(s[0:-1]))) #計算 字串0~倒數第二
except EOFError:
    pass

 
ZeroJudge Forum