Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minutes = int(input())
- seconds = int(input())
- control = minutes * 60 + seconds
- length_in_meters = float(input())
- seconds_for_100_meters = float(input())
- time = length_in_meters / 100 * seconds_for_100_meters - length_in_meters / 120 * 2.5
- if time <= control:
- print(f'Marin Bangiev won an Olympic quota!\nHis time is {time:.3f}.')
- else:
- print(f'No, Marin failed! He was {(time - control):.3f} second slower.')
- Тарикатско решение:)
- control = int(input()) * 60 + int(input())
- length_in_meters = float(input())
- time = length_in_meters / 100 * float(input()) - length_in_meters / 120 * 2.5
- print(f'Marin Bangiev won an Olympic quota!\nHis time is {time:.3f}.' if time <= control
- else f'No, Marin failed! He was {(time - control):.3f} second slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement