注意四舍五入
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<vector>
using namespace std;
int main()
{
double N;
char C;
while(cin>>N)
{
getchar();
C=getchar();
getchar();
for( int i=0; i<int(N/2+0.5); i++ )
{
for( int j=0; j<N; j++ )
{
if( i==0 || i==int(N/2+0.5)-1 )
cout<<C;
else if( j==0 || j==N-1 )
cout<<C;
else
cout<<' ';
}
cout<<endl;
}
}
return 0;
}