题解 | #整型数组合并#

整型数组合并

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

s =set([])

n = int(input())

nums1 = list(map(int, input().split()))

n = int(input())

nums2 = list(map(int, input().split()))

nums = nums1 + nums2

s = set(nums)

res = sorted(list(s))

for i in res:
    print(i,end='')

全部评论

相关推荐

好兄弟陶德霍华德:感觉面试聊得好其实不是什么好消息。因为大概是你技术栈不够匹配,所以只能浅浅的都简单问了一层。如果感兴趣一直往深问的话一定会有答不出来的地方的
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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