This problem is in Contest(s) below:
Contest 1243:基础算法周末练习赛
Contest 1245:基础算法周末练习赛—重现赛