This problem is in Contest(s) below:
Contest 1060:小学省赛集训数学专题
Contest 1145:基础班-搜索入门