You are viewing a single comment's thread. Return to all comments →
ll=[] for _ in range(2): n = int(input()) n_s = set(map(int,input().split())) ll.append(n_s) print(len(ll[0].union(ll[1])))
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 →