Пример #1
0
        static void Main(string[] args)
        {
            Task16.ExecuteTask();
            Task17.ExecuteTask();
            Task18.ExecuteTask();

            // Task19 can take a lot of time
            Task19.ExecuteTask();
        }
Пример #2
0
        public void Task18Sort3(Int32 a, Int32 b, Int32 c, Int32[] answer)
        {
            Int32[] res = Task18.Sort3(a, b, c);

            for (Int32 i = 0; i < 3; i++)
            {
                Assert.AreEqual(answer[i], res[i]);
            }
        }
Пример #3
0
        public void TestMaximumPathSum1()
        {
            var task = new Task18();

            Assert.AreEqual(1074, task.Run(), $"Maximum path sum is incorrect");
        }