摘要:
Description You are given a node-labeled rooted tree with n nodes. Define the query (x, k): Find the node whose label is k-th largest in the subtree o 阅读全文
摘要:
Description A 国有n 个城市,城市之间有一些双向道路相连,并且城市两两之间有唯一 路径。现在有火车在城市 a,需要经过m 个城市。火车按照以下规则行驶:每次 行驶到还没有经过的城市中在 m 个城市中最靠前的。现在小 A 想知道火车经过 这m 个城市后所经过的道路数量。 A 国有n 个城 阅读全文