P1002过河卒

#include using namespace std; int a[25][25]; long long b[25][25]; int n,m; void f(int x,int y) {     a[x][y]=1;     if(x-1>=0&&y-2>=0)         a[x-1][y-2]=1;     if(x-2>=0&&y+1<=m)         a[x-2][y+1]=1;     if(x-2>=0&&y-1>=0)         a[x-2][y-1]=1;     if(x+1<=n&&y+2<=m)         a[x+1][y+2]=1;     if(x-1>=0&&y+2<=m)         a[x-1][y+2]=1;     if(x+2<=n&&y-1>=0)         a[x+2][y-1]=1;     if(x+2<=n&&y+1<=m)         a[x+2][y+1]=1;     if(x+1<=n&&y-2>=0)        

P1002过河卒最先出现在Python成神之路

版权声明:
作者:Alex
链接:https://www.techfm.club/p/20478.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>