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