Advertisement
exDotaPro

9_march_2019_2_skeleton

Jan 10th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. minutes = int(input())
  2. seconds = int(input())
  3. length = float(input())
  4. sec_per_100_m = int(input())
  5.  
  6. competition_in_seconds = minutes * 60 + seconds
  7. time_reduced = length / 120
  8. total_time_reduced = time_reduced * 2.5
  9. marin_time = (length / 100) * sec_per_100_m - total_time_reduced
  10.  
  11. if competition_in_seconds >= marin_time:
  12.     print(f'Marin Bangiev won an Olympic quota!')
  13.     print(f'His time is {marin_time:.3f}.')
  14. else:
  15.     print(f'No, Marin failed! He was {marin_time - competition_in_seconds:.3f} second slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement