摘要:
1 #include 2 using namespace std; 3 int n,a[50][50]; 4 int main(){ 5 scanf("%d",&n); 6 int x,y; 7 x=1; 8 y=n/2+1; 9 a[x][y]=1; 10 for(int i=2;i<=n*n;i++){ 11 ... 阅读全文
摘要:
#include using namespace std; int n,na,nb; int mp[5][5]{{0,0,1,1,0},{1,0,0,1,0},{0,1,0,0,1},{0,0,1,0,1},{1,1,0,0,0}}; int vec[3][250],ans[3]; int main() { scanf("%d%d%d",&n,&na,&nb); for (in... 阅读全文