Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total_count = int(input())
- seats = total_count
- all_guests = 0
- income = 0
- price = 1
- while total_count >= 0:
- people_in = str(input())
- if people_in != "Movie time!":
- people_in = int(people_in)
- total_count -= people_in
- all_guests += people_in
- price = people_in * 5
- if people_in % 3 == 0:
- discount = 5
- price -= discount
- income += price
- if people_in == "Movie time!":
- seats_left = seats - all_guests
- print(f"There are {seats_left} seats left in the cinema.")
- print(f"Cinema income - {income} lv.")
- if total_count < 0:
- print("The cinema is full.")
- print(f"Cinema income - {income - price} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement