[BOJ 13015] 별 찍기 - 23

View as PDF

Submit solution

Points: 2
Time limit: 2.0s
Memory limit: 512M

Problem type
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

예제를 보고 규칙을 유추한 뒤에 별을 찍어 보세요.

입력 형식

첫째 줄에 N(2 ≤ N ≤ 100)이 주어진다.

출력 형식

규칙대로 별을 출력한다.

예제 입력 1

2

예제 출력 1

** **
 ***
** **

예제 입력 2

5

예제 출력 2

*****       *****
 *   *     *   *
  *   *   *   *
   *   * *   *
    *   *   *
   *   * *   *
  *   *   *   *
 *   *     *   *
*****       *****

Comments

There are no comments at the moment.