HDU 4224 Enumeration?

http://acm.hdu.edu.cn/showproblem.php?pid=4224

。。。对这题目无语了,本来是秒杀的题目就是让你读不懂。。。

View Code
#include <stdio.h>

#include <string.h>

#include <stdlib.h>



int main()

{

    int x1,y1,x2,y2,x3,y3;

    int t,nCase=1;

    scanf("%d",&t);

    while(t--)

    {

        scanf("%d%d%d%d%d%d",&x1,&y1,&x2,&y2,&x3,&y3);

        if((x1==y1&&x2==y2&&x3==y3)||(x1>y1&&x2<y2)||(x1<y1&&x2>y2)||(x1>y1&&x3<y3)||(x1<y1&&x3>y3)||(x2<y2&&x3>y3)||(x2>y2&&x3<y3))

            printf("Case %d: Yes\n",nCase++);

        else

            printf("Case %d: No\n",nCase++);

    }

    return 0; 

} 

 

你可能感兴趣的:(enumeration)