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