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