Beakjoon&프로그래머스/파이썬
[백준/파이썬] 22279번 Quality-Adjusted Life-Year
현장
2022. 10. 20. 22:13
-Code
res = 0
for _ in range(int(input())):
q, y = map(float, input().split())
res += q * y
print("%.3f" % res)