EASY

# PREREQUISITES:

Math,Logical thinking.

# PROBLEM:

You are Given two numbers A and B you have to make both the numbers equal to zero in Only two operations.the oprations you can perform is addition and subtraction no other operation (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”.

# QUICK EXPLANATION:

The Answer for this question will be always “YES”. Let’s understand this in explanation section given below.

# EXPLANATION:

Just after thinking for some time and taking some testcases in mind you will find that for any testcase the answer will be always “YES”.

As mentioned above we can perform the addition and subtraction operation on numbers. so keeping this in mind let’s take a example and understand it.

Example:- 36
if we subtract 36 from 36 the we will get the answer zero that to in one operation so the answer is “YES”.

Example:- -40
if we add 40 to -40 we will get the answer zero that to in one operation so the answer for this one will be “YES”.

So after observing it we can find that we can make every number zero in one operation so the answer for every testcase will be always “YES”.

# SOLUTIONS:

Setter's Solution

#include
using namespace std;
#define ll long long int
int main() {
ll t;
cin>>t;
while(t–)
{
ll a,b;
cin>>a>>b;
cout<<“YES”<<“\n”;
}
return 0;
}

Tester's Solution

#include
using namespace std;
#define ll long long int
int main() {
ll t;
cin>>t;
while(t–)
{
ll a,b;
cin>>a>>b;
cout<<“YES”<<“\n”;
}
return 0;
}

Editorialist's Solution

#include
using namespace std;
#define ll long long int
int main() {