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