Help me in solving ODDSUMPAIR problem

My issue

show me logic of this

My code

#include <iostream>
using namespace std;

int main() {
   int t;
   cin>>n;
   while(t--){
       int A,B,C;
       cin>>A,B,C;
       int D=A+B;
       int E=A+C;
       int F=B+C;
       
       if(D%2!=0){
           cout<<"YES"<<endl;
       }
       
       else if(E%2!=0){
           cout<<"YES"<<endl;
       }
       
        else if(F%2!=0){
           cout<<"YES"<<endl;
       }
       else{
           cout<<"NO"<<endl;
       }
   } 
	return 0;
}

Problem Link: ODDSUMPAIR Problem - CodeChef

@dhruvsharma637
U have to scan B and C as well u only took input of A.