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