You are viewing a single comment's thread. Return to all comments →
p = int(input()) y = set(map(int, input().split())) t = int(input()) d = set(map(int, input().split())) print(len(y ^ d))
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 →
p = int(input()) y = set(map(int, input().split())) t = int(input()) d = set(map(int, input().split())) print(len(y ^ d))