PCCP 문제/LV.0

프로그래머스) 아이스 아메리카노

kiseno 2024. 5. 23. 01:47
728x90
반응형
SMALL
def solution(money):
    answer,count = [],0
    while True:
        if money >= 5500:
            count += 1
            money -= 5500
        else:
            answer.append(count)
            answer.append(money)
            break
    return answer
728x90
반응형
LIST