hhh
2025-05-21 20:29:09
发布于:四川
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,d=0,w=0,l=0;
char c;
cin>>n;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
cin>>c;
if(c=='W')
{
w++;
}
else if(c=='L')
{
l++;
}
else if(c=='D')
{
d++;
}
}
}
if(w!=l||d%2!=0)
{
cout<<"incorrect";
}
else
{
cout<<"correct";
}
return 0;
}
这里空空如也
有帮助,赞一个