您的位置:首页 > 其它

HDU 2039 - 三角形

2013-11-29 14:53 232 查看
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2039

#include <stdio.h>
int main(void)
{
int n;
double a, b, c;

scanf("%d", &n);
while (n-- && scanf("%lf%lf%lf", &a, &b, &c))
puts(a + b > c && a + c > b && b + c > a ? "YES" : "NO");

return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  HDU2039 ACM