#Z14407. 画矩形
画矩形
Description
Draw a rectangle based on the given parameters. The input consists of four parameters: the first two are integers representing the height and width of the rectangle (height no less than 3 rows and no more than 10 rows, width no less than 5 columns and no more than 10 columns);
the third parameter is a character 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.
Input Format
Input one line containing four parameters: the first two are integers representing the height and width of the rectangle (height no less than 3 rows and no more than 10 rows, width no less than 5 columns and no more than 10 columns);
the third parameter is a character 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
@@@@@@@
@ @
@ @
@ @
@ @
@ @
@@@@@@@