其他分享
首页 > 其他分享> > 牛客华为机试HJ80

牛客华为机试HJ80

作者:互联网

原题传送门

1. 问题描述

2. Solution

import sys

if sys.platform != "linux":
    sys.stdin = open("input/HJ80.txt")


def solve(m, m1, n, m2):
    full_list = list(set(m1 + m2))
    full_list.sort()
    [print(x, end="") for x in full_list]
    print()


while True:
    try:
        m, m1 = int(input().strip()), list(map(int, input().strip().split()))
        n, m2 = int(input().strip()), list(map(int, input().strip().split()))
        solve(m, m1, n, m2)
    except:
        break

标签:m2,int,strip,list,牛客,m1,机试,input,HJ80
来源: https://www.cnblogs.com/junstat/p/16177290.html