You are viewing a single comment's thread. Return to all comments →
m=int(input()) a=list(map(int,input().split())) a=set(a) n=int(input()) b=list(map(int,input().split())) b=set(b) c=a.intersection(b) d=a.union(b) e=d.difference(c) e=sorted(e) for i in range(len(e)): print(e[i],end='\n')
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 →