This problem is in Contest(s) below:
Contest 1139:2022年暑期普及班-字符
Contest 1016:NOIP枚举
Contest 1058:小学省赛集训枚举专题