雕塑家的任务是为格陵兰新博物馆创建冰柱雕塑。老板已给他指定了规格,该规格由两个数字组成:[s,m]或尺寸和熔体。大小必须为奇数。他得到了一些冰柱的照片:
vvvvv [5, 0]
vvv
v
vvvvvvv [7, 0]
vvvvv
vvv
v
vvvvvvv [7, 2]
vvvvv
vvvvvvv [7, 3]
vvv [3, 1]
他需要一个帮助画画的程序。允许使用任何语言。程序需要接受S和M,任何可接受的输入方法。然后,您必须打印出它的ascii艺术表示。
S是v
第一层上有多少个。M是从底部切出多少层。
这是代码高尔夫球,因此通常情况下,此比赛是基于字节的。空白不计入字节计数。最少字节获胜。
编辑: 您将永远不会获得不画任何数字的一组数字,例如[5,3]。检查代码不但是需要。
您说空格确实很重要,但是在示例中某些行的末尾有空格。可以吗
—
路易斯·门多