| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71653 | sh25_ganzy | 画矩形 | C++ | 编译错误 | 0 MS | 0 KB | 636 | 2025-10-26 18:09:12 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,d; char c; cin>>a>>b>>c>>d; if(d==0){ for(int i=0;i<b;i++){ cout<<c; } cout<<endl; for(int i=0;i<a-2;i++){ cout<<c; for(int j=0;j<b-2;j++){ cout<<" "; } cout<<c<<endl; } for(int i=0;i<b;i++){ cout<<c; } }else if(i==1){ for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cout<<c; } cout<<endl; } } return 0; }