水一水,AC
#include<stdio.h>
#include<math.h>
int main()
{
5.    int t;
    scanf("%d",&t);
    while(t--)
    {
        double q,w,t;
10.        double a,b,c,d,e,f;
        scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f);
        q=sqrt((d-b)*(d-b)+(c-a)*(c-a));
        w=sqrt((f-d)*(f-d)+(e-c)*(e-c));
        t=sqrt((f-b)*(f-b)+(e-a)*(e-a));
15.        if(((w+q)>t)&&((w+t)>q)&&((t+q)>w))
            printf("Yes\n");
        else printf("No\n");
    }
    return 0;
20.}
© 2015 HUST ACMICPC TEAM. All Right Reserved.