编写一个程序,为画框的肖像输入绘画的尺寸,消光宽度和画框宽度。程序应使用符号将图形输出X
为绘画,+
消光和#
框架。这些符号必须以空格分隔。只要输出在视觉上符合条件,尾随空格就可以。输入可以是0
。
输入:3 2 1 2(宽度,高度,遮罩宽度,框架宽度)
输出:
以文本形式:
# # # # # # # # #
# # # # # # # # #
# # + + + + + # #
# # + X X X + # #
# # + X X X + # #
# # + + + + + # #
# # # # # # # # #
# # # # # # # # #
获胜代码以尽可能少的字节完成条件。