题解 | #字符串排序#

字符串排序

http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723

number = int(input()) dc1 = {} list1 = [] for i in range(number): s1 = input() dc1[i] = s1 for item in dc1: list1.append(dc1[item]) list2 = sorted(list1) for i in list2: print(i)

全部评论

相关推荐

06-26 17:24
已编辑
宁波大学 Java
迷失西雅图:别给,纯kpi,别问我为什么知道
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务