728x90
반응형
단순 수학 문제이다.
res = 0
for _ in range(int(input())):
a, b = map(int, input().split())
res += b%a
print(res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 10984번 내 학점을 구해줘(python) (0) | 2021.03.02 |
---|---|
백준 알고리즘 10886번 0 = not cute / 1 = cute(python) (0) | 2021.03.02 |
백준 알고리즘 19572번 가뭄(Small)(python) (0) | 2021.03.01 |
백준 알고리즘 18883번 N M 찍기(python) (0) | 2021.03.01 |
백준 알고리즘 18856번 피드백(python) (0) | 2021.03.01 |