c++
2025-04-19 18:00:52
发布于:浙江
1阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n,m;
cin>>n>>m;
for(int i=1;i<=2n+1;i++){
for(int j=1;j<=2m+1;j++){
if(i2==1 && j21){
cout<<"+";
}
if(i*21 && j2==0){
cout<<"-";
}
if(i20 && j*21){
cout<<"|";
}
if(i2==0 && j2==0){
cout<<" ";
}
cout<<endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个