| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63010 | 冯纪尧 | 打印三角形 | C++ | Accepted | 5 MS | 268 KB | 254 | 2023-12-31 11:01:17 |
#include<iostream> #include<cstring> using namespace std; int main(){ int n; cin>>n; for(int j=1;j<=n;j++){ for(int i=1;i<=n-j;i++){ cout<<" "; } for(int i=1;i<=2*j-1;i++){ cout<<"*"; } cout<<endl; } }