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