A MEX week
https://blog.mitrichev.ch/2023/09/a-mex-week.html
Codeforces Round 946 Solution Discussion