Advertisement
simeonshopov

Lunch break (june exam)

Nov 6th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import math
  2. name = input()
  3. epizod_time = int(input())
  4. rest_time = int(input())
  5.  
  6. rest_time -= (1 / 8 * rest_time) + (1 / 4 * rest_time)
  7.  
  8. if epizod_time <= rest_time:
  9.   print(f"You have enough time to watch {name} and left with {math.ceil(rest_time - epizod_time)} minutes free time.")
  10. else:
  11.   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