백준 BAEKJOON 31789번 모험의 시작 [PYTHON/파이썬] (BRONZE Ⅲ)https://www.acmicpc.net/problem/31789 4인조가 가진 돈 X와 후안의 공격력 S에 맞춰무기를 살 수 있는지 확인하여 4인조가 모험을 떠날 수 있게 도와주자! N = int(input())X, S = map(int, input().split())weaponInfo = [list(map(int, input().split())) for _ in range(N)]result = Falsefor c, p in weaponInfo: if c S: result = True breakif result: print("YES")else: pri..