25304

    백준 25304번 Python

    백준 25304번 Python

    all = int(input()) num = int(input()) for i in range(num): price, n = map(int, input().split()) all-=price * n if all == 0: print('Yes') else: print('No')