This problem is in Contest(s) below:
Contest 1199:程序设计基础2(计算机173)第12周:递归函数
Contest 1200:程序设计基础2(计算机174)第12周:递归函数
Contest 1482:计算机184——程序设计基础2(第15周)