朝花夕拾
朝花夕拾:NHOI 2022 T6
[原题](https://www.luogu.com.cn/problem/AT_abc248_g "原题") 题意: #### 题目描述 给定一颗树有 $n$ 个结点,每个结点上有一个权值 $a_i$, 对于每条**至少包含两个点**的**简单路径**,它的贡献为 路径上点的数量(包括端点)$\t ......
朝花夕拾-链表(一)
"Writing in C or C++ is like running a chain saw with all the safety guards removed. " - Bob Gray “用C或C++写代码就像是在挥舞一把卸掉所有安全防护装置的链锯。” —— 鲍勃·格雷 0x00 大纲 0 ......