예제 #1
0
        public void Day14_Part2_Examples()
        {
            var d = new Day14();

            var result = d.SolutionPart2(1000,
                "Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seconds.",
                "Dancer can fly 16 km/s for 11 seconds, but then must rest for 162 seconds.");

            Assert.AreEqual(689, result);
        }
예제 #2
0
        public void Day14_Part2_Solution()
        {
            var d = new Day14();

            var input = FileHelper.ReadTestFile(14);
            Assert.IsNotNull(input);

            var expected = 1084;
            var actual = d.SolutionPart2(2503, input);

            Assert.AreEqual(expected, actual);
        }