Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77668 sh25_wuyy 画矩形 C++ 通过 0 MS 252 KB 332 2025-12-26 14:37:47

Tests(2/2):


#include<iostream> using namespace std; int main(){ int a,h; char c; bool b; cin>>h>>a>>c>>b; for(int i=1;i<=h;i++){ for(int j=1;j<=a;j++){ if(b==0){ if(i==1||i==h||j==1||j==a) cout<<c; else cout<<" "; }else cout<<c; } cout<<endl; } return 0; }


测评信息: