You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 정수 내림차순으로 배치하기
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)