Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39053 yuzhengxun 画矩形 C++ 解答错误 1 MS 248 KB 472 2024-01-30 15:22:07

Tests(0/2):


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


测评信息: