#T405. 画矩形

画矩形

Description

Draw a rectangle based on the given parameters.

Input Format

The input consists of one line with four parameters:

  • The first two parameters are integers, representing the height and width of the rectangle respectively (height is no less than 3 and no more than 10 lines, width is no less than 5 and no more than 10 columns).
  • The third parameter is a character, representing the symbol used to draw the rectangle.
  • The fourth parameter is either 1 or 0, where 0 represents a hollow rectangle and 1 represents a solid rectangle.

Output Format

Output the drawn rectangle.

7 7 @ 0
@@@@@@@
@                  @
@                  @
@                  @
@                  @
@                  @
@@@@@@@
## Source

CodesOnline

The translation maintains the original Markdown heading structure (## for H2 level) and simply presents "CodesOnline" in English as it appears to be a proper name or brand that does not require translation. The code block formatting is preserved exactly as in the source.