1878A problem codeforces
unknown
python
2 years ago
488 B
6
Indexable
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)
Editor is loading...