(╥╯﹏╰╥)ง光宗耀祖支撑着我去教室
# include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
// 前 n – 1 行 类似倒立的空心等腰三角形
// for (int x = 1; x <= n-1; x++)
// {
// for (int j = 1; j <=x+2;j++)
// cout << " ";
// cout << "*";
// for (int j = 1; j <=2*(n-x)-1; j++)
// cout << " ";
// cout << "*" << endl;
// }
for (int i = n; i >= 2; i--)
{
for (int j = 1; j <= 2 * n - i - 1; j++)
cout << " ";
cout << "*";
for (int j = 1; j <= 2 * i - 3; j++)
cout << " ";
cout << "*" << endl;
}