SP9040 TUG - Tug of War
Description
We want to pick a certain number of people from a group of N people and make them play a game of tug of war!
Then, we would like to split these people into two teams.
Afterwards, an intense game of tug of war would start.
However, when the strength of each team is not equivalent, the game is not very fun. A team's strength is the sum of the strengths of the people in the team.
Since you want the game that is fun, it is necessary to determine if it is possible to pick some people and split them into two teams such that the two teams' strengths are equal.
Input Format
The input consists of a number of test cases.
The first line is the number of test case, T. (1
Output Format
For each test case, output "YES" if it is possible to pick some people from the group and separate into two teams of equal strengths. If not, output "NO". Refer to the sample test cases for further clarifications.