This problem is in Contest(s) below:
Contest 1058:小学省赛集训枚举专题
Contest 1131:2022小学省赛练习题简单题