摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文