Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- serial_name = input()
- length_episode = int(input())
- rest_time_length = int(input())
- lunch_time = rest_time_length / 8
- rest_time_for_chilling = rest_time_length / 4
- # po vreme na pochivkata
- in_rest_time = rest_time_length - (lunch_time + rest_time_for_chilling)
- if in_rest_time >= length_episode:
- print(f"You have enough time to watch {str(serial_name)} and left with {ceil(in_rest_time-length_episode)} "
- f"minutes free time.")
- else:
- print(f"You don't have enough time to watch {str(serial_name)}, you need {ceil(length_episode-in_rest_time)}"
- f" more minutes.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement