Help me in solving MONSTER1 problem

My issue

if((Y>X))
{
cout<<0<<endl;
}
else
{
cout<<1<<endl;
}

why this approch is not giving correct answer

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int T;
	cin>>T;
	
	while(T--)
	{
	    long long H,X,Y;
    	cin>>H>>X>>Y;
	    if((Y>X))
	    {
	        cout<<0<<endl;
	    }
	   else
	   {
	        cout<<1<<endl;
	   }
	  // cout << ( X > Y ? 1 : 0) << endl;
	}
	return 0;
}

Problem Link: CodeChef: Practical coding for everyone

@sachin0404
The correct logic would be if X>H the answer would be 1.
else the answer would be 0;

@dpcoder_007 not working

@sachin0404
Here u go

#include<iostream>
using namespace std;
int main() {
    
    int T;
    cin>> T;
    while(T--) {
        long long int H,X,Y;
        cin>>H>>X>>Y;
        if(X>Y) {
            cout<<"1"<<endl;
        }
        else {
            cout<<"0"<<endl;
        }
        
        
        
    }
    
    
    
}