poj1010——邮票问题
DFS
poj1011——Sticks dfs + 剪枝
poj1020——拼蛋糕
poj1054——The Troublesome Frog
poj1062——昂贵的聘礼
poj1077——Eight
poj1084——Square Destroyer
poj1085——Triangle War(博弈,極大極小搜索+alpha_beta剪枝)
po...
分类:
其他好文 时间:
2014-07-29 18:07:12
阅读次数:
294
Problem Description
Eight-puzzle, which is also called "Nine grids", comes from an old game.
In this game, you are given a 3 by 3 board and 8 tiles. The tiles are numbered from 1 to 8 and each ...
分类:
其他好文 时间:
2014-07-21 16:22:02
阅读次数:
264
先上题目:EightTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11243Accepted Submission(s): 3022Specia...
分类:
其他好文 时间:
2014-07-13 23:41:14
阅读次数:
275
双向广搜(2011-08-31 16:45:24)Eight题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1043讲到双向广搜,那就不能不讲经典的八数码问题,有人说不做此题人生不完整 。所谓双向广搜,就是初始结点向目标结点和目标结点向初始结点同时扩展,...
分类:
其他好文 时间:
2014-07-08 22:39:42
阅读次数:
422
Description
Let’s play a puzzle using eight cubes placed on a 3 × 3 board leaving one empty square.
Faces of cubes are painted with three colors. As a puzzle step, you can roll one of the cubes ...
分类:
其他好文 时间:
2014-07-08 16:27:42
阅读次数:
220
binansuo bat摩索拉斯陵墓埃及的金字塔god秦始皇陵兵马俑 xia shang zhou han qing qi jifa houyi yingzheng liubang(feng wang)秦始皇兵马俑3号坑介绍巴比伦空中花园阿尔忒弥斯月神庙亚历山大港灯塔爱琴海太阳神像shuntiany...
分类:
其他好文 时间:
2014-06-22 11:01:47
阅读次数:
325
Enumerations and Structures
Enumerations 枚举的使用
使用 enum 定义一个枚举,枚举里面可以关联方法,比如下文中的描述方法
enum Rank: Int {
case Ace = 1
case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten
case Ja...
分类:
其他好文 时间:
2014-06-20 09:03:39
阅读次数:
322
Write an algorithm to print all ways of arranging
eight queens on an 8*8 chess board so that none of them share the same row,
column or diagonal.思路:本质...
分类:
其他好文 时间:
2014-06-10 10:36:29
阅读次数:
182
Description
Problem A
The Most Distant State
Input: standard input
Output: standard output
The 8-puzzle is a square tray in which eight square tiles are placed. The remaining ninth square ...
分类:
其他好文 时间:
2014-06-10 07:59:06
阅读次数:
335