Advertisement
Guest User

Untitled

a guest
Aug 26th, 2020
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. capacity_seats=int(input())
  2. occupied_seats=0
  3. total=0
  4. while True:
  5. line=input()
  6. if line=='Movie time!':
  7. print(f'There are {capacity_seats-occupied_seats} seats left in the cinema.')
  8. break
  9. occupied_seats+=int(line)
  10. count_people=int(line)
  11. total+=5*count_people
  12. if count_people%3==0:
  13. total-=5
  14. if occupied_seats>capacity_seats:
  15. print(f'The cinema is full.')
  16. break
  17.  
  18. print(f'Cinema income - {total} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement