This problem is in Contest(s) below:
Contest 1100:2022小学市夏令营练习-枚举
Contest 1197:2026春季入门班练习