Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75626 sh25_zhuwy 写个“2” C++ 通过 0 MS 248 KB 388 2025-12-08 18:52:01

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int m=n-2; for(int i=1;i<=n;i++) { cout<<"*"; } cout<<endl; for(int j=m;j>=1;j--) { for(int i=1;i<=j;i++) { cout<<" "; } cout<<"*"<<endl; } for(int i=1;i<=n;i++) { cout<<"*"; } return 0; }


测评信息: