Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
21109 | 杨竣周 | 星号等腰三角形 | C++ | Presentation Error | 0 | 0 MS | 248 KB | 213 | 2021-06-26 16:23:38 |
#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=i-1;j++) cout<<' '; for(int j=1;j<=i*2-1;j++) cout<<'*'; cout<<endl; } return 0; }