파이썬/백준
10833번: 사과
L_SU
2022. 6. 6. 20:36
# 사과
n = int(input())
c = 0
for i in range(n):
a, b = map(int, input().split())
c += (b % a)
print(c)