题解 | #字符串排序#
字符串排序
http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
while True:
try:
n = int(input())
l_n = []
while n:
n_n = input()
l_n.append(n_n)
n -= 1
ans = sorted(l_n)
for i in ans:
print(i)
except:
break
try:
n = int(input())
l_n = []
while n:
n_n = input()
l_n.append(n_n)
n -= 1
ans = sorted(l_n)
for i in ans:
print(i)
except:
break