摘要: Problem DescriptionWhile studying the history of royal families, you want to know how wealthy each family is. While you have various 'net worth' figures for each individual throughout history, this is complicated by double counting caused by inheritance. One way to estimate the wealth of a f 阅读全文
posted @ 2012-04-02 23:38 'wind 阅读(404) 评论(0) 推荐(0) 编辑
摘要: DescriptionBob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he has the following problem. He must defend a medieval city, the roads of which form a tree. He has to put the minimum number of soldiers on t 阅读全文
posted @ 2012-04-02 16:38 'wind 阅读(512) 评论(0) 推荐(0) 编辑