This problem is in Contest(s) below:
Contest 5593:基础班1-13
Contest 5633:基础班1-20测试