Make it zero Solution Codechef - You are Given two numbers A and B you have to make both the numbers equal to zero in Only two operations. (NOTE:(NOTE: NumbersNumbers cancan bebe Negative).Negative).

   

Make it zero Solution Codechef 

SOLUTION

” CLICK HERE “


You are Given two numbers A and B you have to make both the numbers equal to zero in Only two operations. (NOTE: Numbers can be Negative).

Print "YES" without quotes if it is possible to make both the Numbers zero in two operations else print "NO".

You have to perform one operation on each number.if the number requires more than one operation to become zero the print "NO".

Input:

  • First line will contain T, number of testcases. Then the testcases follow.
  • Each testcase contains of a single line of input, two integers A,B.

Output:

For each testcase, output in a single line answer "YES" OR "NO".

Constraints

  • 1T1000
  • 109A,B109

Sample Input:

1
2 2

Sample Output:

YES

Reactions