Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- world_record = float(input())
- length = float(input())
- time_per_meter = float(input())
- water_resist = round(length / 15) * 12.5
- ivan_record = (length * time_per_meter) + water_resist
- if ivan_record < world_record:
- print(f'Yes, he succeeded! The new world record is {ivan_record:.2f} seconds.')
- else:
- print(f'No, he failed! He was {(ivan_record - world_record):.2f} seconds slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement