Max(0, sum); //排除掉負數的加總max = Math.Max(sum, max); //判斷當前與上一個加總哪個較大} return max; } static void Main(string[] args) { int[] array = {1,7 ...
確定! 回上一頁