Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
21087 | 老师 | 星号等腰三角形 | C++ | Accepted | 100 | 0 MS | 248 KB | 248 | 2021-06-26 15:59:56 |
#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; // n=3 for(int i=1;i<=n;i++){ // 打空格 for(int j=1;j<=n-i;j++) cout<<" "; // 打* for(int j=1;j<=2*i-1;j++) cout<<"*"; cout<<endl; } return 0; }