题解列表

筛选

并查集思想

摘要:```cpp #include #include #include #include using namespace std; typedef long long LL; namespa……

dp动态规划解法

摘要:一个区间的能量=左边的珠子*右边的珠子*右边下一个珠子 合并两个区间的能量=左边区间的能量+右边区间的能量+左区间的左珠子*右区间的左珠子*右区间的下一个珠子。 ```cpp #incl……