백준-25304

Weed·2023년 2월 25일
0

백준

목록 보기
10/24

Price = int(input())
n = int(input())

for i in range(n):
    a, b = map(int, input().split())
    Price = Price - (a*b)

if Price == 0:
    print('Yes')
else:
    print('No')
profile
개발자로 전직해보자

0개의 댓글