Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total_time = int(input())
- scene_count = int(input())
- scene_time = int(input())
- total_time *= 0.85
- scene_total = scene_count * scene_time
- time_dif = total_time - scene_total
- if total_time >= scene_total:
- print(f"You managed to finish the movie on time! You have {round(time_dif)} minutes left!")
- else:
- print(f"Time is up! To complete the movie you need {round(abs(time_dif))} minutes.")
Add Comment
Please, Sign In to add comment