
DFS
L-75
这个作者很懒,什么都没留下…
展开
-
HDU 1242 Rescue
RescueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22768 Accepted Submission(s): 8045Problem DescriptionAngel was caught by th原创 2015-12-15 00:18:28 · 366 阅读 · 0 评论 -
POJ 1753 Flip Game(回溯查找,dfs)
Flip GameTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 39171 Accepted: 17026DescriptionFlip game is played on a rectangular 4x4 field with two-sided p原创 2016-06-23 16:06:48 · 438 阅读 · 0 评论 -
poj 1166 The Clocks (暴力|| dfs)
The ClocksTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16196 Accepted: 6627Description|-------| |-------| |-------|| | | |原创 2016-09-20 13:38:16 · 490 阅读 · 0 评论 -
poj 3009 Curling 2.0
Curling 2.0Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18688 Accepted: 7666DescriptionOn Planet MM-21, after their Olympic games this year, curlin原创 2016-10-22 11:52:01 · 466 阅读 · 0 评论 -
poj 2488 A Knight's Journey (dfs)
A Knight's JourneyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 42114 Accepted: 14324DescriptionBackground The knight is getting bored of seeing t原创 2016-10-16 21:52:22 · 303 阅读 · 0 评论 -
符号三角形问题(dfs)
符号三角形Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1800 Accepted Submission(s): 930Problem Description符号三角形的 第1行有n个由“+”和”-“原创 2016-12-02 11:48:18 · 714 阅读 · 0 评论 -
HDU 1518 Square(DFS+剪枝)
SquareTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13846 Accepted Submission(s): 4386Problem DescriptionGiven a set of st原创 2016-12-27 13:12:47 · 425 阅读 · 0 评论 -
poj 3050 Hopscotch(dfs暴力)
HopscotchTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3951 Accepted: 2627DescriptionThe cows play the child's game of hopscotch in a non-traditional原创 2017-02-14 10:59:00 · 411 阅读 · 0 评论 -
poj 3984 迷宫问题
迷宫问题Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18533 Accepted: 10970Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0,原创 2017-02-01 00:14:48 · 405 阅读 · 0 评论 -
CodeForces - 589J Cleaner Robot
J. Cleaner Robottime limit per test2 seconds memory limit per test512 megabytes inputstandard input outputstandard output Masha has recently bought a cleaner robot, it can clean a floor without any原创 2017-03-05 09:19:10 · 385 阅读 · 0 评论 -
POJ 2965 The Pilots Brothers' refrigerator(回溯查找,dfs)
The Pilots Brothers' refrigeratorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 23414 Accepted: 9004 Special JudgeDescriptionThe game “The Pilo原创 2016-06-25 20:10:27 · 321 阅读 · 0 评论 -
SDUT 2410 Mine Number 2012年山东省第三届ACM大学生程序设计竞赛题
Mine NumberTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述Every one once played the game called Mine Sweeping, here I change the rule. You are given an n*m map, every element i原创 2016-05-19 07:00:26 · 456 阅读 · 0 评论 -
穿越雷区第六届蓝桥杯大赛个人赛决赛(C语言A组)第四题
标题:穿越雷区X星的坦克战车很奇怪,它必须交替地穿越正能量辐射区和负能量辐射区才能保持正常运转,否则将报废。某坦克需要从A区到B区去(A,B区本身是安全区,没有正能量或负能量特征),怎样走才能路径最短?已知的地图是一个方阵,上面用字母标出了A,B区,其它区都标了正号或负号分别表示正负能量辐射区。例如:A + - + -- + - - +- + + + -原创 2016-05-24 13:56:54 · 2083 阅读 · 0 评论 -
HDU 1213 How Many Tables
How Many TablesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20247 Accepted Submission(s): 10076Problem DescriptionToday is I原创 2016-01-16 17:24:37 · 325 阅读 · 0 评论 -
蓝桥杯 历届试题 带分数
问题描述100 可以表示为带分数的形式:100 = 3 + 69258 / 714。还可以表示为:100 = 82 + 3546 / 197。注意特征:带分数中,数字1~9分别出现且只出现一次(不包含0)。类似这样的带分数,100 有 11 种表示法。输入格式从标准输入读入一个正整数N (N输出格式程序输出该数字用数码1~9不重复不遗漏地组成带分原创 2016-01-18 15:29:19 · 1058 阅读 · 0 评论 -
HDU 1258 Sum It Up
Sum It Up Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 1Font: Times New Roman | Verdana |Georgia Font Si原创 2016-01-19 17:31:13 · 345 阅读 · 0 评论 -
蓝桥杯 历届试题 剪格子
问题描述如下图所示,3 x 3 的格子中填写了一些整数。+--*--+--+|10* 1|52|+--****--+|20|30* 1|*******--+| 1| 2| 3|+--+--+--+我们沿着图中的星号线剪开,得到两个部分,每个部分的数字和都是60。本题的要求就是请你编程判定:对给定的m x n 的格子中的整数,是否可以分割为两个部分,使得这原创 2016-01-18 15:20:14 · 884 阅读 · 0 评论 -
HDU 2553 N皇后问题
N皇后问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14958 Accepted Submission(s): 6813Problem Description在N*N的方格棋盘放置了N个皇后,使得它们原创 2016-01-20 10:59:13 · 393 阅读 · 0 评论 -
蓝桥杯 李白打酒
标题:李白打酒 话说大诗人李白,一生好饮。幸好他从不开车。 一天,他提着酒壶,从家里出来,酒壶中有酒2斗。他边走边唱: 无事街上走,提壶去打酒。 逢店加一倍,遇花喝一斗。 这一路上,他一共遇到店5次,遇到花10次,已知最后一次遇到的是花,他正好把酒喝光了。 请你计算李白遇到店和花的次序,可以把遇店记为a,遇花记为b。原创 2016-01-20 11:13:33 · 854 阅读 · 0 评论 -
HDU 1175 连连看 (DFS + 剪枝)
连连看Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 26235 Accepted Submission(s): 6501Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下原创 2015-12-06 20:52:15 · 839 阅读 · 0 评论 -
HDU 1016 Prime Ring Problem(DFS入门)
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 36781 Accepted Submission(s): 16202Problem DescriptionA ring is原创 2015-12-05 17:42:55 · 422 阅读 · 0 评论 -
HDU 1181 变形课(DFS)
变形课 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 5 Accepted Submission(s) : 1Font: Times New Roman | Verdana | GeorgiaFont Size: ←原创 2015-12-08 14:46:15 · 427 阅读 · 0 评论 -
HDU 2660 Accepted Necklace (01背包,dfs)
Accepted NecklaceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3696 Accepted Submission(s): 1465Problem DescriptionI have N precious stone原创 2017-03-16 20:49:29 · 396 阅读 · 0 评论