#2593. C++-GESP 2023-09认证二级-编程题01(小杨的X字矩阵)(拓展02-左斜线)

C++-GESP 2023-09认证二级-编程题01(小杨的X字矩阵)(拓展02-左斜线)

Background

Description

只形成左斜线(如输入5,输入的N为奇数):

image

image

Format

Input

Output

Samples

5
----+
---+-
--+--
-+---
+----
10
--------+
-------+-
------+--
-----+---
----+----
---+-----
--+------
-+-------
+--------

Limitation

1s, 1024KiB for each test case.