Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- series_name = input()
- episode_duration = int(input())
- rest_duration = int(input())
- lunch_time = rest_duration / 8
- rest_time = rest_duration / 4
- remaining_time = rest_duration - lunch_time - rest_time
- if remaining_time >= episode_duration:
- diff = math.ceil(remaining_time - episode_duration)
- print(f'You have enough time to watch {series_name} and left with {diff} minutes free time.')
- else:
- diff = math.ceil(episode_duration - remaining_time)
- print(f"You don't have enough time to watch {series_name}, you need {diff} more minutes.")
Add Comment
Please, Sign In to add comment