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