Spocoman

Mountain Run

Jan 5th, 2022 (edited)
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. record = float(input())
  2. meters = float(input())
  3. second_per_meter = float(input())
  4.  
  5. sum = meters * second_per_meter + meters // 50 * 30
  6.  
  7. if sum < record:
  8.     print(f' Yes! The new record is {sum:.2f} seconds.')
  9. else:
  10.     print(f'No! He was {sum - record:.2f} seconds slower.')
  11.  
  12.  
  13.  
  14.  
Add Comment
Please, Sign In to add comment