Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- w = int(input())
- l = int(input())
- h = int(input())
- all_space = w * l * h
- while all_space > 0:
- boxes = input()
- if boxes == "Done":
- print(f"{all_space} Cubic meters left.")
- break
- all_space -= int(boxes)
- if not boxes == "Done":
- print(f"No more free space! You need {abs(all_space)} Cubic meters more.")
Advertisement
Add Comment
Please, Sign In to add comment