Help me in solving TWODISH problem

My issue

I dont know , why my code not work, please rectify this code…

My code

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

int main() {
	int t;
	cin >>t;
	while(t--){
	    int n,a,b,c;
	   // int e = a+c;
	   // int d = min(b,e);
	    if(b>=n && a+c>=n){
	        cout << "Yes" << endl;
	    }
	    else{
	        cout << "No" << endl;
	    }
	    
	}
	return 0;
}

Learning course: Level up from 1* to 2*
Problem Link: CodeChef: Practical coding for everyone

@jayambe7
plzz refer the following c++ code for better understanding

#include<bits/stdc++.h>
using namespace std;
 
int main(){
    int t;  cin>>t;
    while(t--){
        int n,a,b,c;
        cin>>n>>a>>b>>c;
        if(b>=n && a+c>=n){
            cout<<"YES\n";
        }
        else{
            cout<<"NO\n";
        }
    }
    return 0;
}