Total Submission(s): 19445 Accepted Submission(s): 10002
after each case, you should a blank line.
水题
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int n,m;
void print1 ( int n )
{
printf ( "+" );
for ( int i = 0 ; i < n ; i++ )
printf ( "-" );
printf ( "+\n" );
}
int main ( )
{
while ( ~scanf ( "%d%d" , &m, &n ) )
{
print1 ( m );
for ( int i = 0 ; i < n ; i++ )
{
printf ( "|" );
for ( int j = 0 ; j < m ; j++ )
printf ( " " );
printf ( "|\n" );
}
print1 ( m );
puts("");
}
}