Beakjoon&프로그래머스/파이썬
[백준/파이썬] 13587번 지폐 세기
현장
2023. 9. 18. 17:04
-Code
money = {136: 1000, 142: 5000, 148: 10000, 154: 50000}
res = 0
for _ in range(int(input())):
w, h = map(int, input().split())
res += money[w]
print(res)