Type: Default 1000ms 256MiB

练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
         /\
        /__\
       /____\
      /______\
     /________\
    /__________\
   /____________\
  /______________\
 /________________\
/__________________\

A班第六天测试

Not Attended
Status
Done
Rule
Ledo
Problem
11
Start at
2025-7-26 19:00
End at
2025-7-26 21:00
Duration
2 hour(s)
Host
Partic.
10