Untitled

mail@pastecode.io avatar
unknown
plain_text
25 days ago
638 B
1
Indexable
Never
budget_for_shopping = float(input())
video_cards_count = int(input())
processors_count = int(input())
ram_count = int(input())

video_cards_cost = video_cards_count * 250
processors_cost = (video_cards_cost * 0.35) * processors_count
ram_cost = (video_cards_cost * 0.1) * ram_count

total_cost = video_cards_cost + processors_cost + ram_cost

if video_cards_count > processors_count:
    total_cost *= 0.85

if budget_for_shopping >= total_cost:
    print(f"You have {(budget_for_shopping - total_cost):.2f} leva left!")
else:
    print(f"Not enough money! You need {(total_cost - budget_for_shopping):.2f} leva more!")
Leave a Comment