OJ-Problems-Source/HDOJ/2052_autoAC.cpp
2016-08-19 16:52:35 +08:00

30 lines
611 B
C++

#include <cstdio>
#include <iostream>
using namespace std;
int main ()
{
int c,k,i,j;
while (scanf("%d%d",&c,&k)!=EOF)
{
printf ("+");
for (i=1;i<=c;i++)
printf ("-");
printf ("+");
printf ("\n");
for (i=1;i<=k;i++)
{
printf("|");
for (j=1;j<=c;j++)
printf (" ");
printf("|");
printf ("\n");
}
printf ("+");
for (i=1;i<=c;i++)
printf ("-");
printf ("+");
printf ("\n\n");
}
return 0;
}