This problem is in Contest(s) below:
Contest 1134:2022年暑期普及班-枚举
Contest 1078:普及组水题专练