第4章-29 找出不是两个数组共有的元素
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = []
for i in range(1, a[0] + 1):
for j in range(1, b[0] + 1):
if a[i] == b[j]:
c.append(a[i])
d = []
for i in range(1, a[0] + 1):
if a[i] not in c and a[i] not in d:
d.append(a[i])
for i in range(1, b[0] + 1):
if b[i] not in c and b[i] not in d:
d.append(b[i])
print(*d)