ComputerLanguage_Program/PYTHON
[PYTHON] 숫자 역정렬
pbj0812
2018. 9. 1. 02:16
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
q=""
for i in input().split():
digit = int(i)
q+=str(digit)
# Write an action using print
# To debug: print("Debug messages...", file=sys.stderr)
print(0 if int(q)==0 else "".join(sorted(q)[::-1]))