摘要: 本文同步于我的博客。 Problem There are \(2\cdot n\) cards arranged in a row, with each card numbered from \(1\) to \(n\) having exactly 2 copies. Each time, Red 阅读全文
posted @ 2024-07-21 16:03 Vanilla_chan 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布于我的网站 Problem 给一棵根为 1 的有根树,点 \(i\) 具有一个权值 \(A_i\) 。 定义一个点对的值 \(f(u, v)=\max \left(A_u, A_v\right) \times\left|A_u-A_v\right|\) 。 你需要对于每个节点 \(i\) 阅读全文
posted @ 2024-07-21 13:41 Vanilla_chan 阅读(24) 评论(0) 推荐(0) 编辑