题面 给定一棵 n n n 个结点的无根树,每条边的边权均为 1 1 1 . 树上标记有 m m m 个互不相同的关键点,小 A \tt A A 会在这 m m m 个点中等概率随机地选择 k k k 个不同的点放上小饼干.你想知道,经过有小饼干的 k k k 个点的最短路径长度的期望是多少.注意,你可以任意选取起点和终点,路径也可以经过重复的点或重复的边. 2 ≤ k ≤ m ≤ n ≤ 2000 2\leq k\leq m\leq n\leq2000 2≤k≤m≤n≤2000 . m ≤ 3…
DNA Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14758 Accepted: 5716 Description It's well known that DNA Sequence is a sequence only contains A, C, T and G, and it's very useful to analyze a segment of DNA Sequence,For exampl…