摘要: TreeTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2038Accepted Submission(s): 391Problem Descri... 阅读全文
posted @ 2014-11-10 16:30 哈特13 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 375. Query on a treeYou are given a tree (an acyclic undirected connected graph) withNnodes, and edges numbered 1, 2, 3...N-1.We will ask you to perfr... 阅读全文
posted @ 2014-11-09 22:40 哈特13 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Aragorn's StoryTime Limit: 10000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3544Accepted Submission(s): 995Pro... 阅读全文
posted @ 2014-11-09 00:59 哈特13 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 倒金字塔(0585)Time limit(ms): 3000Memory limit(kb): 65535Submission: 208Accepted: 48DescriptionSWUST国的一支科学考察队到达了举世闻名的古埃及金字塔。关于金字塔的建造一直是一个未解之谜, 有着“西方史学之父”之... 阅读全文
posted @ 2014-11-04 22:35 哈特13 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 魔板Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1917Accepted Submission(s): 393Problem Descript... 阅读全文
posted @ 2014-11-03 18:13 哈特13 阅读(194) 评论(0) 推荐(0) 编辑
摘要: InvestmentTime Limit:10000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionJohn never knew he had a grand-uncle, until he received the nota... 阅读全文
posted @ 2014-11-02 12:53 哈特13 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 24 Point game时间限制:3000ms | 内存限制:65535KB难度:5描述There is a game which is called 24 Point game.In this game , you will be given some numbers. Your task is... 阅读全文
posted @ 2014-11-01 17:33 哈特13 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 三个水杯时间限制:1000ms | 内存限制:65535KB难度:4描述给出三个水杯,大小不一,并且只有最大的水杯的水是装满的,其余两个为空杯子。三个水杯之间相互倒水,并且水杯没有标识,只能根据给出的水杯体积来计算。现在要求你写出一个程序,使其输出使初始状态到达目标状态的最少次数。输入第一行一个整数... 阅读全文
posted @ 2014-11-01 14:53 哈特13 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Palindrome subsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/65535 K (Java/Others)Total Submission(s): 2373Accepted Submission(s):... 阅读全文
posted @ 2014-10-31 15:36 哈特13 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Brackets SequenceDescriptionLet us define a regular brackets sequence in the following way:1. Empty sequence is a regular sequence.2. If S is a regula... 阅读全文
posted @ 2014-10-31 00:04 哈特13 阅读(221) 评论(0) 推荐(0) 编辑