098D

[ABC098D] Xor Sum 2 题解

### 题解 [传送门](https://luogu.com.cn/problem/at_abc176_d) #### 题目大意 给出一个序列 $A$ ,求 $A_l \oplus A_{l+1} \oplus \dots \oplus A_r = A_l + A_{l + 1} +\dots+ A ......
题解 098D ABC 098 Xor

ARC098D Donation

捐钱太亏了,我们倒序考虑,于是就变成了抢钱。 于是对于一个点的限制 $(a_u,b_u)$,令 $c_u=\max\{0,a_u-b_u\}$,表示到这个点之前你至少拥有的钱数,并且到了这个点之后会抢到 $b_u$ 的钱。 考虑建立 $\text{Kruskal}$ 重构树使得树上每条边 $fa_u ......
Donation 098D ARC 098
共2篇  :1/1页 首页上一页1下一页尾页