This problem is in Contest(s) below:
Contest 1695:基础结构算法班第四天测试
Contest 1444:行之中学基础提高班4-9网课练习(递归函数)
Contest 1979:零基础第四节