思路 前缀和,二分起点或中点 wa的原因: 解不存在输出0 讲的很好:https://blog.csdn.net/sunnyyoona/article/details/25840365 https://blog.csdn.net/zy691357966/article/details/40212215 尺取法讲解: https://blog.csdn.net/qq_36553623/article/details/69055007 https://blog.csdn.net/zw1996/article/details/52089894