Run ID:160600
提交时间:2026-09-24 19:04:35
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin>>n; int z=n; for(int i=n;i>=1;i--){ for(int j=2*i-2;j>=1;j--){ cout<<" "; } for(int j=1;j<=z;j++){ cout<<'*'; } cout<<endl; z+=2; } return 0; }