You are viewing a single comment's thread. Return to all comments →
Python 3 code:
s=int(input()) s=set(map(int, input().split())) f=int(input()) f=set(map(int, input().split())) print(len(s|f))
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 →
Python 3 code:
s=int(input()) s=set(map(int, input().split())) f=int(input()) f=set(map(int, input().split())) print(len(s|f))