Set .union() Operation

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    n1 = int(input())
    set1 = set(map(int,input().split()))
    n2 = int(input())
    set2 = set(map(int,input().split()))
    print(len(set1.union(set2)))