ACM_搜索
名字太长容易被发现并打死
这个作者很懒,什么都没留下…
展开
-
HDU -2216 Game III(BFS)
#include<iostream> #include<cstdio> #include<cstring> #include<string> #include<cmath> #include<queue> #include<algorithm> #include<stack> #include<v...原创 2019-08-13 19:22:01 · 370 阅读 · 0 评论 -
POJ -2251 Dungeon Master(三维地图BFS)
Dungeon Master Time Limit: 1000MS Memory Limit: 65536K Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or...原创 2019-08-17 10:45:02 · 342 阅读 · 0 评论 -
HDU -1495 非常可乐(BFS)
非常可乐 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和s...原创 2019-08-17 09:28:19 · 272 阅读 · 0 评论 -
HDU -1010 Tempter of the Bone(DFS)
Tempter of the Bone Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description The doggie found a bone in an ancient maze, which fascinated him a lot. ...原创 2019-08-17 09:52:46 · 352 阅读 · 0 评论 -
POJ -1321 棋盘问题(DFS)
棋盘问题 Time Limit: 1000MS Memory Limit: 10000K Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n ...原创 2019-08-17 10:36:27 · 268 阅读 · 0 评论 -
POJ -3414 Pots(BFS)
Pots Time Limit: 1000MS Memory Limit: 65536K Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill...原创 2019-08-16 17:20:59 · 263 阅读 · 0 评论 -
POJ -1562 Oil Deposits(BFS)
Oil Deposits Time Limit: 1000MS Memory Limit: 10000K Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large ...原创 2019-08-16 17:12:46 · 432 阅读 · 0 评论 -
HDU -2128 Tempter of the Bone II(BFS)
Tempter of the Bone II Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 98304/32768 K (Java/Others) Problem Description The doggie found a bone in an ancient maze, which fascinated him a l...原创 2019-08-16 17:08:23 · 401 阅读 · 0 评论 -
HDU -1175 连连看(BFS)
连连看 Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description “连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子)...原创 2019-08-16 16:16:24 · 294 阅读 · 0 评论 -
POJ -2110 Mountain Walking(二分,BFS)
Mountain Walking Time Limit: 1000MS Memory Limit: 30000K Description Farmer John and Bessie the cow have embarked on one of those ‘active’ vacations. They spend entire days walking in the mount...原创 2019-08-16 15:40:42 · 298 阅读 · 0 评论 -
HDU -1016 Prime Ring Problem(DFS)
Prime Ring Problem Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1,...原创 2019-08-16 15:18:36 · 266 阅读 · 0 评论 -
Codeforces -878D. Magic Breeding(搜索)
D. Magic Breeding Time limit4000 ms Memory limit1048576 kB Description Nikita and Sasha play a computer game where you have to breed some magical creatures. Initially, they have k creatures num...原创 2019-08-26 11:13:37 · 361 阅读 · 0 评论