You are viewing a single comment's thread. Return to all comments →
M = int(input()) M_values = set(map(int, input().split())) N = int(input()) N_values = set(map(int, input().split())) combined_diff = sorted(M_values.difference(N_values).union(N_values.difference(M_values))) for v in combined_diff: print(v)
Seems like cookies are disabled on this browser, please enable them to open this website
Symmetric Difference
You are viewing a single comment's thread. Return to all comments →