[프로그래머스] 예산Lv.1
def solution(d, budget): answer = 0 for i in sorted(d): budget -= i if budget < 0: break answer += 1 return answer