Skip to content
Snippets Groups Projects
16.py 233 B
Newer Older
hacker717's avatar
hacker717 committed
a, b, c = int(input()), int(input()), int(input())
dist = a - b

if dist < 0:
    dist *= -1

time = str(dist / c).split(".")
if len(time[1]) < 2:
    time[1] += "0"
elif len(time) > 2:
    time[1] = time[1][:2]
print(".".join(time))