题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
import sys import itertools a= [] for line in itertools.islice(sys.stdin,1,None): a.append(line.strip()) a.sort() print(*a,sep='\n')
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
import sys import itertools a= [] for line in itertools.islice(sys.stdin,1,None): a.append(line.strip()) a.sort() print(*a,sep='\n')
相关推荐