版本比较
MEX性质
正文
增加 29 行删除 0 行
322 行未改动全部展开323324325326322 行未改动全部展开可用于区间 MEX 求和及计数。其中第三条是处理高难度 MEX 计数题的重要突破口。322 行未改动全部展开323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355322 行未改动全部展开可用于区间 MEX 求和及计数。其中第三条是处理高难度 MEX 计数题的重要突破口。## **题目推荐**[CF1496B Max and Mex](https://www.luogu.com.cn/problem/CF1496B)[CF1364C Ehab and Prefix MEXs](https://www.luogu.com.cn/problem/CF1364C)[CF1619E MEX and Increments](https://www.luogu.com.cn/problem/CF1619E)[CF1375D Replace by MEX](https://www.luogu.com.cn/problem/CF1375D)[CF1744F MEX vs MED](https://www.luogu.com.cn/problem/CF1744F)[P4137 Rmq Problem / mex](https://www.luogu.com.cn/problem/P4137)[P17723 [SCP-S 2026] 函数 / func](https://www.luogu.com.cn/problem/P17723)[AT_abc438_f [ABC438F] Sum of Mex](https://www.luogu.com.cn/problem/AT_abc438_f)[CF2199H Sum of MEX](https://www.luogu.com.cn/problem/CF2199H)[CF1527D MEX Tree](https://www.luogu.com.cn/problem/CF1527D)[CF2219D MEX Replacement on Tree](https://www.luogu.com.cn/problem/CF2219D)[AT_arc216_b [ARC216B] Range Mex Sum](https://www.luogu.com.cn/problem/AT_arc216_b)[AT_arc204_c [ARC204C] Maximize Sum of Mex](https://www.luogu.com.cn/problem/AT_arc204_c)[AT_abc465_g [ABC465G] Sum of Mex of Mod of Linear](https://www.luogu.com.cn/problem/AT_abc465_g)