摘要: 题目 题目链接:https://www.luogu.com.cn/problem/P7854 给你 \(n\) 个点,编号分别为 \(1,2,\ldots,n\),点权分别为 \(a_1,a_2,\ldots,a_n\)。 请你用这 \(n\) 个点构造一棵树,使得 \(\forall 1 \le 阅读全文
posted @ 2021-09-05 11:52 stoorz 阅读(140) 评论(0) 推荐(0) 编辑