This problem is in Contest(s) below:
Contest 1004:竞赛中等题型练习
Contest 1158:函数入门