I want to ask that why my code output is TLE?

code is
include <bits/stdc++.h>
using namespace std;

define vll vector
define ull unsigned long long
define ll long long
define f(i,n) for(i=0;i<n;++i)
define fo(i,a,b) for(i=a;i<b;++i)
define fob(i,a,b) for(i=a;i>=b;–i)
define deb(x) cout<<#x<<“=”<<x<<endl;
define deb2(x,y) cout<<#x<<“=”<<x<<“,”<<#y<<“=”<<y<<endl;
define pb push_back
define mp make_pair
define ft first
define sc second
define all(x) x.begin(),x.end()
define endl ‘\n’

void solve(){
ll n,x,y,i;
cin>>n>>x>>y;
bool cat=false;
f(i,n) {
if(x>=2*(n-i) || (x==n-i && y>=3*(n-i))) {
cat=true;
}
else {
x-=2;
}
}
if(cat==true) cout<<“YES”<<endl;
else cout<<“NO”<<endl;
}

int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t=1,k=0;
cin>>t;
while(t–){
solve();
}
return 0;
}

@anon73972057
n is upto 10^8 . so looping it through will give u tle .
U have to think of some another approach.

@dpcoder_007
Thanks