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; 
} 

 

相关文章:

  • 2021-08-16
  • 2021-06-01
  • 2021-07-06
  • 2021-10-21
  • 2021-08-28
  • 2021-08-23
  • 2022-12-23
  • 2022-01-28
猜你喜欢
  • 2021-08-03
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-11-17
相关资源
相似解决方案