标签:nba scanf 输出 接下来 row NPU 需要 header 象棋
1 #include<stdio.h> 2 #include<math.h> 3 using namespace std; 4 int n; 5 int x,y,u,v; 6 int main() 7 { 8 freopen("chess.in","r",stdin); 9 freopen("chess.out","w",stdout); 10 scanf("%d",&n); 11 for(int i=1;i<=n;i++){ 12 scanf("%d%d%d%d",&x,&y,&u,&v); 13 if(abs(x-u)%2==abs(y-v)%2){ 14 printf("Yes\n"); 15 }else{ 16 printf("No\n"); 17 } 18 } 19 20 }
标签:nba scanf 输出 接下来 row NPU 需要 header 象棋
原文地址:https://www.cnblogs.com/anbujingying/p/11327118.html