Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Question by Erisa Terolli.
Pattern with stars
Draw a square in which only the sides and
diagonals are marked by stars as shown in the image.
Input specification
There will be one integer (n) which will determine the
size of the square
where 5 ≤ n ≤ 30.
Output specification
Draw a pattern as in the examples which is followed
by an endline char.
Sample Input I |
Sample Input II |
5 |
8 |
*****
** **
* * *
** **
*****
|
********
** **
* * * *
* ** *
* ** *
* * * *
** **
********
|
Для отправки решений необходимо выполнить вход.
|