Challenge - #56 - Symmetric Difference
# Enter your code here. Read input from STDIN. Print output to STDOUT
M = int(input())
setM = set(map(int, input().split()))
N = int(input())
setN = set(map(int, input().split()))
result = setM.symmetric_difference(setN)
print(*sorted(result),sep="\n")
Comments
Post a Comment