Set .union() Operation

  • + 0 comments
    n = int(input())
    e = set(map(int, input().split()))
    m = int(input())
    f = set(map(int, input().split()))
    print(len(e.union(f)))