Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
41706 yanghaowen 写个“2” C++ 编译错误 0 MS 0 KB 366 2024-02-23 09:32:38

Tests(0/0):


#include<iostream> using namespace std; int main(){ intn; cin>>n; for(int i=1;i<=n;i++){ cout<<"*"; } cout<<endl; for(int i=2;i<=n-i;i++){ for(int j=1;j<=n-1;j++){ cout<<" "; } cout<<"*"; cout<<endl; } for(int i=1;i<=n;i++){ cout<<"*"; } return 0; }


测评信息: