Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seats = int(input())
- people = input()
- stop = False
- profit = 0
- seated = 0
- while people != "Movie time!":
- people = int(people)
- if people <= seats:
- profit += people * 5
- seats -= people
- if people % 3 == 0:
- profit -= 5
- people = input()
- else:
- print(f"The cinema is full.")
- stop = True
- break
- else:
- print(f"There are {seats} seats left in the cinema.")
- stop = True
- if stop:
- print(f"Cinema income - {profit} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement