ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN 109 - Lab 11 2023 > задача:


14-Spr2-40. 50438 - Pattern with stars

CEN 109 - Lab 11 2023

Старт: 11.янв.2023 в 00:00:15
Финиш: 15.янв.2023 в 21:07:15
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (2)

Задачи турнира

• 50423 - Numbers square
• 50463 - Drawing a Triangle
• 50466 - Drawing Square From Stars
• 14-FallResit-10. 50537 - esreveR Tri...
• 14-Spr2-40. 50438 - Pattern wi...
• 15-PE-3. 50867 - Average of the Be...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 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
*****
** **
* * *
** **
*****
********
**    **
* *  * *
*  **  *
*  **  *
* *  * *
**    **
********

Для отправки решений необходимо выполнить вход.

www.contester.ru