-
[PCCE 기출문제] 9번 / 지폐 접기코딩 테스트/Level 1 2024. 11. 9. 17:48반응형
https://school.programmers.co.kr/learn/courses/30/lessons/340199
def solution(wallet, bill): wallet, bill = sorted(wallet), sorted(bill) answer = 0 while bill[0] > wallet[0] or bill[1] > wallet[1]: bill[1] = bill[1] // 2 bill = sorted(bill) answer += 1 return answer
반응형