题解 | #整型数组合并#

整型数组合并

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

def sort2list(a,b): #合并,去重,排序后输出
    c = a + b
    c = list(set(c)) 
    for i in sorted(c):
        print(i,end='')

while True:
    try:
        n,a,m,b = input(),list(map(int,input().split())),input(),list(map(int,input().split()))
        sort2list(a,b)
    except:
        break

全部评论

相关推荐

07-07 12:25
门头沟学院 Java
程序员牛肉:你这个智邮公司做的就是那个乐山市税务系统的服务吗?
点赞 评论 收藏
分享
06-05 19:46
已编辑
武汉大学 后端
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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