1
1 1
1 1
1 1 1 1 1 1 1
1 1
1 1
1
弓箭:(图如上)
程序很简单(MC的)
#include<bits/stdc++.h>
using namespace std;
int main(){
char a;
int n,m;
cin>>a>>n;
/*for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(i==n/2) cout<<a;
else if(j==1) cout<<a;
else if(j==i+1 and i<n/2) cout<<a;
else if(j+i==n and i>n/2 and i<n) cout<<a;
else cout<<" ";
}
cout<<endl;
}*/
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++){
if(i==n/2) cout<<a;
else if(j==2) cout<<a;
else if(j-i==2 and i<n/2) cout<<a;
else if(i+j==n+1 and i>n/2) cout<<a;
else cout<<" ";
}
cout<<endl;
}
return 0;
}
运行: