#T593. 画矩形
画矩形
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 lines and no more than 10 lines, 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 consists of one line with four parameters: the first two are integers representing the height and width of the rectangle (height no less than 3 lines and no more than 10 lines, 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
@@@@@@@
@ @
@ @
@ @
@ @
@ @
@@@@@@@
翻译结果
CodesOnline
(注:根据提供的简短内容"CodesOnline",这是一个专有名词或品牌名称,通常保持原样不翻译。因此直接保留英文形式。)