#Python TQC考題106
x=eval(input()) #10 min
y=eval(input()) #25 sec
z=eval(input()) #3 KM
hour=x/60+y/60/60 #耗時?小時
speed=z/1.6/hour #英哩/小時
print(“Speed = {:.1f}”.format(speed))
Spyder執行結果
min1 = eval(input())
sec = eval(input())
km = eval(input())
mile = km/1.6
hr = min1/60 + sec/60/60
speed = mile/hr
print(“Speed = %.1f” %speed)
近期留言