Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     CreatePairs x = new CreatePairs();
     int[] a = { 1, 0, 1, -1, 2, 3, -2, 2, -7 };
     Console.WriteLine(x.maximalSum(a));
     Console.ReadLine();
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            CreatePairs x = new CreatePairs();

            int[] a = { 1, 0, 1, -1, 2, 3, -2, 2, -7 };
            Console.WriteLine(x.maximalSum(a));
            Console.ReadLine();
        }