题解 | #整型数组合并#

整型数组合并

https://www.nowcoder.com/practice/c4f11ea2c886429faf91decfaf6a310b

res = []
while True:
    try:
        n = input()
        res.extend(list(map(int,input().split())))
    except:
        break
print(int("".join([str(i) for i in sorted(list(set(res)))])))

全部评论

相关推荐

11-14 16:15
已编辑
湖南工业大学 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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