array[i] += Math.max(array[i - 1], 0); //换成这样好理解一点
1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务