满头雾

P2615 [NOIP2015 提高组] 神奇的幻方

这题填幻方,让我想到了~~小学~~奥数题
by wlxs2006 @ 2020-06-03 09:51:18


@[wlxs2006](/user/242405) 你见过像lz这样看不懂题还要发个贴来发牢骚的嘛……而且我感觉我说的也没错吧
by FZzzz @ 2020-06-03 09:51:22


是没错,但是。。。
by wlxs2006 @ 2020-06-03 09:51:44


但是不能欺负~~我们这些菜鸡~~
by wlxs2006 @ 2020-06-03 09:52:11


他那个代码实在~~太丑~~,本人如果给一个。。。 ```cpp #include<iostream> #include<cstring> using namespace std; int a[41][41],n; void ins(int x,int y,int p){ a[x][y]=p; if(p>=n*n) return; if(x==1&&y==n){ ins(x+1,y,p+1); return; } if(x==1){ ins(n,y+1,p+1); return; } if(y==n){ ins(x-1,1,p+1); return; } if(a[x-1][y+1]>0){ ins(x+1,y,p+1); } else ins(x-1,y+1,p+1); } int main(){ memset(a,0,sizeof(a)); cin>>n; ins(1,(n+1)>>1,1); for(int i=1;i<=n;++i){ for(int j=1;j<n;++j) cout<<a[i][j]<<" "; cout<<a[i][n]<<endl; } return 0; } ```
by wlxs2006 @ 2020-06-03 09:53:31


所以你为什么抄题解? [Yours](https://www.luogu.com.cn/record/31912337) [第一篇](https://www.luogu.com.cn/problem/solution/P3802)
by _扬子江_ @ 2020-06-03 10:24:48


我们的帖子不是在谈P2615吗???
by wlxs2006 @ 2020-06-03 11:21:22


@[_扬子江_](/user/347670) 看上面那句
by wlxs2006 @ 2020-06-03 11:21:55


@[jiacheng090327](/user/247553) ???你有本事再说一遍?
by FZzzz @ 2020-06-03 11:22:17


@[FZzzz](/user/174045) 扬子江刚才说了什么,“你”指的是谁?
by wlxs2006 @ 2020-06-03 11:23:23


上一页 | 下一页