Untitled
Anonymous
python
09/15/2022 4:56 PM
328 B
33
Indexable
# cook your dish here
t = input()
while (t>0):
n,k = input().split()
i =0
a[n]
for i in range(n):
a[i] = input()
b = a.sort
if ((b[0] + b[n-1]) <=k):
print("yeS")
else:
print("NO")
t= t-1
Editor is loading...