maxStep=res[i]这里是不是应该为 maxStep=Math.max(maxStep,res[i])要好一点。
点赞

相关推荐

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