#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin>>N;
vector<vector<char>> city(N,vector<char>(N));
int Lx,Ly,Xx,Xy,Yx,Yy;
for (int i=0;i<N;++i) {
for (int j=0;j<N;++j) {
cin>>city[i][j];
if(city[i][j]=='L'){
Lx=i;
Ly=j;
} else if(city[i][j]=='X') {
Xx=i;
Xy=j;
} else if(city[i][j]=='Y') {
Yx=i;
Yy=j;
}
}
}
if((Lx==Xx&&Ly==Xy)||(Lx==Yx&&Ly==Yy)){
cout<<"基拉获胜"<<endl;
} else {
cout<<"L获胜"<<endl;
}
return 0;
}
对了一半qwq点击进入
U415765 デスノート 死亡 笔记