728x90
반응형
단순 사칙연산 문제이다.
for _ in range(int(input())):
s = int(input())
for _ in range(int(input())):
q, p = map(int, input().split())
s += q*p
print(s)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 13311번 행운의 편지(python) (0) | 2021.02.21 |
---|---|
백준 알고리즘 9317번 Monitor DPI(python) (0) | 2021.02.20 |
백준 알고리즘 9316번 Hello Judge(python) (0) | 2021.02.20 |
백준 알고리즘 9310번 Arithmetic and Geometric Sums(python) (0) | 2021.02.20 |
백준 알고리즘 9299번 Math Tutoring(python) (0) | 2021.02.20 |