摘要: include using namespace std; int m, n, p, q, min_step = 99999; int map[20][20], visited[20][20]; void dfs(int x, int y, int step) { //到达终点 if (x == p 阅读全文
posted @ 2024-12-29 12:28 TP_003 阅读(28) 评论(0) 推荐(0)
摘要: include include include using namespace std; define V_NUM 5 bool visited[V_NUM]; int G[V_NUM][V_NUM]; queue Q; void visite(int v){ printf("%d",v); } v 阅读全文
posted @ 2024-12-29 12:26 TP_003 阅读(19) 评论(0) 推荐(0)