Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- excursion_price = float(input())
- puzzles = int(input())
- talking_dolls = int(input())
- teddy_bears = int(input())
- minions= int(input())
- trucks = int(input())
- ordered_items = puzzles + talking_dolls + teddy_bears + minions + trucks
- revenue = puzzles * 2.6 + talking_dolls * 3 + teddy_bears * 4.1 + minions * 8.2 + trucks * 2
- if ordered_items >= 50:
- discounted_revenue = revenue * 0.75
- else:
- discounted_revenue = revenue
- rent = discounted_revenue * 0.1
- total_money = discounted_revenue - rent
- if total_money > excursion_price:
- print(f"Yes! {total_money - excursion_price:.2f} lv left.")
- else:
- print(f"Not enough money! {excursion_price - total_money:.2f} lv needed.")
Advertisement
Add Comment
Please, Sign In to add comment