Advertisement
aneliabogeva

02. Skeleton

Apr 23rd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import math
  2.  
  3. control_min = float(input())
  4. control_sec = float(input())
  5. lenght = float(input())
  6. seconds = float(input())
  7.  
  8. control_min = control_min * 60
  9. control_sec = control_sec + control_min
  10.  
  11. additional_time = ((lenght / 120))*2.5
  12. marin_time = (lenght / 100)*seconds - additional_time
  13.  
  14. if marin_time <= control_sec:
  15. print(f'Marin Bangiev won an Olympic quota!')
  16. print(f'His time is {marin_time:.3f}.')
  17. else:
  18. print(f'No, Marin failed! He was {(marin_time-control_sec):.3f} second slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement