Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- record_seconds = float(input())
- distance_metres = int(input())
- time_seconds_perminute = float(input())
- contest = distance_metres * time_seconds_perminute
- set = math.floor(distance_metres / 15)
- set2 = set * 12.5
- sum_time = contest + set2
- if record_seconds <= sum_time:
- result = sum_time - record_seconds
- print(f"No, he failed! He was {result:.2f} seconds slower.")
- elif record_seconds > sum_time:
- print(f"Yes, he succeeded! The new world record is {sum_time:.2f} seconds.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement