Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- time_pictures = int(input())
- scenes_number = int(input())
- scene_period = int(input())
- preparation = time_pictures * 0.15
- time_per_scene = scenes_number * scene_period
- time_needed = preparation + time_per_scene
- left = abs(time_pictures - time_needed)
- if time_needed <= time_pictures:
- print(f'You managed to finish the movie on time! You have {left:.0f} minutes left!')
- else:
- print(f'Time is up! To complete the movie you need {left:.0f} minutes.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement