#2598. C++-GESP 2023-09认证二级-编程题01(小杨的X字矩阵)(拓展03-外围为+内围为-)

C++-GESP 2023-09认证二级-编程题01(小杨的X字矩阵)(拓展03-外围为+内围为-)

Background

Description

只形成外围为+内围为-(如输入5):

image

image

Format

Input

Output

Samples

5
+++++
+---+
+---+
+---+
+++++
7
+++++++
+-----+
+-----+
+-----+
+-----+
+-----+
+++++++

Limitation

1s, 1024KiB for each test case.