Advertisement
tod36

Untitled

Jan 23rd, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. world_record = float(input())
  2. length = float(input())
  3. time_per_meter = float(input())
  4. water_resist = round(length / 15) * 12.5
  5. ivan_record = (length * time_per_meter) + water_resist
  6. if ivan_record < world_record:
  7. print(f'Yes, he succeeded! The new world record is {ivan_record:.2f} seconds.')
  8. else:
  9. print(f'No, he failed! He was {(ivan_record - world_record):.2f} seconds slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement