示例#1
0
        public void Part1()
        {
            var answer = Day21.Part1(5, 9);

            answer.Should().NotBe(-1);
            answer.Should().Be(989352);
        }
示例#2
0
        public void Part2()
        {
            var answer = Day21.Part2(5, 9);

            answer.Should().NotBe(-2);
            answer.Should().Be(430229563871565L);
        }
示例#3
0
        public void Part2_Example()
        {
            var answer   = Day21.Part2(4, 8);
            var expected = 444356092776315;
            var diff     = expected - answer;
            var mag      = answer.ToString().Length;

            mag.Should().Be(expected.ToString().Length);
            // diff.Should().Be(0);
            answer.Should().Be(expected);
        }
示例#4
0
        public void Part1_Example()
        {
            var answer = Day21.Part1(4, 8);

            answer.Should().Be(739785);
        }