Advertisement
aneliabogeva

Lunch Break

Jun 15th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import math
  2.  
  3. name = input()
  4. time_epizod = int(input())
  5. time_rest = int(input())
  6.  
  7. lunch_time = 0.125 * time_rest
  8. time_fun = 0.25 * time_rest
  9.  
  10. total = lunch_time + time_fun + time_epizod
  11.  
  12. if total <= time_rest:
  13. print(f"You have enough time to watch {name} and left with {math.ceil(time_rest-total)} minutes free time.")
  14. else:
  15. 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