반응형

Prob


Approach

tuple을 사용하면 쉽게 작성할 수 있다.


Code

import sys

N = list(tuple(sys.stdin.readline().rstrip()))

N.sort(reverse = True)
for i in range(len(N)):
    sys.stdout.write(N[i])
sys.stdout.write('\n')

 

출처

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

반응형
블로그 이미지

Refrin

일상생활 끄적 IT 프로젝트 끄적