This problem is in Contest(s) below:
Contest 1350:【YH27Z】17 自定义函数练习