「coci 2021-2022 #1」Logičari
link。断环后把断的边所连的两个点特殊标记,作为两个特殊点。这样就是一个树,树的做法很简单吧,把两个特殊点特殊处理带进状态即可。具体一点就是,设 $f(x,c_x,c_f,c_{rt_1},c...
In mathematics you don't understand things, you just get used to them.
In mathematics you don't understand things, you just get used to them.