This problem is in Contest(s) below:
Contest 2028:区一中小学组期末考试
Contest 2070:小学组真题测试
Contest 1997:贪心练习