提交时间:2026-04-17 16:20:02
运行 ID: 316872
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i = 0; i < n; i++){ for(int j = 1; j <= i; j++) cout << ' '; for(int j = n; j > i; j--) cout << '*'; cout << endl; } return 0; }