Problem Code: CM164364

Why this showing runtime error?

type or paste code here
T = int(input())
for i in range(T):
    n, x = map(int, input().split(' '))
    arr = list(map(int, input().split(' ')))
    allowed = n-x
    set1=set(arr)
    total= len(set1)
    if total>=allowed:
        print(allowed)
    elif allowed>total:
        print(total)

@all the nobody replying? :pray:

link the problem statement and your submission please. I don’t know what is wrong, I assume this is python3? Do you really have a line that reads

type or paste code here

instead of

#type or paste code here

^this is how you mark comments