BbJLeB

Skeleton

Apr 23rd, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. control_min = int(input())
  2. control_sec = int(input())
  3. leight_control = float(input())
  4. sec_100m = int(input())
  5.  
  6. control =  (control_min * 60) + control_sec
  7. time_slow =  float(leight_control/120)
  8. time = float(time_slow * 2.5)
  9. time_Marin = float((leight_control/100) * sec_100m) - time
  10.  
  11. if control >= time_Marin:
  12.     print (f"Marin Bangiev won an Olympic quota!")
  13.     print (f"His time is {time_Marin:.3f}.")
  14. else:
  15.     time_off = time_Marin - control
  16.     print(f"No, Marin failed! He was {time_off:.3f} second slower.")
Advertisement
Add Comment
Please, Sign In to add comment