how could i optimize it
question link–https://www.codechef.com/MAY20B/problems/CHANDF
#include
#include<stdio.h>
#include
#include
#include<math.h>
#include<string.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--)
{
int x,y,z,maximum=0,l,r,i,cb,pos;
cin>>x>>y>>l>>r;
for(i=l;i<=r;i++)
{
cb=(x&i)*(y&i);
if(cb>maximum)
{
maximum=cb;
pos=i;
}
}
cout<<pos<<endl;
}
return 0;
}