This problem is in Contest(s) below:
Contest 1100:2022小学市夏令营练习-枚举
Contest 1121:2022小学市赛夏令营集训-数学
Contest 1030:枚举算法专题