Symmetric Difference

  • + 0 comments
    m = int(input())
    setM = set(map(int, input().split()))
    
    n = int(input())
    setN = set(map(int, input().split()))
    
    print(*sorted(setM ^ setN), sep="\n")