Doubt in a problem

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();
while(t–>0){
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
//anna and
a=a-Math.min(a,b);
b=b-Math.min(a,b);
//bob and claudio
b=b-Math.min(b,c);
c=c-Math.min(b,c);
//anna and Claudio
a=a-Math.min(a,c);
c=c-Math.min(a,c);
if (a>0){
System.out.println(“YES”);
}
else{
System.out.println(“NO”);
}
}
}
}

This is not giving me correct answer only one test case is passing please someone explain me the logic building error in this it is a question of modt recent contests beginner level named TEKKEN

while(t–>0)

it is your 1st mistake, it will be
while(t–>0)
so correct it

1 Like