코딩테스트/Algorithm
[백준 25304] 영수증
hu6r1s
2023. 6. 26. 08:30
입력 & 출력 예제
x = int(input())
n = int(input())
c = 0
for _ in range(n):
a, b = map(int, input().split())
c += a * b
if x == c:
print('Yes')
else:
print('No')
쉬운거