题解 | #整型数组合并#

整型数组合并

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

import sys

nn = 1
or_list = []
for i in sys.stdin:
    if nn%2 == 0:
        or_list.append(i.strip())
    nn += 1
mm = 0
while True:
    try:
        all_list = or_list[mm].split(" ") + or_list[mm+1].split(" ")
        all_set =list(set(map(int, all_list)))
        all_set.sort()
        print("".join(map(str,all_set)))
        mm += 2
    except Exception:
        break
全部评论

相关推荐

酷酷的喜马拉雅山:感觉这比一直在初筛不动的好多了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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