This problem is in Contest(s) below:
Contest 1809:2023小学组
Contest 1834:七年级贪心训练
Contest 2070:小学组真题测试