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

[백준/파이썬] 22279번 Quality-Adjusted Life-Year

by 현장 2022. 10. 20.

-Code

res = 0
for _ in range(int(input())):
    q, y = map(float, input().split())
    res += q * y
print("%.3f" % res)