1차 테스트 : 컴파일 에러
문제는 map(int(input().split()) 으로 작성
수정 후
해답
X = int(input())
N = int(input())
tot_price = 0
for _ in range(N):
a,b = map(int, input().split())
tot_price += a * b
if tot_price == X :
print("Yes")
else :
print("No")
'coding > python 코딩테스트' 카테고리의 다른 글
[백준]분해합 (0) | 2024.11.27 |
---|---|
1085번 직사각형에서 탈출 (0) | 2024.09.28 |
백준 5086번 (0) | 2024.09.04 |
백준[10807] 개수 세기/파이썬 (0) | 2024.06.27 |