H7

Make an Ascii box with the given dimensions.

Input: An array of two positive integers [a, b] with a<100, b<100

Output: An Ascii box with sides | and -, and corners o such that it encloses an empty width a, length b rectangle.

Examples:

[3, 4]
o---o
|   |
|   |
|   |
|   |
o---o
[1, 1]
o-o
| |
o-o
[6, 2]
o------o
|      |
|      |
o------o

Languages, by Score

Languages, by Name


Back to Hole List

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License