exDotaPro

15_june_2019_2_movie_day

Jan 21st, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. from math import ceil
  2.  
  3. frames_time = int(input())
  4. scenes = int(input())
  5. scene_duration = int(input())
  6.  
  7. preparation = frames_time * 0.15
  8. filming_duration = scenes * scene_duration
  9. total_time = preparation + filming_duration
  10.  
  11. diff = ceil(abs(total_time - frames_time))
  12.  
  13. if frames_time >= total_time:
  14.     print(f'You managed to finish the movie on time! You have {diff} minutes left!')
  15. else:
  16.     print(f'Time is up! To complete the movie you need {diff} minutes.')
Add Comment
Please, Sign In to add comment