#include <bits/stdc++.h>
using namespace std;
char a[1050][1050];
int main() {
int n;
int b;
cin >> n;
b = n * 3 - 2;
for (int i = 1; i <= b; i++) {
a[n][2 * i - 1] = '*';
a[b][2 * i - 1] = '*';
a[i][b - i + 1] = '*';
a[i][b + i - 1] = '*';
a[n + i - 1][i] = '*';
a[n + i - 1][2 * b - i] = '*';
}
for (int i = 1; i <= 2 * b - 1; i++) {
for (int j = 1; j <= 2 * b - 1; j++) {
if (a[i][j] == 0)
cout << ' ';
else
cout << a[i][j];
}
cout << endl;
}
return 0;
}
04-12
1999
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
483
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-09
4099
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-16
289
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-16