| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 80295 | sh25_wangtaojie | 写个“2” | C++ | 通过 | 0 MS | 256 KB | 347 | 2026-01-04 15:11:58 |
#include <bits/stdc++.h> using namespace std; int main( ) { int x; cin>>x; for(int i=1;i<=x;++i){ cout<<"*";} cout<<endl; for(int j=x-2;j>=1;--j){ for(int k=1;k<=j;++k){ cout<<" "; } cout<<"*"<<endl; } for(int l=1;l<=x;++l){ cout<<"*";} return 0; }