题解 | #整型数组合并#

整型数组合并

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

import sys
while True:
    try:
        n1 = int(input())
        L1 = list(map(int, input().split()))
        n2 = int(input())
        L2 = list(map(int, input().split()))
#         L = []
#         #相同的不加入
#         for c in L1:
#             if c not in L:
#                 L.append(c)
#         for c in L2:
#             if c not in L:
#                 L.append(c)
#         L.sort()
        print("".join(map(str,sorted(list(set(L1 + L2))))))

    except:
#         print(sys.exc_info())
        break














全部评论

相关推荐

07-02 22:46
门头沟学院 Java
码农索隆:hr:“管你投没投,先挂了再说”
点赞 评论 收藏
分享
这是什么操作什么意思,这公司我服了...
斯派克spark:意思是有比你更便宜的牛马了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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