This problem is in Contest(s) below:
Contest 1006:分治算法
Contest 1295:2023秋季c++c7
Contest 1215:2023春周六晚日早c++七期
Contest 1209:2023春周六早日下c++九期
Contest 1365:2024秋周五晚c4
Contest 1345:2024暑期135下c4
Contest 1352:2024暑期246晚c4
Contest 1316:2024春周六c++c5
Contest 1214:2023春周六晚c++六期