题解 | #整型数组合并#

整型数组合并

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
全部评论

相关推荐

点赞 评论 收藏
分享
最喜欢秋天的火龙果很...:第一份工作一定要往大的去,工资低点没事。后面换工作会更好找,即使你去小公司,你也不可能不会换工作的。所以找大的去
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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