scientific_comp_projects/CODE/[python]kattis/trivial/quality-adjusted_life-year.py
2021-10-29 15:16:40 +02:00

10 lines
149 B
Python

n = int(input())
total = 0
for i in range(n):
into = input()
q, y = into.split(' ')
total = float(y)*float(q) + total
print(total)