You are viewing a single comment's thread. Return to all comments →
n, set_n = int(input()), set(map(int, input().split())) b, set_b = int(input()), set(map(int, input().split())) n_or_b = set_n.symmetric_difference(set_b) print(len(n_or_b))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .symmetric_difference() Operation
You are viewing a single comment's thread. Return to all comments →