Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
20795 | 张承志 | 星号等腰三角形 | C++ | Compile Error | 0 | 0 MS | 0 KB | 268 | 2021-06-20 11:56:50 |
#include<bits/stdc++.h> usning namespace std; int main(){ int n,i,j,k; cin>>n; for(i=1;i<=n;i++) { for(k=1;k<=n-i;k++) { cout<<" "; } for(j=1;j<=2*i-1;j++) { cout<<"*"; } cout<<endl; } rsturn 0; }