Symmetric Difference

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