cool hamsters never sleep
백준 25304. 영수증 본문
k = int(input())
n = int(input())
x = 0
for i in range (n) :
a, b = map(int, input().split())
c = a*b
x = x + c
if k == x :
print("Yes")
else :
print("No")
'Python Algorithm' 카테고리의 다른 글
백준 4948. 베르트랑 공준 (시간초과 / 미해결) (0) | 2022.08.09 |
---|---|
백준 10872. 팩토리얼 (0) | 2022.08.08 |
백준 25305. 커트라인 (0) | 2022.08.06 |
백준 2751. 수 정렬하기 2 (0) | 2022.08.05 |
백준 11050. 이항 계수 1 (0) | 2022.08.04 |
Comments