#include <stdio.h>void main()
{
int a[5], b[52], c[2], i, m;
scanf("%d", &m);
for (i = 0; i != m; ++i)
{
scanf("%d%d%d", &a[i], &b[i], &c[i]);
}
for (i = 0; i != m; ++i)
{
if(a[i]+b[i]>c[i]&&a[i]+c[i]>b[i]&&b[i]+c[i]>a[i]&&abs(a[i]-b[i])<c[i]&&abs(a[i]-c[i])<b[i]&&abs(b[i]-c[i])<a[i])
{
printf("YES\n");
}
else
{
printf("NO\n");
}
}
这个可以吗?