提交时间:2025-01-05 16:24:14
运行 ID: 308115
n,m=map(int,input().split()) l1=map(int,input().split()) l2=map(int,input().split()) a=set() b=set() for i in l1: a.add(i) for i in l2: b.add(i) c=a|b for i in c: print("%d " % i,end="")