DFS&&BFS
NPYAL_
这个作者很懒,什么都没留下…
展开
-
poj1562 Oil Deposits BFS
Oil DepositsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 12620 Accepted: 6887DescriptionThe GeoSurvComp geologic survey company is responsible for de原创 2014-08-18 17:19:25 · 390 阅读 · 0 评论 -
DFS&&BFS模板
//BFS/*#include #include #include #include using namespace std;struct node{ int x,y,ans;}q[500];char ma[16][16];//储存地图int vis[16][16];//标记访问过的点int n,m;int mv[4][2] = {{0,1},{1,0},{-1,0原创 2014-08-13 14:38:07 · 358 阅读 · 0 评论