![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字典树
Roosevelty
这个作者很懒,什么都没留下…
展开
-
hdu 1075 what are you talking ab…
Problem DescriptionIgnatius is so lucky that he met a Martian yesterday. But he didn'tknow the language the Martians use. The Martian gives him a historybook of Mars and a dictionary when it leave原创 2014-12-15 18:46:10 · 387 阅读 · 0 评论 -
九宫重排
问题描述 如下面第一个图的九宫格中,放着 1~8 的数字卡片,还有一个格子空着。与空格子相邻的格子中的卡片可以移动到空格中。经过若干次移动,可以形成第二个图所示的局面。 我们把第一个图的局面记为:12345678. 把第二个图的局面记为:123.46758 显然是按从上到下,从左到右的顺序记录数字,空格记为句点。 本题目的任务是已知九宫的初态和终态,求最少经过原创 2015-02-13 16:52:31 · 577 阅读 · 0 评论