CCC '01 J1 - Dressing Up


Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

Canadian Computing Competition: 2001 Stage 1, Junior #1

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.

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.

Input Specification

One line containing integer H. You may assume that all input data will be valid.

Sample Input 1

5

Sample Output 1

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

Sample Input 2

7

Sample Output 2

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

Comments

There are no comments at the moment.