Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- serial = input()
- episode = int(input())
- breakTime = int(input())
- timeForLunch = breakTime * 1 / 8
- timeForBreak = breakTime * 1 / 4
- leftTime = breakTime - timeForLunch - timeForBreak
- if leftTime >= episode:
- print(f'You have enough time to watch {serial} and left with {math.ceil(leftTime - episode):.0f} minutes free time.')
- else:
- print(f"You don't have enough time to watch {serial}, you need {math.ceil(episode-leftTime):.0f} more minutes.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement