1V1 Wrong problem

Problem

You are about to visit a movie with your AA friends.
When you reach the theatre, you find out that only BB tickets are available. Note that 1 ticket can be used only by 1 person.
Will you and your friends be able to watch the movie together?

Input Format

  • The first line of input will contain a single integer TT, denoting the number of test cases.
  • Each test case consists of a single line containing two space-separated integers A, BA,B.

Output Format

For each test case, print on a new line YES you can watch the movie with your AA friends and NO otherwise.

You may print each character of the string in either uppercase or lowercase (for example, the strings yEs, yes, Yes, and YES will all be treated as identical).

Constraints

  • 1 \leq T \leq 1001≤T≤100
  • 1 \leq A, B \leq 1001≤A,B≤100

Sample 1:

Input

Output

2 4 8 4 3

YES NO


My code

/* package codechef; // don’t place package name! */

import java.util.;
import java.lang.
;
import java.io.*;

/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();

	for(int i=0;i<t;i++){
	    int n=sc.nextInt();
	    int k=sc.nextInt();
	    
	    if(n > k)
	      System.out.println("NO");
	    else
	      System.out.println("YES");
	}
}

}


This having Wrong Answer But it is Right

You Should have to add loop for test cases as mentioned in the problem statement
The above code will give right output.