Type: Default 1000ms 256MiB

菱形打印

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.

说明

输入一个整数n(n≤100),输出一个高度为2n12*n-1,由*号组成的菱形。

例如:

输入:5

输出:

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

输入格式

输入一个整数n(n≤100);

输出格式

高度为n的直角三角形。

4
   *
  ***
 *****
*******
 *****
  ***
   *

A班第四天测试

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