Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- needed_money = float(input())
- count_puzzle = int(input())
- count_dolls = int(input())
- count_teddy_bears = int(input())
- count_minions = int(input())
- count_trucks = int(input())
- total_puzzle_price = count_puzzle * 2.60
- total_dolls_price = count_dolls * 3
- total_teddy_bears_price = count_teddy_bears * 4.10
- total_minions_price = count_minions * 8.20
- total_trucks_price = count_trucks * 2
- total_toys_price = total_puzzle_price + total_dolls_price + total_teddy_bears_price + total_minions_price \
- + total_trucks_price
- total_count_toys = count_puzzle + count_dolls + count_teddy_bears + count_minions + count_trucks
- if total_count_toys >= 50:
- total_toys_price *= 0.75
- total_toys_price *= 0.9
- if total_toys_price > needed_money:
- print(f"Yes! {total_toys_price - needed_money:.2f} lv left.")
- else:
- print(f"Not enough money! {needed_money - total_toys_price:.2f} lv needed. ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement