본문 바로가기

코딩 테스트/백준

[Python] 백준 1427 소트인사이트

 

정답 코드

import sys
input = sys.stdin.readline().strip

num = sorted(list(input()), reverse=True)
print(''.join(num))

'코딩 테스트 > 백준' 카테고리의 다른 글

[Python] 백준 2745 진법 변환  (0) 2025.01.06
[Python] 백준 2075 N번째 큰 수  (0) 2025.01.06
[Python] 백준 10815 숫자 카드  (0) 2025.01.06
[Python] 백준 10810 공 넣기  (0) 2025.01.06
[Python] 백준 10951 A+B - 4  (1) 2025.01.03