Problems
Write a program that will generate Square Designs like the ones below for any values of
Here is the output for
+-----------+ +-------+
I-X-X-X-X-X-I I-X-X-X-I
I-X-X-X-X-X-I I-X-X-X-I
I-X-X-X-X-X-I I-X-X-X-I
I-X-X-X-X-X-I +-------+
I-X-X-X-X-X-I
+-----------+This output contains no blank lines.
Input
A single line containing two integers,
Output
Several output lines that create the design as shown above.
Example
2 6
+-----+ +-------------+
I-X-X-I I-X-X-X-X-X-X-I
I-X-X-I I-X-X-X-X-X-X-I
+-----+ I-X-X-X-X-X-X-I
I-X-X-X-X-X-X-I
I-X-X-X-X-X-X-I
I-X-X-X-X-X-X-I
+-------------+
Source
USACO 2001 Spring Orange 2번