My issue
can i please know what is the error in my code
My code
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for(int i=0;i<T;i++) {
int P = sc.nextInt();
int H = sc.nextInt();
int A = H-P;
int B = Math.floorDiv(P,2);
if(A>B) {
System.out.println("0");
}
else {
System.out.println("1");
}
}
// your code goes here
}
}
Problem Link: Chef Wars - Return of the Jedi Practice Coding Problem