You are viewing a single comment's thread. Return to all comments →
M, m = int(input()), set(list(map(int,input().split()))) N, n = int(input()), set(list(map(int,input().split())))
for i in sorted(m.symmetric_difference(n)): print(i)
Seems like cookies are disabled on this browser, please enable them to open this website
Symmetric Difference
You are viewing a single comment's thread. Return to all comments →
M, m = int(input()), set(list(map(int,input().split()))) N, n = int(input()), set(list(map(int,input().split())))
for i in sorted(m.symmetric_difference(n)): print(i)