-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFOOTCUP.java
More file actions
30 lines (27 loc) · 854 Bytes
/
FOOTCUP.java
File metadata and controls
30 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* 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.. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t-->0){
int x=sc.nextInt();
int y=sc.nextInt();
if (x==y && x>0){
System.out.println("yes");
}else{
System.out.println("no");
}
}
// your code goes here
}
}