min-max 容斥min-max 容斥也称之为最值反演。Max(S)=∑T⊆S,T≠∅(−1)∣T∣−1⋅Min(T)Max(S)=\sum_{T\subseteq S,T\neq \varnothing}{(-1)^{|T|-1}\cdot Min(T)}Max(S)=T⊆S,T=∅∑(−1)∣T∣−1⋅Min(T)定义 kMax(S)kMax(S)kMax(S) 等于 SSS 的第 kkk 大值,那么:kMax(S)=∑T⊆S,∣T∣≥k(−1)∣T∣−kMin(T)⋅C∣T∣−1k−1kMax(S)=\sum_{T\subseteq S,|T|\geq k}{(-1)^{|T|-k}Min(T)\cdot C_{|T|-1}^{k-1}}kMax(S)=T⊆S,∣T∣≥k∑(−1)∣T∣−kMin(T)⋅C∣T∣−1k−1E(Max(S))=∑T⊆S(−1)∣T∣−1E(Min(T))E\left(Max(S)\right)=\sum_{T\subseteq S}{(-1)^{|T|-1}{E\left(Min(T)\right)}}E(Max(S))=T⊆S∑(−1)∣T∣−1E(Min(T))min-max 容斥https://sobaliuziao.github.io/2024/04/23/post/f5b4fe64.html作者Egg_laying_master发布于2024年4月23日许可协议 P4707 重返现世 题解 上一篇CF1361E James and the Chase 题解 下一篇