Пример #1
0
        public static void Main()
        {
            MaxmimumPathSum m = new MaxmimumPathSum();

            m.GetInputValues();
            m.ToCalculateMaximumPathSum();
        }
Пример #2
0
        public static void Main()
        {
            MaxmimumPathSum m = new MaxmimumPathSum();
            int             Iteration, IterationIndex;

            Iteration = -1;
            while (Iteration < 1)
            {
                Console.WriteLine("Enter the Number of Testcases:");
                Iteration = Convert.ToInt32(Console.ReadLine());
                if (Iteration < 1)
                {
                    Console.WriteLine("Enter an Positive Integer: ");
                }
            }
            for (IterationIndex = 1; IterationIndex <= Iteration; IterationIndex++)
            {
                m.GetInputValues();
                m.ToCalculateMaximumPathSum();
            }
        }