Set .union() Operation

  • + 0 comments

    n1 = int(input()) n1 = set(input().split())

    n2 = int(input()) n2 = set(input().split())

    print(len(n1.union(n2)))