HDOJ-2039

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int m,flag;
    float x1,x2,x3;
    while(cin>>m){
        while(m--){
            cin>>x1>>x2>>x3;
            flag = 0;
            if((x1+x2)>x3&&(x2+x3)>x1&&(x1+x3)>x2){
                        flag = 1;
                }
            if(flag == 1){
                cout<<"YES"<<endl;
            }
            else
                cout<<"NO"<<endl;
        }
        }
    return 0; 
 }

 

posted @ 2019-04-09 20:46  cola_cola  阅读(96)  评论(0编辑  收藏  举报