Advertisement
Nikolay9

Untitled

Sep 20th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. from math import floor
  2. current_record = float(input())
  3. S = float(input())
  4. V = float(input())
  5.  
  6. resistance = floor((S / 15) * 12.5)
  7. t = S * V + resistance
  8. difference = t - current_record
  9.  
  10. if t < current_record:
  11.     print(f"Yes, he succeeded! The new world record is {t:.2f} seconds.")
  12. if t >= current_record:
  13.     print(f"No, he failed! He was {difference:.2f} seconds slower.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement