Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- record_seconds = float(input())
- distance_meters = float(input())
- time_meter_per_seconds = float(input())
- total = distance_meters * time_meter_per_seconds + distance_meters // 15 * 12.5
- if record_seconds > total:
- print(f'Yes, he succeeded! The new world record is {total:.2f} seconds.')
- else:
- print(f'No, he failed! He was {total - record_seconds:.2f} seconds slower.')
- Тарикатско решение:)
- record = float(input())
- distance = float(input())
- total = distance * float(input()) + distance // 15 * 12.5
- print(f'Yes, he succeeded! The new world record is {total:.2f} seconds.' if record > total
- else f'No, he failed! He was {total - record:.2f} seconds slower.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement