Symmetric Difference

  • + 0 comments

    m = int(input())

    a = set(map(int, input().split()[:m]))

    n = int(input())

    b = set(map(int, input().split()[:n]))

    result = a ^ b

    for item in sorted(result):

    print(item)