#include <bits/stdc+
2026-09-06 08:54:59
发布于:广东
5阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
for(int i=1;i<=a;i++){
for(int j=1;j<=a;j++){
if(i1&&j1||i1&&ja||ia&&j1||ia&&ja){
cout<<"+";
}
else if(i1||ia){
cout<<"-";
}
else if(j1||ja){
cout<<"|";
}
else{
cout<<"*";
}
}
cout<<endl;
}
return 0;
}
这里空空如也








有帮助,赞一个