摘要:
TreeTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2038Accepted Submission(s): 391Problem Descri... 阅读全文
摘要:
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... 阅读全文
摘要:
Aragorn's StoryTime Limit: 10000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3544Accepted Submission(s): 995Pro... 阅读全文
摘要:
倒金字塔(0585)Time limit(ms): 3000Memory limit(kb): 65535Submission: 208Accepted: 48DescriptionSWUST国的一支科学考察队到达了举世闻名的古埃及金字塔。关于金字塔的建造一直是一个未解之谜, 有着“西方史学之父”之... 阅读全文
摘要:
魔板Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1917Accepted Submission(s): 393Problem Descript... 阅读全文
摘要:
InvestmentTime Limit:10000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionJohn never knew he had a grand-uncle, until he received the nota... 阅读全文
摘要:
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... 阅读全文
摘要:
三个水杯时间限制:1000ms | 内存限制:65535KB难度:4描述给出三个水杯,大小不一,并且只有最大的水杯的水是装满的,其余两个为空杯子。三个水杯之间相互倒水,并且水杯没有标识,只能根据给出的水杯体积来计算。现在要求你写出一个程序,使其输出使初始状态到达目标状态的最少次数。输入第一行一个整数... 阅读全文
摘要:
Palindrome subsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/65535 K (Java/Others)Total Submission(s): 2373Accepted Submission(s):... 阅读全文
摘要:
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... 阅读全文