#include<bits/stdc++.h>
using namespace std;
int main()
{
char c,e;
int n,flag=1;
string s[111];
cin>>c>>n;
getchar();
for(int i=0;i<n;i++)
{
getline(cin,s[i]);
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(s[i][j]!=s[n-i-1][n-j-1])
flag=0;
}
}
if(flag==1)
{
cout<<"bu yong dao le"<<endl;
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(s[n-i-1][n-j-1]!=' ')
cout<<c;
else
{
cout<<" ";
}
}
cout<<endl;
}
}
L1-054 福到了 (15 分)
最新推荐文章于 2023-02-15 14:10:16 发布