
2.1最基础的“穷竭搜索” 深度优先搜索
woniupengpeng
这个作者很懒,什么都没留下…
展开
-
POJ 3009 Curling 2.0 笔记
<span title="Description ">描述 在MM-21行星上,今年的奥运会后,卷曲越来越受欢迎。但规则有点不同于我们。游戏在冰上游戏板上进行,其上标记有方形网格。他们只使用一块石头。<span title="The purpose of the game is to lead the stone from the start to the goal with the原创 2016-12-04 21:39:56 · 300 阅读 · 0 评论 -
POJ 1979 Red and Black G++
<span title="Description ">描述 有一个矩形的房间,覆盖着方形瓷砖。每个瓷砖都是红色或黑色。一个人在一个黑瓦片站立。从瓷砖,他可以移动到四个相邻的瓷砖之一。<span title="But he can't move on red tiles, he can move only on black tiles. ">但他不能移动红砖,他只能移动黑色瓷砖。 <原创 2016-12-04 21:32:20 · 230 阅读 · 0 评论 -
POJ 2386 Lake Counting G++
#include using namespace std; char a[101][101]; int NUM1, NUM2; void dfs(int x,int y) { a[x][y]='.'; if(((x-1)>=0)&&(a[x-1][y]=='W'))//上 { dfs(x-1,y); } if(((x+1)<NUM1)&&(a[x+1][y]=='W'))//下原创 2017-09-01 12:19:12 · 262 阅读 · 0 评论