Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
244 B
17
Indexable
Never
# 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