【搜索/BFS/DFS]
云淡风轻<<
这个作者很懒,什么都没留下…
展开
-
HDU 1242(bfs、dfs)
Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison. Angel’s frie...原创 2019-04-12 10:32:24 · 119 阅读 · 0 评论 -
HDU 1584 蜘蛛牌(经典深搜dfs)
Description 蜘蛛牌是windows xp操作系统自带的一款纸牌游戏,游戏规则是这样的:只能将牌拖到比她大一的牌上面(A最小,K最大),如果拖动的牌上有按顺序排好的牌时,那么这些牌也跟着一起移动,游戏的目的是将所有的牌按同一花色从小到大排好,为了简单起见,我们的游戏只有同一花色的10张牌,从A到10,且随机的在一行上展开,编号从1到10,把第i号上的牌移到第j号牌上,移动距离为abs(i...原创 2019-04-03 10:43:43 · 218 阅读 · 0 评论 -
HDU 5547 数独(dfs)
Description Yi Sima was one of the best counselors of Cao Cao. He likes to play a funny game himself. It looks like the modern Sudoku, but smaller. Actually, Yi Sima was playing it different. First of...原创 2019-04-17 20:41:56 · 283 阅读 · 0 评论