You are viewing a single comment's thread. Return to all comments →
int(input())
M = set(map(int,input().split()))
N = set(map(int,input().split()))
sor = sorted(M^N)
for i in sor:
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 →
int(input())
M = set(map(int,input().split()))
int(input())
N = set(map(int,input().split()))
sor = sorted(M^N)
for i in sor: