Why does the below code not pass test cases when integer datatype is used?
public class Main
{
public static void main(String[] args) throws IOException
{
try{
//Your Solve
Scanner in=new Scanner(System.in);
int t=in.nextInt();
while(t>0)
{
// //ps: this is the health of the monster.
// //for us to win the game, the monster's health points gotto be 0 or lesser.
//y represents gain of points by monster, x=loss by monster..;,
//ideally for us to win the monster's loss should be more ...otherwise we are losing, we wont defeat the bad guy.
long h = in.nextLong();
long x = in.nextLong();
long y = in.nextLong();
if (x>y)
System.out.println(1);
else
System.out.println(0);
t--;
}
}catch(Exception e){
return;
}
}
}