#d2710. 背包

背包

The Backpack

Problem Description

cc has a backpack of volume ww and nn items, each of volume aia_i.

cc wants to put some of the items into the backpack so that their total volume is at least half of the backpack's volume but does not exceed it, that is:

⌈w/2⌉≤sum≤w\lceil w/2 \rceil \le \mathit{sum} \le w

Help cc decide whether there is a valid combination of items. If so, output YES; otherwise output NO. cc will take at least one item.

Input Format

The first line gives the number of test cases TT.

For each test case:

  • The first line gives nn and ww: the number of items and the total volume of the backpack.
  • The second line gives a sequence a1,…,ana_1, \dots, a_n, the volumes of the items.

Output Format

For each test case, output YES if a valid combination exists, otherwise NO.

Sample Input

3
1 3
3
6 2
19 8 19 69 9 4
7 12
1 1 1 17 1 1 1

Sample Output

YES
NO
YES

Constraints

1≤T≤1041 \le T \le 10^4

∑n≤2×105\sum n \le 2 \times 10^5, 1≤w≤10181 \le w \le 10^{18}

0≤ai≤1090 \le a_i \le 10^9