Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 267 Bytes

230604_프로그래머스.md

File metadata and controls

15 lines (14 loc) · 267 Bytes
# 정수 내림차순으로 배치하기

def solution(n):
    answer = ''
    str_n = str(n)
    li = []
    for i in str_n:
        li.append(int(i))
    li.sort(reverse=True)
    for i in li:
        answer += str(i)
    # print(li)
    return int(answer)