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