mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
30 lines
611 B
C++
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;
|
||
|
}
|