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