Football Cup
It is the final day of a football league. A viewer has a certain criteria for assessing football matches. In particular, he only likes a match if:
-The match ends in a draw, and,
-At least one goal has been scored by either team.
Given the goals scored by both the teams as X and Y respectively, determine whether that viewer will like the match or not.
Input:-4
1 1
0 1
0 0
2 2
Input Description: The first line of input will contain A single integer T, denoting The number of test cases. The description of T test cases follows.
-each test case consists of A single line of input containing two space-separated integers X and Y — The goals scored by each team.
Output: YES
NO
NO
YES
Output Description: - For each test case, output YES if the viewer will like the match, else output NO.
- You may print each character of the string in uppercase or lowercase (for example, the strings YeS, yEs, yes and YES will all be treated as identical).
Constraints: 1<=T<=100
0<=X,Y<=9
Explanation: Test case 1: It is a draw in which both teams have scored a goal, viewer will like this match.
Test case 2: The game is not a draw. Hence, viewer will not like this match.
Test case 3: Neither team scored a goal, so viewer will not like this match.
Test case 4: It is a draw in which both teams scored 2 goals each. viewer will like this match.