您的任务是接受一个整数输入,并使用斜杠和反斜杠打印锯齿形图案。
- 整数输入确定每个曲折和曲折的长度,以及曲折和曲折的数量
- 模式始终从右到左开始
测试用例
4->
/
/
/
/
\
\
\
\
/
/
/
/
\
\
\
\
2->
/
/
\
\
0->
1->
/
8->
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
3
我们可以为每行输出一个数组/字符串列表吗?是否允许培训或引导换行符或空格?
—
毛茸茸的
只要模式不受影响,引导空格就可以吗?
—
Emigna