BZOJ2138 stone [Hall定理/线段树]
BZOJ5404 [HN集训2018] party [树链剖分/Hall定理/二分答案]
LOJ6062「2017 山东一轮集训 Day2」Pair [Hall定理/线段树]