Symmetric Difference

  • + 0 comments
    1. M = input()
    2. N = set(map(int,input().split()))
    3. O = int(input())
    4. P = set(map(int,input().split()))
    5. not_common = N ^ P
    6. li = sorted(not_common)
    7. for i in li:
    8. print(i)