@[shizobo605](/user/1420447)
求关
```cpp
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,f;
char c;
cin>>a>>b>>c>>f;
int s[a][b];
if (f==1){//写反了
for (int i=1;i<=a;i++){//从1开始
for (int j=1;j<=b;j++){
cout<<c;
}
cout<<endl;
}
}
else {
for(int i=0;i<b;i++)cout<<c;
cout<<endl;
for(int i=0;i<a-2;i++){
cout<<c;
for(int j=0;j<b-2;j++)cout<<' ';
cout<<c<<endl;
}
for(int i=0;i<b;i++)cout<<c;
}
return 0;
}
```
by Yxy7952 @ 2024-09-19 22:38:10