问题
给定一个正整数n
,其中n < 100
输出菱形图案,如下所示:
输入项 n=1
/\/\
\/\/
输入n=2
:
/\ /\
//\\/\/\//\\
\\//\/\/\\//
\/ \/
输入n=3
:
/\ /\
//\\ /\ /\ //\\
///\\\//\\/\/\//\\///\\\
\\\///\\//\/\/\\//\\\///
\\// \/ \/ \\//
\/ \/
输入n=4
:
/\ /\
//\\ /\ /\ //\\
///\\\ //\\ /\ /\ //\\ ///\\\
////\\\\///\\\//\\/\/\//\\///\\\////\\\\
\\\\////\\\///\\//\/\/\\//\\\///\\\\////
\\\/// \\// \/ \/ \\// \\\///
\\// \/ \/ \\//
\/ \/
等等。
规则
- 允许的程序和功能。
- 允许尾随空格。
- 没有
/
或\
允许的行上的前导空格。 - 允许尾随换行符。
- 以字节为单位的最短代码获胜
2
@carusocomputing您现在正在幻觉中……
—
Outgolfer的Erik
@dzaima到它的沙箱!
—
Magic Octopus Urn
@carusocomputing当然,但是首先我必须弄清楚它的发生原因和方式:p
—
dzaima