#include <iostream>
using namespace std;
int main()
{
int i,j,k,n,a[233][233];
cin>>n;
a[1][1] = 6;
a[1][2] = 4;
a[1][3] = 4;
a[1][4] = 6;
a[2][1] = 0;
a[2][2] = 4;
a[2][3] = 4;
a[2][4] = 0;
a[3][1] = 6;
a[3][2] = 4;
a[3][3] = 4;
a[3][4] = 6;
while(n--){
cin>>i>>j;
if(a[i][j])
{
cout<<"Win"<<endl;//or cout<<"Win\n"
cout<<a[i][j]<<endl;
}
else {
cout<<"Equal"<<endl;
cout<<0<<endl;
}
}
return 0;
}
代码的暴力美学
选择下一步,此时a[i][j]确定,顺序此时与答案无关只要有就行,答案只与a[i][j]有关