TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P3470
  • Problem
  • P3470六边形
    Limits : Time Limit : 10000 MS   Memory Limit : 65536 KB
    Description

    给你一个正整数n,用“*”画出边长为n的六边形。
    “*”间以一个空格作为间隔,格式如样例所示!

    Input Format

    一个整数n(1<=n<=20)

    Output Format

    输出边长为n的六边形

    Sample Input 1


    6

    Sample Output 1

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

    Sample Input 2

    2

    Sample Output 2

      * * 
    * * * * 
      * *