No Idea!

  • + 0 comments

    why is everyone converting input to integer when string will also do the same

    input()
    a = input().split()
    h = set(input().split())
    s = set(input().split())
    print(sum(1 if x in h else -1 if x in s else 0 for x in a))