Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
174 | Benson | 19选班长 | C++ | Wrong Answer | 0 MS | 256 KB | 315 | 2022-07-21 10:55:01 |
# include<iostream> using namespace std; int main(){ int n,i,j; cin>>n; for(i=0;i<n;i++) { for(j=n-i-1;j>0;j--) { cout<<" "; } for(j=2*(i+1)-1;j>0;j--) { cout<<"*"; } cout<<endl; } return 0; }
------Input------
7 4 4 1 7 2 4 3 1 3 5 2 1 1 6 6 6 6 5 3 4 1
------Answer-----
1
------Your output-----
* *** ***** ******* ********* *********** *************