Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- serial_name = input()
- serial_time = int(input())
- break_time = int(input())
- needed_time = break_time / 8.0 + break_time / 4.0 + serial_time
- if needed_time <= break_time:
- print(f'You have enough time to watch {serial_name} and left with {break_time - math.floor(needed_time)} minutes free time.')
- else:
- print(f'You don\'t have enough time to watch {serial_name}, you need {math.ceil(needed_time) - break_time} more minutes.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement