Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long int t;
unsigned long long a,b,c,d,e,temp;
cin>>t;
while(t--){
cin>>a>>b>>c>>d>>e;
temp=a+b+c+d;
if(temp<=e)
cout<<"YES\n";
else
cout<<"NO\n";
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.