Set .union() Operation

  • + 0 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])))