Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. old_record = float(input())
  2. distance = float(input())
  3. time_1m = float(input())
  4.  
  5. slowdown = (distance // 15) * 12.5
  6. new_record = (distance * time_1m) + slowdown
  7. ostatuk = abs(old_record - new_record)
  8.  
  9. if old_record > new_record:
  10.     print(f" Yes, he succeeded! The new world record is {new_record:.2f} seconds.")
  11. else:
  12.     print(f"No, he failed! He was {ostatuk:.2f} seconds slower.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement