摘要:
题目 题目链接:https://www.luogu.com.cn/problem/P5495 给定一个长度为 \(n\) 的数列 \(a_1,a_2,a_3,\dots,a_n\)。 现在你要求出一个长度为 \(n\) 的数列 \(b_1,b_2,b_3,\dots,b_n\),满足 \(b_k=\ 阅读全文
posted @ 2021-02-25 19:48
stoorz
阅读(95)
评论(0)
推荐(0)
摘要:
题目 题目链接:https://codeforces.com/contest/1303/problem/G 有一颗 \(n\) 个节点的树,树每个节点有一个权值 \(a_i (1 \leq a_i \leq 10^6)\)。 定义树上 \(u \rightarrow v\) 的链的权值如下:将 \( 阅读全文
posted @ 2021-02-25 15:34
stoorz
阅读(67)
评论(0)
推荐(0)