记录路径
文章平均质量分 91
ljyanjy
新的开始
展开
-
Ignatius and the Princess I(bfs+记录路径)hdu 1026
Ignatius and the Princess ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Special JudgeProblem DescriptionThe Princess has been abducted by the BEelzebub feng5166, ...原创 2018-04-24 08:51:00 · 261 阅读 · 0 评论 -
hdu 1175 连连看(dfs+剪枝)
连连看 HDU - 1175 “连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已经酿成大祸,就只能将错就错了,连...原创 2018-05-09 09:54:24 · 415 阅读 · 0 评论 -
hdu 1043 eight (八数码+康托展开+记录路径)
Eight HDU - 1043 The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on i...原创 2018-05-08 18:00:34 · 387 阅读 · 0 评论