This problem is in Contest(s) below:
Contest 1386:2024年寒假提高
Contest 1018:贪心算法(提高篇)
Contest 1216:2023春季周日早
Contest 1134:2022春季周六下\日早第七期
Contest 1215:2023春周六晚日早c++七期