Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
434947 俞皓天 【C3-1】画矩形 C++ 通过 100 2 MS 240 KB 258 2026-04-03 19:15:28

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; }


测评信息: