본문 바로가기
백준 문제풀이

baekjoon - python - 1427

by winston1214 2020. 9. 4.
반응형

https://www.acmicpc.net/problem/1427

 

1427번: 소트인사이드

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

www.acmicpc.net

# @Author YoungMinKim
# baekjoon
num = list(input())
result = sorted(num,reverse=True)
result2=''.join(result)
print(int(result2))
반응형

'백준 문제풀이' 카테고리의 다른 글

baekjoon - python - 10926  (0) 2020.09.05
baekjoon - python - 10828  (0) 2020.09.05
baekjoon - python - 10886  (0) 2020.09.03
baekjoon - python - 10872  (0) 2020.09.02
baekjoon - python - 10871  (0) 2020.09.02

댓글