No Idea!

  • + 0 comments
    n, m= input().split()
    arr= input().split()
    A= set(input().split())
    B= set(input().split())
    
    Score_A= len([element for element in arr if element in A])
    Score_B= len([element for element in arr if element in B])
    
    total_happiness= Score_A - Score_B
    print(total_happiness)