Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
331590 | 小林老师 | 【C3-1】画矩形 | C++ | 通过 | 100 | 5 MS | 256 KB | 325 | 2025-07-12 10:11:47 |
#include<iostream> using namespace std; int main(){ int n,m; char f; bool t; cin>>n>>m>>f>>t; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ if(i==1 || i==n || j==1 || j==m){ cout<<f; } else{ if(!t) cout<<" "; else cout<<f; } } cout<<endl; } return 0; }