This problem is in Contest(s) below:
Contest 1006:分治算法
Contest 1019:二分与三分
Contest 1412:平阳春季(二分)
Contest 1324:2024春周日早C++c6(塘下)