CF1622A.Construct a Rectangle

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Construct a Rectangle

There are three sticks with integer lengths l1,l2l_1, l_2 and l3l_3.

You are asked to break exactly one of them into two pieces in such a way that:

  • both pieces have positive (strictly greater than 00) integer length;
  • the total length of the pieces is equal to the original length of the stick;
  • it's possible to construct a rectangle from the resulting four sticks such that each stick is used as exactly one of its sides.

A square is also considered a rectangle.

Determine if it's possible to do that.

Input

The first line contains a single integer tt (1t1041 \le t \le 10^4) — the number of testcases.

The only line of each testcase contains three integers l1,l2,l3l_1, l_2, l_3 (1li1081 \le l_i \le 10^8) — the lengths of the sticks.

Output

For each testcase, print "YES" if it's possible to break one of the sticks into two pieces with positive integer length in such a way that it's possible to construct a rectangle from the resulting four sticks. Otherwise, print "NO".

You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes and YES are all recognized as a positive answer).

Note

In the first testcase, the first stick can be broken into parts of length 11 and 55. We can construct a rectangle with opposite sides of length 11 and 55.

In the second testcase, breaking the stick of length 22 can only result in sticks of lengths 1,1,2,51, 1, 2, 5, which can't be made into a rectangle. Breaking the stick of length 55 can produce results 2,32, 3 or 1,41, 4 but neither of them can't be put into a rectangle.

In the third testcase, the second stick can be broken into parts of length 22 and 22. The resulting rectangle has opposite sides 22 and 22 (which is a square).

In the fourth testcase, the third stick can be broken into parts of length 22 and 22. The resulting rectangle has opposite sides 22 and 55.

Samples

4
6 1 5
2 5 2
2 4 2
5 5 4
YES
NO
YES
YES

在线编程 IDE

建议全屏模式获得最佳体验