题解 | #字符串排序#

字符串排序

https://www.nowcoder.com/practice/0425aa0df74646209d3f56f627298ab2

import sys

n = int(input())
i = 0
l =[]
while i<n:

    s = str(input())
    if len(s)>=1 and len(s)<=100:
        l.append(s[-6:])
        i =i+1
    else:
        print('字符串长度不满足')
for k in sorted(l):
    print(k)

全部评论

相关推荐

我将逐步学习姐妹的语言艺术
一片特立独行的面包:这攻击力
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务