Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- serial_name = str(input())
- time_for_episodes = int(input())
- lunch_brake = int(input())
- lunch_time = lunch_brake * 1 / 8
- rest_time = lunch_brake * 1 / 4
- time_left = lunch_brake - lunch_time - rest_time
- time_for_watching = ceil(abs(time_for_episodes - time_left))
- if time_left >= time_for_episodes:
- print(f'You have enough time to watch {serial_name} and left with {time_for_watching} minutes free time.')
- else:
- print(f"You don't have enough time to watch {serial_name}, you need {time_for_watching} more minutes.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement