Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- record = float(input())
- distance = float(input())
- time_for_one_m = float(input())
- delay = math.floor(distance / 15) * 12.5
- time = distance * time_for_one_m + delay
- if time < record:
- print(f"Yes, he succeeded! The new world record is {time:.2f} seconds.")
- else:
- print(f"No, he failed! He was {time - record:.2f} seconds slower.")
Add Comment
Please, Sign In to add comment