This problem is in Contest(s) below:
Contest 1040:csp/noip数据结构专练
Contest 1083:2021CSP第二轮专题2-图论