You are viewing a single comment's thread. Return to all comments →
n=int(input()) n_space=set(map(int,input().split())) b=int(input()) b_space=set(map(int,input().split())) total=[k for k,v in enumerate(n_space.union(b_space),1)] print(total[-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 →