-Code
cost = {"Paper": 57.99, "Printer": 120.50, "Planners": 31.25,
"Binders": 22.50, "Calendar": 10.95, "Notebooks": 11.20,
"Ink": 66.95}
res = 0
while 1:
s = input()
if s == "EOI":
break
res += cost[s]
print(f"${res}")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 26198번 Chronogram (0) | 2023.03.23 |
---|---|
[백준/파이썬] 25785번 Easy-to-Pronounce Words (0) | 2023.03.22 |
[백준/파이썬] 26004번 HI-ARC (0) | 2023.03.20 |
[백준/파이썬] 26314번 Vowel Count (0) | 2023.03.19 |
[백준/파이썬] 24606번 Double Password (0) | 2023.03.18 |