DFS
文章平均质量分 84
-小小小小魔王-
小白上路ing……
展开
-
HDU1312——Red and Black (DFS)
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12907 Accepted Submission(s): 7983Problem DescriptionThere is a rectangular room...原创 2018-05-27 20:04:43 · 106 阅读 · 0 评论 -
HDU1241——Oil Deposits (DFS)
题目:The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdivides the land into nu...原创 2018-05-23 20:20:42 · 172 阅读 · 0 评论 -
DFS
转自:https://www.cnblogs.com/OctoptusLian/p/7429645.html void dfs(int x,int y,int step) { int tx,ty; int next[4][2]= {{-1,0},{1,0},{0,-1},{0,1}}; if(x==endx &&y==endy) { ...转载 2019-03-02 19:53:24 · 150 阅读 · 0 评论