This problem is in Contest(s) below:
Contest 1353:【YH27Z】18 暑假编程练习
Contest 1092:周四组 函数练习