Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guest = int(input())
- command = input()
- group = 0
- counter = 0
- group_cuvert = 0
- total_cuverts = 0
- while command != "The restaurant is full":
- group = int(command)
- if group < 5:
- group_cuvert = group * 100
- else:
- group_cuvert = group * 70
- counter += group
- total_cuverts += group_cuvert
- command = input()
- if total_cuverts >= guest:
- print(f"You have {counter} guests and {int(total_cuverts) - guest} leva left.")
- else:
- print(f"You have {counter} guests and {int(total_cuverts)} leva income, but no singer.")
Advertisement
Add Comment
Please, Sign In to add comment