Football Cup Codechef Solution | May CHALLENGE


Football Cup Codechef Solution

It is the final day of La Liga. Chef 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 XX and YY respectively, determine whether Chef will like the match or not.

Input Format

  • The first line of input will contain a single integer TT, denoting the number of test cases. The description of TT test cases follows.
  • Each test case consists of a single line of input containing two space-separated integers XX and YY — the goals scored by each team.

Output Format

For each test case, output YESYES if Chef will like the match, else output NONO.

You may print each character of the string in uppercase or lowercase (for example, the strings YeSYeS, yEsyEs, yesyes and YESYES will all be treated as identical).


  • 1≤T≤1001≤T≤100
  • 0≤X,Y≤90≤X,Y≤9

Sample Input 1 

1 1
0 1
0 0
2 2

Sample Output 1 



Test case 11: It is a draw in which both teams have scored a goal, Chef will like this match.

Test case 22: The game is not a draw. Hence, Chef will not like this match.

Test case 33: Neither team scored a goal, so Chef will not like this match.

Test case 44: It is a draw in which both teams scored 22 goals each. Chef will like this match.

Football Cup Codechef  SOLUTION

Download Code
login to google play console, youtube video search by image, how to add a google account, which are the google apps, what is the google app, how to add a new google account, all the google apps, which service is the part of google, adsetting google, google data studio, google DNS, GCP console, bigquery, google studio, google api console, google app engine, anthos, google apis, google public DNS, google audio, google launcher, gcloud console, google compute engine, google webmaster console, google logged-in devices, gdrive unlimited,google console tools,google studio login,my google voice,hey google service,find similar images google, my google forms, www google com bd search, search using images in google,google image search scan,google sea console,website console google, google sound, gdrive storage for students, google site console, google console login, webmaster console, searc h console, google server down, google backup login, photo finder google, google products and services, google console tool, google image check, google cloud search is used for, google dashboard studio, google voice and audio activity,gcp dashboards, google services down, google go app, google dns down, google image identifier,check picture on google,google new launcher,google image finder online,image check google google google go, image finder on google, finding images on google, photo find google, find a picture in google, find the photo on google, picture find google, image find on google, find with photo google, image finder google online, google find with image, photo finder in google, google find image search, search using image in google, search on google with image, google server down today, google server down news

Read More Post Here

Leave a Comment

Your email address will not be published. Required fields are marked *