#CCBCHBAHAI0000057. Array with Odd Sum (Array with Odd Sum)
Array with Odd Sum (Array with Odd Sum)
Array with Odd Sum (Array with Odd Sum)
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem
For each test case, an array of positive integers is given. In one operation choose distinct indices and assign
Any number of operations, including zero, may be performed. Determine whether an array with odd total sum can be obtained.
Input
The first line contains . Each test case contains and then integers .
Output
For each test case print YES if an odd-sum array can be obtained, otherwise print NO.
Subtask
Subtask 1 (20 points): , .
Subtask 2 (30 points): , .
Subtask 3 (50 points): , , , .
Example
Input
5
2
2 3
4
2 2 8 8
3
3 3 3
4
5 5 5 5
4
1 1 1 1
Output
YES
NO
YES
NO
NO
Explanation
The sample follows the definitions and rules above.