https://pintia.cn/problem-sets/994805260223102976/problems/994805285812551680 简单
#include <iostream>
using namespace std;
int main(){
int a, b;
char c;
cin >> a >> c; b = (a+1) / 2;
for(int i = 0; i < a; i++)
cout << c;
cout << endl;
for(int i = 0; i < b-2; i++){
cout << c;
for(int j = 0; j < a-2; j++)
cout << " ";
cout << c << endl;
}
for(int i = 0; i < a; i++)
cout << c;
return 0;
}