while里面初始化
```cpp
for(ll k=1;k<=n;k++)
dp[k]=-2100000000;
```
改成
```cpp
for(ll k=1;k<=n;k++)
dp[k]=-1e18;
```
就可以了吧
by Szhacing @ 2023-08-21 21:11:13
@[Szhacing](/user/903078)
已关注,感谢,前两天没看见
by yhliuhao @ 2023-08-23 09:11:32