This problem is in Contest(s) below:
Contest 1429:2019提高班(8)
Contest 1691:提高班(递归)
Contest 2027:递归