Open xehoth opened 6 years ago
https://blog.xehoth.cc/BZOJ5020/#more
维护一个森林,每个点有一个函数 $f$,要求支持连接两个点,断开两个点,修改某个点的函数,询问路径上函数 $f(x)$ 的和。
https://blog.xehoth.cc/BZOJ5020/#more
维护一个森林,每个点有一个函数 $f$,要求支持连接两个点,断开两个点,修改某个点的函数,询问路径上函数 $f(x)$ 的和。