Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # разходи => декор и обекла
- # декор = 10 % от бюджета
- # облекло = бр. статисти * цена за ед.костюм
- # проверка за остъпка
- # разходи = декор + обекло
- # проверка дали бюджетът е достатъчен
- budget = float(input())
- count_statists = int(input())
- price_per_statist = float(input())
- decor = 0.1 * budget
- clothes = count_statists * price_per_statist
- if count_statists > 150:
- clothes = clothes - 0.10 * clothes #0.9 * clothes
- expenses = decor + clothes
- # ако бюджетът е достатъчен -> budget >= expenses
- if budget >= expenses:
- print('Action!')
- left_money = budget - expenses
- print(f'Wingard starts filming with {left_money:.2f} leva left.')
- # ако бюджетът не е достатъчен -> бюджетът < разходите
- else:
- print('Not enough money!')
- need_money = expenses - budget
- print(f'Wingard needs {need_money:.2f} leva more.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement