Help with WATCHFB

import java.io.*;
class WATCHFB
{
public static void main(String[] args)throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int T=Integer.parseInt(br.readLine());
int i,A,B,N,ch,j,chold,Aold=0,Bold=0,prev,temp;
String s,inp[];
for(i=1;i<=T;i++)
{
N=Integer.parseInt(br.readLine());
ch=chold=prev=0;
for(j=1;j<=N;j++)
{
s=br.readLine();
inp=s.split(" ");
ch=Integer.parseInt(inp[0]);
A=Integer.parseInt(inp[1]);
B=Integer.parseInt(inp[2]);
if(A>B)
{
temp=A;
A=B;
B=temp;
}
if(j==1&&ch!=1&&A==B)
{
System.out.println(“YES”);prev=1;Aold=A;Bold=B;
}
else if(j==1&&ch!=1)
{
System.out.println(“NO”);prev=0;
}
else if(ch==1)
{
System.out.println(“YES”);prev=1;Aold=A;Bold=B;

            }
            else
            {
                if(A==B)
                {
                    System.out.println("YES");prev=1;Aold=A;Bold=B;
                }
                else
                {
                    if((A==Aold&&B==Bold)||(A==Aold&&B>Bold)||(B==Bold&&A<Bold)||(A>Aold&&B>Bold&&A<Bold))
                    {
                        System.out.println("YES");prev=1;Aold=A;Bold=B;
                    }
                    else
                    {
                        System.out.println("NO");prev=0;
                    }
                }
            }  
        }
    }
}

}

     can you tell me whats wrong with my code?It gives WA

September Lunchtime

Please edit the comment and instead provide a link to the code.