Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
20654 孙浩楠 星号等腰三角形 C++ Accepted 100 0 MS 252 KB 234 2021-06-19 16:53:50

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n-i;j++){ cout<<" "; } for(int k=1;k<=2*i-1;k++){ cout<<"*"; } cout<<endl; } return 0; }


Judgement Protocol: