Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- rekord = float(input())
- razstoqnie = float(input())
- sec_per_m = float(input())
- negovoto_vreme = razstoqnie * sec_per_m
- s_voda = math.floor((razstoqnie / 15)) * 12.5
- kraino_vreme = negovoto_vreme + s_voda
- nedostig = rekord - kraino_vreme
- if kraino_vreme > rekord:
- print(f'No, he failed! He was {-nedostig:.2f} seconds slower.')
- else:
- print(f'Yes, he succeeded! The new world record is {kraino_vreme:.2f} seconds.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement