레벨2 문제
import heapq
def solution(sco, K):
arr = []
answer = 0
for i in sco:
heapq.heappush(arr, i)
while ( arr[0] < K ):
if ( len(arr) == 1 ):
answer = -1
break
one = heapq.heappop(arr)
two = heapq.heappop(arr)
answer += 1
num = one + (2 * two)
heapq.heappush(arr, num)
return answer