题解:P11616 瓦解 No_commander · 2025-01-26 11:00:50 · 题解 首先把必须分段的地方无脑分段,即 a_i \ge a_{i + 1} 时。 发现其他地方可以随便分,因为上面分好以后其他段都是有序的。 组合数求一下即可,感觉没有绿。