摘要: ## 题目 题目链接:https://codeforces.com/contest/1844/problem/G 给定一棵 $n$ 个点的树,每条边有一个未知的正整数边权,给出 $d_i$ 表示点 $i$ 到点 $i+1$ 的距离,求出每条边的边权或判定无解。 $n\leq 10^5,d_i\leq 阅读全文
posted @ 2023-07-21 15:54 stoorz 阅读(33) 评论(0) 推荐(0) 编辑