题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
while True: try: # 输入n n=int(input()) l=[] for i in range(0,n): s=input() l.append(s) # 排序 ll=sorted(l) # 输出 print('\n'.join(ll)) except: break
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
while True: try: # 输入n n=int(input()) l=[] for i in range(0,n): s=input() l.append(s) # 排序 ll=sorted(l) # 输出 print('\n'.join(ll)) except: break
相关推荐