
https://programmers.co.kr/learn/courses/30/lessons/12982
금액을 오름차순으로 정렬하고 하나씩 더해가 budget과 비교했다.
def solution(d, budget):
    d.sort()
    cnt=0
    tmp=0
    for i in d:
        tmp+=i
        if tmp<=budget:
            cnt+=1
        else:
            break
    return cnt