题解 | #整型数组合并#
整型数组合并
https://www.nowcoder.com/practice/c4f11ea2c886429faf91decfaf6a310b
while True:
try:
n = int(input())
list1 = list(map(int, input().split(' ')))
m = int(input())
list2 = list(map(int, input().split(' ')))
list3 = []
for i in list1:
if i not in list3:
list3.append(i)
for j in list2:
if j not in list3:
list3.append(j)
list3 = sorted(list3, key=lambda x: x)
list3 = [str(k) for k in list3]
result = ''.join(list3)
print(result)
except:
break
