My issue
OUTPUT IS CORRECT STILL GETTING THE RESULT AS WRONG ANSWER
My code
import java.util.Scanner;
class Codechef {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int t = read.nextInt();
for (int i = 0; i < t; i++) {
int a = read.nextInt();
int b = read.nextInt();
// Check if a * 2 is greater than or equal to b
boolean canMakeEqual = a * 2 >= b;
// Use if-else to print "YES" or "NO"
if (canMakeEqual) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
}
Learning course: Placement preparation using Java
Problem Link: Practice problem - Alternate Additions Practice Problem in Placement preparation using Java - CodeChef