import java.io.*;
import java.util.*;
public class Q_2039 {
public static void main(String args[]){
Scanner in = new Scanner(new BufferedInputStream(System.in));
while(in.hasNext()){
int n = in.nextInt();
double a,b,c;
for(int i=0;i<n;i++){
a = in.nextDouble();
b = in.nextDouble();
c = in.nextDouble();
if(a+b>c && a+c>b && b+c>a && Math.abs(a-b)<c && Math.abs(a-c)<b && Math.abs(b-c)<a){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
}
}
注意边的数据类型不是int
HDU-2039-JAVA-判断三角形
最新推荐文章于 2021-02-20 19:21:03 发布