#2068. C++-GESP 2023-09认证二级-选择题14(拓展)

C++-GESP 2023-09认证二级-选择题14(拓展)

Background

Description

image

image

Format

Input

Output

Samples

9
1
              1 2 1
            1 2 3 2 1
          1 2 3 4 3 2 1
        1 2 3 4 5 4 3 2 1
      1 2 3 4 5 6 5 4 3 2 1
    1 2 3 4 5 6 7 6 5 4 3 2 1
  1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1

Limitation

1s, 1024KiB for each test case.