Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minutes_of_controla=int(input())
- seconds_of_controla=int(input())
- lenght_of_chute=float(input())
- seconds_per_100_metres=int(input())
- time_of_controla=minutes_of_controla*60+seconds_of_controla
- reduce_of_time=lenght_of_chute/120
- total_reduced_time=reduce_of_time*2.5
- time_of_Marin=(lenght_of_chute/100)*reduce_of_time-total_reduced_time
- difference=abs(time_of_Marin-time_of_controla)
- if time_of_Marin<=time_of_controla:
- print("Marin Bangiev won an Olympic quota!")
- print(f"His time is {time_of_Marin:.3f}.")
- elif time_of_Marin>time_of_controla:
- print(f"No, Marin failed! He was {difference:.3f} second slower.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement