Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = int(input())
- length = int(input())
- height = int(input())
- #volume = count_free_space
- count_free_space = width * length * height
- command = input() #брой пренесени кашони или текстът "Done"
- # спираме => command == Done
- # продължаваме -> command != Done
- while command != "Done":
- # брой пренесени кашони
- boxes = int(command)
- count_free_space -= boxes
- if count_free_space <= 0:
- print(f'No more free space! You need {abs(count_free_space)} Cubic meters more.')
- break
- command = input()
- else: print(f'{count_free_space} Cubic meters left.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement