The first line contains the number of test cases T. Each of the next T lines holds one test case. A line starts with the number of required tiles N and the size M of the tiles the store sells, followed by the N integers S1,S2,…,SN that fix the sizes of the required tiles.
Limits
- 1≤T≤100
- 1≤N≤20
- 1≤2Sk≤M≤231−1