题解 | #求最小公倍数#

单词倒排

http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836

while True:
    try:
        string = input()
        for i in string:
            if i in ['$','*','!','#']:
                string = string.replace(i,' ')
            else:
                continue 
        list1 = string.strip().split()
        list2 = []
        for i in list1:
            list2.insert(0,i)
        print(' '.join(list2))
    except:
        break 
全部评论

相关推荐

陆续:不可思议 竟然没那就话 那就我来吧 :你是我在牛客见到的最美的女孩
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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