主页
题目
状态
排名
OI排名
统计
题解
请登录
常用链接
AOJ考试平台
老赵的Gitee代码
编译原理模拟考试平台
Java技术手册
FCC网站
菜鸟网
在线工具箱
字节豆包GPT
代码可视化
力扣网
牛客网
洛谷
杭电OJ
CodeForce
隐藏编译器
Problem J: Structured Program I - Print a Rectangle
上一题
正确率: $55.40\%$
下一题
Time Limit
$1$ 秒/Second(s)
Memory Limit
$512$ 兆字节/Megabyte(s)
提交总数
$1278$
正确数量
$708$
"
裁判形式
标准裁判/Standard Judge
我的状态
尚未尝试
难度
分类标签
STL
×
为本题添加算法分类(请不要超过5个)
当前分类(单击移除):
STL
单击选择分类:
Description
<p> Print a Rectangle </p> <p> Draw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'. </p>
Input
<p> The input consists of multiple datasets. Each dataset consists of two integers H and W separated by a single space. </p> <p> The input ends with two 0 (when both H and W are zero). </p>
Output
<p> For each dataset, print the rectangle made of H × W '#'. </p> <p> Print a blank line after each dataset. </p>
Sample Input
复制
3 4 5 6 2 2 0 0
Sample Output
复制
#### #### #### ###### ###### ###### ###### ###### ## ##
提示
1 ≤ H, W ≤ 300
AOJ
Please Login