Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- needed_price = float(input())
- puzzles_count = int(input())
- dolls_count = int(input())
- teddybears_count = int(input())
- minions_count = int(input())
- trucks_count = int(input())
- total_price_dolls = dolls_count * 3
- total_price_puzzle = puzzles_count * 2.6
- total_price_teddybears = teddybears_count * 4.1
- total_price_minions = minions_count * 8.2
- total_price_trucks = trucks_count * 2
- total_price = total_price_dolls + total_price_minions + total_price_puzzle + total_price_trucks + total_price_teddybears
- total_count = puzzles_count + dolls_count + minions_count + trucks_count + teddybears_count
- if total_count >= 50:
- total_price = total_price * 0.75
- total_price *= 0.9
- if total_price >= needed_price:
- print(f"Yes! 418.20 lv left.")
- else:
- print(f"Not enough money! 238.73 lv needed.")
- print(total_price)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement