No Idea!

  • + 0 comments

    n,m =map(int,input().split()) my_array =map(int,input().split()) my_a=set(map(int,input().split())) my_b=set(map(int,input().split()))

    def happiness_1(n,m,my_array,my_a,my_b): happiness=0 for num in my_array: if num in my_a: happiness += 1 elif num in my_b: happiness -= 1 return happiness

    print(happiness_1(n,m,my_array,my_a,my_b))