This problem is in Contest(s) below:
Contest 1134:2022年暑期普及班-枚举
Contest 1082:2021CSP第二轮专题1-杂题
Contest 1078:普及组水题专练
Contest 1100:2022小学市夏令营练习-枚举