#include<iostream>
using namespace std;
int main(){
int n;
char ch;
cin>>n>>ch;
for(int i=0;i<n;i++){
cout<<ch;
}
cout<<endl;
for(int i=(n+1)/2-2;i>0;i--){
cout<<ch;
for(int j=n-2;j>0;j--){
cout<<' ';
}
cout<<ch<<endl;
}
for(int i=0;i<n;i++){
cout<<ch;
}
return 0;
}
PAT(Basic Level)_1036_跟奥巴马一起编程
最新推荐文章于 2021-07-11 00:15:27 发布