2052 Picture

关键字: 代码分享 杭电100题

问题描述

Problem Description

Give you the width and height of the rectangle,darw it.

Input

Input contains a number of test cases.For each case ,there are two numbers n and m (0 < n,m < 75)indicate the width and height of the rectangle.Iuput ends of EOF.

Output

For each case,you should draw a rectangle with the width and height giving in the input.

after each case, you should a blank line.

Sample Input

3 2

Sample Output

+---+
|   |
|   |
+---+

问题分析

Problem Analyse

给你一个矩形的宽和长,把它画出来。

简单的模拟题。

Algorithm Analyse

这题的简单之处在于周围的4个'+'不在范围之内。

所以像1 1这样的数据也不用另外考虑了。

参考源码

redraiment使用Emacs Lisp批量迁移《HDU 2050-2059》