当出差遇上大雾

当出差遇上大雾 题目 本题考察深度优先搜索DFS,C++代码如下: #include<bits/stdc++.h> const int inf=0x7f7f7f7f; //在int型中0x7f7f7f7f也就是无穷大 int d[50]; int a[][7] = { {0}, {0, 0, 2, 10, 5, 3, -1}, {0, -1, 0, 12, -1, -1,
相关文章
相关标签/搜索