
DFS(深度搜索)
文章平均质量分 81
idealistic
编程渣渣~~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【POJ1979】
Red and BlackTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere is a rectangular room, covered with square tiles. Each tile i原创 2016-07-28 11:37:32 · 290 阅读 · 0 评论 -
杭电2266 How Many Equations Can You Find
How Many Equations Can You FindTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionNow give you an string which only contains 0, 1原创 2016-10-07 11:52:04 · 631 阅读 · 0 评论 -
POJ3041-Asteroids
AsteroidsCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmitStatus DescriptionInputOutput原创 2016-10-28 15:25:44 · 220 阅读 · 0 评论 -
字符矩阵中是否存在环
B. Fox And Two Dotstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel is playing a mobile puzzle gam原创 2016-08-13 19:58:22 · 527 阅读 · 0 评论 -
dfs
老王修公园时间限制: 1 Sec 内存限制: 128 MB提交: 32 解决: 15[提交][状态][讨论版]题目描述刚刚在建筑大学毕业的老王来到JZ市工作。他接到任务要求把市区的空地全部修成公园。JZ市市区是一个N*M的矩形,老王拿到了该市的地图,现在判断共要修几处公园?注意:在一片空地上,它上下左右的位置是空地,则视为统一片空地。输入共有T组原创 2016-08-19 16:38:18 · 338 阅读 · 0 评论 -
1894: 985的方格难题
1894: 985的方格难题Time Limit: 1 Sec Memory Limit:128 MBSubmit: 357 Solved: 73SubmitStatusWeb BoardDescription985走入了一个n * n的方格地图,他已经知道其中有一个格子是坏的。现在他要从(1, 1)走到(n, n),每次只可以向下或者向右走一步,问他能否到原创 2016-08-06 11:02:53 · 307 阅读 · 0 评论 -
【POJ1985】Cow Marathon(基础 树的直径)
Cow MarathonTime Limit:2000MS Memory Limit:30000KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionAfter hearing about the epidemic of obesity in the USA, Farmer John原创 2016-08-02 11:42:49 · 360 阅读 · 0 评论 -
【POJ1321】棋盘问题
棋盘问题Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %lluSubmit StatusDescription在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和原创 2016-07-28 17:09:07 · 345 阅读 · 0 评论 -
【杭电2553】N皇后
N皇后问题Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任原创 2016-07-28 20:27:26 · 1027 阅读 · 0 评论 -
【POJ3984】迷宫问题
迷宫问题Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice POJ 3984Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1,转载 2016-07-29 21:07:50 · 259 阅读 · 0 评论 -
【杭电1241】Oil Deposits(DFS)
Oil DepositsTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe GeoSurvComp geologic survey company is responsible for detecting原创 2016-07-29 11:09:11 · 401 阅读 · 0 评论 -
【杭电1181】变形课
变形课Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形原创 2016-07-28 21:13:32 · 325 阅读 · 0 评论 -
【POJ 3620】Avoid The Lakes
Avoid The LakesTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionFarmer John's farm was flooded in the most recent storm, a fact原创 2016-07-28 19:06:46 · 391 阅读 · 0 评论 -
【南阳acm】最少步数
最少步数时间限制:3000 ms | 内存限制:65535 KB难度:4描述这有一个迷宫,有0~8行和0~8列: 1,1,1,1,1,1,1,1,1 1,0,0,1,0,0,1,0,1 1,0,0,1,1,0,0,0,1 1,0,1,0,1,1,0,1,1 1,0,0,0,0,1,0,0,1 1,1,0,1,0,1,0原创 2016-07-28 15:50:42 · 643 阅读 · 0 评论 -
*【codeforce】782C 【dfs】
C. Andryusha and Colored Balloonstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndryusha goes through a park each day. The squ原创 2017-03-06 20:12:30 · 290 阅读 · 0 评论