题解 | #整型数组合并#
整型数组合并
https://www.nowcoder.com/practice/c4f11ea2c886429faf91decfaf6a310b
''' a=(1,2,5) b=(-1,0,3,2) print(sorted(set(a+b))) #c=set(1 2 3 4) #print(c) ''' ''' while True: try: n_a=int(input()) a=input().split() n_b=int(input()) b=input().split() a1=[int(i) for i in a] b1=[int(i) for i in b] #print(a1,b1) # 字符型列表,影响排序 c=set(a1+b1) #print(c,type(c)) c1=sorted(c) #print(c1,type(c1)) print(''.join(map(str,c1))) except: break ''' while 1: try: a=int(input()) n1=input().split() b=int(input()) n2=input().split() n=map(str,sorted(map(int,set(n1+n2)))) #print(n) print(''.join(n)) #join 只能拼接字符 except: break