#d2710. 背包
背包
The Backpack
Problem Description
cc has a backpack of volume and items, each of volume .
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:
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 .
For each test case:
- The first line gives and : the number of items and the total volume of the backpack.
- The second line gives a sequence , 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
,