摘要:
第一个A*,纪念下。A*要保证最短路一定要估价函数小于等于实际值,越接近越好估价函数取Manhattan距离除以二。//Rey#include#include#include#includeusing namespace std;const int N = 8;bool C[N][N];struct... 阅读全文
摘要:
这题思路就普通的BFS加上一个维度朝向,主要是要注意输入,输出,以及细节的处理#include#include#include#includeusing namespace std;const int MAX = 9+1;const int DIR = 4;const int TURN = 3;bo... 阅读全文