Picture
Total Submission(s): 26901 Accepted Submission(s): 13583
after each case, you should a blank line.
3 2
+---+ | | | | +---+
#include <stdio.h>
int main()
{
int w,h,i,j;
while (scanf("%d%d",&w,&h)!=EOF)
{
printf ("+");
for (i=0;i<w;i++)
printf("-");
printf ("+\n");
for (i=0;i<h;i++)
{
printf ("|");
for (j=0;j<w;j++)
printf (" ");
printf ("|\n");
}
printf ("+");
for (i=0;i<w;i++)
printf("-");
printf ("+\n");
printf ("\n");
}
return 0;
}
185



被折叠的 条评论
为什么被折叠?



