Пример #1
0
        public void Example6Part2()
        {
            var input = new List <int> {
                3, 2, 1
            };

            Day15.Solve(input, 30000000).Should().Be(18);
        }
Пример #2
0
        public void Example7Part2()
        {
            var input = new List <int> {
                3, 1, 2
            };

            Day15.Solve(input, 30000000).Should().Be(362);
        }
Пример #3
0
        public void Example4Part2()
        {
            var input = new List <int> {
                1, 2, 3
            };

            Day15.Solve(input, 30000000).Should().Be(261214);
        }
Пример #4
0
        public void Example5Part2()
        {
            var input = new List <int> {
                2, 3, 1
            };

            Day15.Solve(input, 30000000).Should().Be(6895259);
        }
Пример #5
0
        public void Example3Part2()
        {
            var input = new List <int> {
                2, 1, 3
            };

            Day15.Solve(input, 30000000).Should().Be(3544142);
        }
Пример #6
0
        public void Example2Part2()
        {
            var input = new List <int> {
                1, 3, 2
            };

            Day15.Solve(input, 30000000).Should().Be(2578);
        }
Пример #7
0
        public void Example1Part2()
        {
            var input = new List <int> {
                0, 3, 6
            };

            Day15.Solve(input, 30000000).Should().Be(175594);
        }
Пример #8
0
        public void Solution1()
        {
            var input = new List <int> {
                1, 12, 0, 20, 8, 16
            };

            Console.WriteLine(Day15.Solve(input, 2020));
        }
Пример #9
0
        public void ExamplePart1()
        {
            var input = new List <int> {
                0, 3, 6
            };

            Day15.Solve(input, 2020).Should().Be(436);
        }