This problem is used in private contest:2024届练习18-分治