Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
430973 许舒睿 【C3-1】画矩形 C++ 通过 100 3 MS 240 KB 258 2026-03-06 20:12:45

Tests(2/2):


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


测评信息: