This problem is in Contest(s) below:
Contest 1019:CSP复赛搜索专题
Contest 1018:2019CSP复赛练习题