| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160599 | Kevin | 输出梯形 | C++ | Wrong Answer | 1 MS | 268 KB | 256 | 2026-09-24 19:00:18 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int z=n; for(int i=n;i>=1;i--){ for(int j=2*i-2;j>=1;j--){ cout<<" "; } for(int j=1;j<=z;j++){ cout<<'*'; } cout<<endl; z+=2; } return 0; }
------Input------
1 2 3 4 5 6 7 8 9 10 20 50 100
------Answer-----
* ** **** *** ***** ******* **** ****** ******** ********** ***** ******* ********* *********** ************* ****** ******** ********** ************ ************** **************** ******* ********* *********** ************* *************** ***************** ******************* ******** ********** ************ ************** **********
------Your output-----
*