题解
2025-10-26 15:01:41
发布于:上海
0阅读
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(i%21 && j%21){
cout<<"+";
}
if(i%21 && j%20){
cout<<"-";
}
if(i%20 && j%21){
cout<<"|";
}
if(i%20 && j%20){
cout<<" ";
}
}
cout<<endl;
}
return 0;
}
这里空空如也







有帮助,赞一个