Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. time_pictures = int(input())
  2. scenes_number = int(input())
  3. scene_period = int(input())
  4.  
  5. preparation = time_pictures * 0.15
  6. time_per_scene = scenes_number * scene_period
  7. time_needed = preparation + time_per_scene
  8.  
  9. left = abs(time_pictures - time_needed)
  10.  
  11. if time_needed <= time_pictures:
  12.     print(f'You managed to finish the movie on time! You have {left:.0f} minutes left!')
  13. else:
  14.     print(f'Time is up! To complete the movie you need {left:.0f} minutes.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement