Symmetric Difference

  • + 0 comments
    m = input()
    a = set(map(int, input().split(" ")))
    n = input()
    b = set(map(int, input().split(" ")))
    print(*sorted(a.difference(b).union(b.difference(a))), sep="\n")