标签:
1 #include<stdio.h>//完全覆盖(328) 2 int main() 3 { 4 int x,a,b,m,n,p,q; 5 scanf("%d",&x); 6 while(x--){ 7 scanf("%d%d",&a,&b); 8 if(a*b%2==0){ 9 scanf("%d%d%d%d",&m,&n,&p,&q); 10 if((m+n)%2==0&&(p+q)%2==0||(m+n)%2!=0&&(p+q)%2!=0)printf("NO\n"); 11 else printf("YES\n"); 12 } 13 else printf("NO\n"); 14 } 15 return 0; 16 }
标签:
原文地址:http://www.cnblogs.com/minimalism/p/4537611.html