模拟。
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
int N = 0;
char c;
cin >> N >> c;
for (int i = 0; i < N; i++)
cout << c;
cout << endl;
for (int i = 0; i < (int(N*0.5+0.5))-2; i++)
{
cout << c;
for (int j = 0; j < N-2; j ++)
cout << " ";
cout << c;
cout << endl;
}
for (int i = 0; i < N; i++)
cout << c;
cout << endl;
return 0;
}