Symmetric Difference

  • + 0 comments
    M = int(input())
    a = set(map(int, input().split()))
    N = int(input())
    b = set(map(int, input().split()))
    
    sorted = sorted(a ^ b)
    
    for i in sorted:
        print(i)