标签:
题目链接:
Time Limit: 2000/1000 MS (Java/Others)
Memory Limit: 262144/262144 K (Java/Others)
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; long long a[5]; int main() { int t; scanf("%d",&t); while(t--) { for(int i=0;i<4;i++) { cin>>a[i]; } sort(a,a+4); if(a[0]==0)cout<<"No"<<endl; else { if(a[3]-a[0]-a[1]<a[2])cout<<"Yes"<<"\n"; else cout<<"No"<<"\n"; } } return 0; }
标签:
原文地址:http://www.cnblogs.com/zhangchengc919/p/5348409.html