コード例 #1
0
        public void Part2Example1()
        {
            var input = new []
            {
                "departure class: 0-1 or 4-19",
                "row: 0-5 or 8-19",
                "departure seat: 0-13 or 16-19",
                "",
                "your ticket:",
                "11,12,13",
                "",
                "nearby tickets:",
                "3,9,18",
                "15,1,5",
                "5,14,9",
            };
            var testee = new Day16();

            testee.ComputePart2(input).Should().Be(156);
        }
コード例 #2
0
        public void Part2Actual()
        {
            var testee = new Day16();

            testee.ComputePart2().Should().BeGreaterThan(230355299);
        }