Help me in solving SCALENE problem

My issue

the solution for the given statement is correct but then also it is giving error for the test cases can anyone explain what is the real problem with the code…

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
    int t;
	cin>>t;
	for(int i=1;i<t;i++){
	    int A,B,C;
	    cin>>A>>B>>C;
	    if(A!=B && B!=C && A!=C){
	        cout<<"NO"<<endl;
	    }
	    else{
	        cout<<"YES"<<endl;
	    }
	}
	return 0;
}

Learning course: Basic Math using C++
Problem Link: CodeChef: Practical coding for everyone

@somyarajak1828
the test case loop will run from 1 to t .
so put <=t.