Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- control_min = float(input())
- control_sec = float(input())
- lenght = float(input())
- seconds = float(input())
- control_min = control_min * 60
- control_sec = control_sec + control_min
- additional_time = ((lenght / 120))*2.5
- marin_time = (lenght / 100)*seconds - additional_time
- if marin_time <= control_sec:
- print(f'Marin Bangiev won an Olympic quota!')
- print(f'His time is {marin_time:.3f}.')
- else:
- print(f'No, Marin failed! He was {(marin_time-control_sec):.3f} second slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement