这道题似乎只有白方可以立刻白吃黑方一子才能赢......
AC代码:
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
while(n--){
char k;
int a,b,c,d,e,f;
cin>>k;
cin>>a>>b>>c>>d>>e>>f;
if(b==c-1&&d==e-1)cout<<"No\n";
if(k=='W'&&((b==c-1&&a!=b-1)||(d==e-1&&e!=f-1)))cout<<"Yes\n";
else cout<<"No\n";
}
}