Advertisement
Spocoman

Skeleton

Jan 7th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.78 KB | None | 0 0
  1. minutes = int(input())
  2. seconds = int(input())
  3. control = minutes * 60 + seconds
  4. length_in_meters = float(input())
  5. seconds_for_100_meters = float(input())
  6. time = length_in_meters / 100 * seconds_for_100_meters - length_in_meters / 120 * 2.5
  7. if time <= control:
  8.     print(f'Marin Bangiev won an Olympic quota!\nHis time is {time:.3f}.')
  9. else:
  10.     print(f'No, Marin failed! He was {(time - control):.3f} second slower.')
  11.  
  12.  
  13. Тарикатско решение:)
  14.  
  15. control = int(input()) * 60 + int(input())
  16. length_in_meters = float(input())
  17. time = length_in_meters / 100 * float(input()) - length_in_meters / 120 * 2.5
  18. print(f'Marin Bangiev won an Olympic quota!\nHis time is {time:.3f}.' if time <= control
  19.       else f'No, Marin failed! He was {(time - control):.3f} second slower.')
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement