-Code
res = 0
for _ in range(int(input())):
q, y = map(float, input().split())
res += q * y
print("%.3f" % res)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 25641번 균형 잡힌 소떡소떡 (0) | 2022.10.22 |
---|---|
[백준/파이썬] 25270번 Rotating letters (0) | 2022.10.21 |
[백준/파이썬] 9310번 Arithmetic and Geometric Sums (0) | 2022.10.19 |
[백준/파이썬] 17094번 Serious Problem (0) | 2022.10.18 |
[백준/파이썬] 15272번 Hissing Microphone (0) | 2022.10.17 |