杭电ACM 2052 Picture
来源:互联网 发布:烈火战神全套页游源码 编辑:程序博客网 时间:2024/04/29 16:14
Picture
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16038 Accepted Submission(s): 8303
Problem Description
Give you the width and height of the rectangle,darw it.
Input
Input contains a number of test cases.For each case ,there are two numbers n and m (0 < n,m < 75)indicate the width and height of the rectangle.Iuput ends of EOF.
Output
For each case,you should draw a rectangle with the width and height giving in the input.
after each case, you should a blank line.
after each case, you should a blank line.
Sample Input
3 2
Sample Output
+---+| || |+---+#include<stdio.h>int main(){int n,m,i,j;while(scanf("%d%d",&m,&n)!=EOF){printf("+");for(i=1;i<=m;i++)printf("-");printf("+\n");for(i=1;i<=n;i++){printf("|");for(j=1;j<=m;j++)printf(" ");printf("|\n");}printf("+");for(i=1;i<=m;i++)printf("-");printf("+\n");printf("\n");}return 0;}
0 0
- 杭电ACM 2052 Picture
- 杭电ACM 2052 Picture
- 杭电ACM—HDU-2052Picture
- 杭电 2052 Picture
- 【杭电】[2052]Picture
- 杭电2052 Picture
- 杭电2052-Picture
- 【杭电2052】Picture
- 【杭电-oj】-2052-Picture
- 【杭电oj206】Picture
- 杭电acm--2052
- 杭电 ACM HDU 1162 Eddy's picture (最短路 prim算法)
- HDU ACM 11 2052 Picture
- 武汉科技大学计算机学院菜鸟杯:Picture (杭电2052)
- 杭电1162 Eddy's picture
- 杭电Hdu 1162 Eddy's picture
- Eddy's picture 杭电oj 1162
- 杭电1162Eddy's picture
- HDU 1242 Rescue(营救)(优先队列+BFS)
- hdoj.2047 阿牛的EOF牛肉串 20140729
- html中使用js加载xml文件
- poj 2752
- [面试题]java中final finally finalized 的区别是什么?
- 杭电ACM 2052 Picture
- 数据挖掘工具weka使用
- 三种转换函数的用法
- IT小小鸟--摘记
- 有关类的问题
- 内核模块加载之虚拟内核空间
- struts2学习笔记(三) Action(上)
- Makefile
- 从零开始—一个数的阶乘(以c的思想渗透咖啡)