1 条题解

  • 1
    @ 2026-5-20 18:53:27

    #include #include #include using namespace std;

    int main(){ int h,l,a; char ch; cin>>h>>l>>ch>>a; if(a0){ for(int i=1;i<=h;i++){ for(int j=1;j<=l;j++){ if(i1||ih){ cout<<ch; }else{ if(j1||jl){ cout<<ch; }else{ cout<<" "; } } } cout<<endl; } }else if(a1){ for(int i=1;i<=h;i++){ for(int j=1;j<=l;j++){ cout<<ch; } cout<<endl; } }

    return 0;
    

    }

    • 1

    信息

    ID
    414
    提交时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    8
    已通过
    4
    上传者