Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = int(input())
- length = int(input())
- height = int(input())
- total_space = width * length * height
- width_of_kashon = 1
- length_of_kashon = 1
- height_of_kashon = 1
- total_space_of_box = 1
- number_of_boxes = str(input())
- broi_kashoni = 0
- while number_of_boxes != "Done":
- kashoni = int(number_of_boxes)
- broi_kashoni += kashoni
- if total_space < broi_kashoni:
- difference = abs(total_space - broi_kashoni)
- print(f"No more free space! You need {difference} Cubic meters more.")
- break
- number_of_boxes = input()
- if number_of_boxes == "Done":
- difference = abs(total_space - broi_kashoni)
- print(f"{difference} Cubic meters left.")
Advertisement
Add Comment
Please, Sign In to add comment