Set .intersection() Operation

  • + 0 comments
    _ = input()
    a = set(map(int, input().split()))
    _ = input()
    b = set(map(int, input().split()))
    
    print(len(a&b))