练38.4 金字塔

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

输入一个正整数nn,生成一个层数为nn的金字塔。详细图形请看样例。注意n=1n=1时就没有地板了。

输入格式

第一行一个整数nn(1n1001≤n≤100),表示层数。

输出格式

输出nn层金字塔,注意金字塔是完全对称的,在金字塔的右侧也需要输出与左侧相同的空格。

样例

10
         /\
        /__\
       /____\
      /______\
     /________\
    /__________\
   /____________\
  /______________\
 /________________\
/__________________\

加积分训练题单【周】

Not Claimed
Status
Done
Problem
27
Open Since
2026-5-15 0:00
Deadline
2026-6-30 23:59
Extension
120 hour(s)