Teo_Yanchev

movie_day

Jul 7th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. from math import ceil
  2.  
  3. time_filming = int(input())
  4. count_scenes = int(input())
  5. time_scene = int(input())
  6.  
  7. terrain = time_filming * 0.15
  8. scenes_time = count_scenes * time_scene
  9. time_needed = terrain + scenes_time
  10.  
  11. diff = abs(time_filming - time_needed)
  12. if time_needed <= time_filming:
  13. print(f"You managed to finish the movie on time! You have {ceil(diff)} minutes left!")
  14. else:
  15. print(f"Time is up! To complete the movie you need {ceil(diff)} minutes.")
Add Comment
Please, Sign In to add comment