1878A problem codeforces

mail@pastecode.io avatar
unknown
python
7 months ago
488 B
2
Indexable
Never
no_of_testcases = int(input())
array = []
result = []

def check_array(k):
    for element in array:
        if array.count(element)>array.count(k):
            result.append("NO")
        else:
            result.append("YES")               


def  fun():
    for i in range(no_of_testcases):
        n,k = input().split()
        array = list(map(int,input().split()))
        check_array(k)


fun()
for each in result:
    print(each)