Advertisement
Guest User

Skeleton

a guest
Jul 12th, 2022
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. minutes_of_controla=int(input())
  2. seconds_of_controla=int(input())
  3. lenght_of_chute=float(input())
  4. seconds_per_100_metres=int(input())
  5. time_of_controla=minutes_of_controla*60+seconds_of_controla
  6. reduce_of_time=lenght_of_chute/120
  7. total_reduced_time=reduce_of_time*2.5
  8. time_of_Marin=(lenght_of_chute/100)*reduce_of_time-total_reduced_time
  9. difference=abs(time_of_Marin-time_of_controla)
  10. if time_of_Marin<=time_of_controla:
  11.     print("Marin Bangiev won an Olympic quota!")
  12.     print(f"His time is {time_of_Marin:.3f}.")
  13. elif time_of_Marin>time_of_controla:
  14.     print(f"No, Marin failed! He was {difference:.3f} second slower.")
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement