← Back to List

22279번: Quality-Adjusted Life-Year ↗

Solutions

Python 3
93 B | 93 chars
s = 0
for i in range(int(input())):
    a,b=map(float, input().split())
    s += a*b
print(s)