P20141 [CodeChef] CRAWA
普及
题目描述

Read problems statements in Mandarin Chinese and Russian.

Oh no! Chef’s robot from problem "Reach The Point" (RETPO) has broken up.
It's old oil tank has got leaked, it is leaking oil now.

The robot start doing the following weird moves. While moving it keeps leaving a trace of oil on the path it's been tracing.

Note that in a single step robot will move by one unit in the current direction it is moving.

Initially the robot is at position (0, 0).
In the beginning it goes 1 step to the East (i.e. In a single step, its x coordinate will increase by 1 unit.)
then 2 steps to the North, (i.e. In a single step, its y coordinate will increase by 1 unit.)
then 3 steps to the West, (i.e. In a single step, its x coordinate will decrease by 1 unit.)
then 4 steps to the South, (i.e. In a single step, its y coordinate will decrease by 1 unit.)
then 5 steps to the East,
and so on.

Thus each time the robot turns 90 degrees anti clockwise, and it will go one more step than before. Please view the following image to
understand the moves. The red line in the example shows the path traced by the robot having traces of oil on it.

Now chef wants to know whether the point (X, Y) will have traces of oil on it or not.

------ Input ------

The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.

For each test case, there is a single line containing two space-separated integers X and Y.

------ Output ------

For each test case, output a single line containing “YES” (without quotes) if robot will reach point (X, Y) and “NO” otherwise.

------ Constraints ------

$1 ≤ T ≤ 100000 = 10^{5}$
$-1000000000 ≤ X, Y ≤ 1000000000, i.e., -10^{9} ≤ X, Y ≤ 10^{9}$

----- Sample Input 1 ------
3
3 3
3 5
0 0
----- Sample Output 1 ------
YES
NO
YES
----- explanation 1 ------

The points (0, 0) and (3, 3) will be having trace of oil while point (3, 5) will not have any trace of oil because point (3, 5) does not lie on the trajectory of robot.

输入格式

见题面

输出格式

见题面

样例输入
3 3 3 3 5 0 0
样例输出
YES NO YES