| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83072 | 陈俊洁 | 打印三角形 | C++ | Wrong Answer | 3 MS | 264 KB | 264 | 2024-07-14 09:07:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<=n;i++){ for(int j=1;j<=(n-i)/2;j++){ cout<<' '; } for(int k=1;k<=i;k++){ cout<<'*'; } for(int j=1;j<=(n-i)/2;j++){ cout<<' '; } cout<<endl; } }
------Input------
84
------Answer-----
* *** ***** ******* *********
------Your output-----
* ** *** **** *****