This problem is in Contest(s) below:
Contest 1241:分治算法
Contest 1509:分治算法及数据排序练习
Contest 1707:分治算法练习
Contest 1947:分治算法练习