Run ID:160603

提交时间:2026-09-24 19:08:07

#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int h; cin >> h; for(int k = 0; k < h; k++) { for(int s = 0; s < 2*(h - 1 - k); s++) { cout << ' '; } for(int star = 0; star < h + 2*k; star++) { cout << '*'; } cout << '\n'; } return 0; }