[BOJ 6929] Dressing Up
View as PDF
Submit solution
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text
Points:
1
Time limit:
1.0s
Memory limit:
128M
Problem type
Allowed languages
It is important to keep our computers safe and clean. Some people feel that computers should be well-dressed, also. For this question, you will write a program to print out a bow tie on the computer screen.</p>
Your program should take as input the height $H$ of the bow tie, where $H$ is an odd positive integer greater than or equal to 5. A bow tie with $H$ rows (and $2H$ columns) should then be printed using the pattern shown below in the sample output.
입력 형식
One line containing integer $H$. You may assume that all input data will be valid.
출력 형식
예제 입력 1
5
예제 출력 1
* *
*** ***
**********
*** ***
* *
예제 입력 2
7
예제 출력 2
* *
*** ***
***** *****
**************
***** *****
*** ***
* *
Comments