Run ID:156043

提交时间:2026-06-20 11:08:49

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