题目链接:https://www.luogu.org/problemnew/show/P3959 题解 P3959 【宝藏】 https://www.luogu.org/blog/user54022/solution-p3959