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