Symmetric Difference

  • + 0 comments

    M = int(input()) a = set(map(int, input().split()))

    N = int(input()) b = set(map(int, input().split()))

    value = a.difference(b) value.update(b.difference(a))

    for i in sorted(value): print(i)