Hanbit the Developer

[문자열] Python - 1427번, 소트인사이드 본문

Algorithm/백준

[문자열] Python - 1427번, 소트인사이드

hanbikan 2021. 3. 11. 17:00

www.acmicpc.net/problem/1427

 

1427번: 소트인사이드

첫째 줄에 정렬하고자하는 수 N이 주어진다. N은 1,000,000,000보다 작거나 같은 자연수이다.

www.acmicpc.net

import sys
input = sys.stdin.readline
nums = list(map(int, input().strip()))
nums.sort(reverse=True)
for num in nums:
    print(num, end="")