본문 바로가기
백준문제/브론즈 4

백준) 25304번 - python

by kiseno 2024. 4. 29.
728x90
반응형
SMALL
total = int(input())
values = int(input())
sum1 = 0

for i in range(values):
    a,b = map(int,input().split(" "))
    sum1 += a * b

if sum1 == total: print("Yes")
else: print("No")


728x90
반응형
LIST

'백준문제 > 브론즈 4' 카테고리의 다른 글

백준) 28290번 - python  (0) 2024.05.01
백준) 28281번 - python  (0) 2024.04.30
백준) 24723번 - python  (0) 2024.04.28
백준) 19944번 - python  (0) 2024.04.27
백준) 21633번 - python  (0) 2024.04.26