摘要: 就是八皇后问题 。。题目:The Sultan's SuccessorsThe Sultan of Nubia has no children, so she has decided that the country will be split into up to k separate parts on her death and each part will be inherited by whoever performs best at some test. It is possible for any individual to inherit more than one or 阅读全文
posted @ 2013-12-20 21:08 doubleshik 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 就是连续邮资问题。。回朔法 sum 是求出每次最大连续的值backtrace 是枚举出每次的加入的值题目:StampsThe government of Nova Mareterrania requires that various legal documents have stamps attached to them so that the government can derive revenue from them. In terms of recent legislation, each class of document is limited in the number of st 阅读全文
posted @ 2013-12-20 20:32 doubleshik 阅读(158) 评论(0) 推荐(0) 编辑