轻松拿下
查看原帖
轻松拿下
1580108
xiaoguo0210楼主2024/12/18 21:05

(送给蒟蒻)

#include <iostream>
using namespace std;
int main()
{
    int a,b,f;
    char c;
    cin>>a>>b>>c>>f;
    for(int s=0;s<b;s++) cout<<c;
    cout<<endl;
    for(int i=0;i<a-2;i++)
    {
        cout<<c;
        for(int i=0;i<b-2;i++)
        {
            cout<<(f ? c : ' ');
        }
        cout<<c<<endl;
    }
    for(int w=0;w<b;w++) cout<<c;
}
2024/12/18 21:05
加载中...