본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 33191번 Yalda

by 현장 2025. 2. 1.

-Code

prices = [int(input()) for _ in range(4)]

my_cost = prices[0]

if my_cost >= prices[1]:
    print("Watermelon")
elif my_cost >= prices[2]:
    print("Pomegranates")
elif my_cost >= prices[3]:
    print("Nuts")
else:
    print("Nothing")