예제 #1
0
        public void Part2_CalculateResultForSimpleExample()
        {
            var input = new[]
            {
                "nop +0",
                "acc +1",
                "jmp +4",
                "acc +3",
                "jmp -3",
                "acc -99",
                "acc +1",
                "jmp -4",
                "acc +6"
            };

            DayEight.CalculateResultForPartTwo(input).Should().Be(8);
        }
예제 #2
0
        public void Part2_CalculateResult()
        {
            var input = File.ReadAllLines(@"Input/input8.txt");

            System.Console.WriteLine(DayEight.CalculateResultForPartTwo(input));
        }