示例#1
0
        static void Main(string[] args)
        {
            var treeTravel = new TreeTravel(File.ReadAllLines("../input.txt").ToList());

            //Part One
            Console.WriteLine($"Number of tree : {treeTravel.GetNumberOfTreeDefaultPath()}");

            //Part Two
            Console.WriteLine($"Multiplication result : {treeTravel.GetNumberOfTreeForAllTravelPath()}");
        }
示例#2
0
        public void PartTwoTest()
        {
            var subject = new TreeTravel(GetExampleInput());

            Assert.Equal(336, subject.GetNumberOfTreeForAllTravelPath());
        }