#G. C++-循环嵌套-输入一个正整数n(n<=5),输出数字组成的菱形(拓展07-函数)

    Type: Default 1000ms 256MiB

C++-循环嵌套-输入一个正整数n(n<=5),输出数字组成的菱形(拓展07-函数)

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.

Background

Description

使用函数来解决。

C++-循环嵌套-输入一个正整数n(n<=5),输出数字组成的菱形

image

Format

Input

Output

Samples

3
  1
 123
12345
 123
  1
4
   1
  123
 12345
1234567
 12345
  123
   1
5
    1
   123
  12345
 1234567
123456789
 1234567
  12345
   123
    1

Limitation

1s, 1024KiB for each test case.