Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = int(input())
- length = int(input())
- height = int(input())
- free_space = width * length * height # volume of the free space
- command = input()
- while command != "Done":
- num_of_boxes = int(command)
- free_space -= num_of_boxes
- if free_space <= 0:
- print(f"No more free space! You need {abs(free_space)} Cubic meters more.")
- break
- command = input()
- if command == "Done":
- print(f"{free_space} Cubic meters left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement