Problem Statement :
https://www.codechef.com/ABCS2016/problems/ABACUS05
Problem Solution :
https://www.codechef.com/ABCS2016/problems/ABACUS05
Problem Solution :
#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;
}
No comments:
Post a Comment