在简单的棋盘动态规划中,列出例题
一: 洛谷过河卒
接下来在写出过程,这里参考了洛谷的题解
下面贴出该题的代码:
#include<iostream>
#include<string.h>
#include<cmath>
using namespace std;
const int fx[] = {0, -2, -1, 1, 2, 2, 1, -1, -2};//这些是马所能够到达的点
const int fy[] = {0, 1, 2, 2, 1, -1, -2, -2, -1};
int bx,