#P1363A. Odd Selection
Odd Selection
Description
Shubham has an array of size , and wants to select exactly elements from it, such that their sum is odd. These elements do not have to be consecutive. The elements of the array are not guaranteed to be distinct.
Tell him whether he can do so.
The first line of the input contains a single integer — the number of test cases. The description of the test cases follows.
The first line of each test case contains two integers and — the length of the array and the number of elements you need to choose.
The next line of each test case contains integers — elements of the array.
For each test case, print "Yes" or "No" depending on whether it is possible to choose elements such that their sum is odd.
You may print every letter in any case you want.
Input
The first line of the input contains a single integer — the number of test cases. The description of the test cases follows.
The first line of each test case contains two integers and — the length of the array and the number of elements you need to choose.
The next line of each test case contains integers — elements of the array.
Output
For each test case, print "Yes" or "No" depending on whether it is possible to choose elements such that their sum is odd.
You may print every letter in any case you want.
Samples
Note
For st case: We must select element , and the sum is odd.
For nd case: We must select element , so overall sum is not odd.
For rd case: We can select element .
For th case: We must select both elements and — so overall sum is odd.
For th case: We must select all elements — but overall sum is not odd.