총금액 X 입력
물건개수 N 입력

합 = 0

N번 반복:
    가격, 개수 입력
    합 = 합 + 가격 * 개수

만약 합 == X 이면:
    "Yes" 출력
아니면:
    "No" 출력

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: