#include<iostream>
using namespace std;
int main(){
int m,n;
while(cin>>m>>n){
cout<<"+";
int i=0;
for(;i<m;i++){
cout<<"-";
}
cout<<"+"<<endl;
for(i=0;i<n;i++){
cout<<"|";
for(int j=0;j<m;j++){
cout<<" ";
}
cout<<"|"<<endl;
}
cout<<"+";
i=0;
for(;i<m;i++){
cout<<"-";
}
cout<<"+"<<endl<<endl;
}
return 0;
}
杭电2052
最新推荐文章于 2021-02-21 14:32:06 发布