示例#1
0
        public static void Part1(string[] input)
        {
            Helper.PrintChallengePart("Part 1");

            TicketTranslator ticketJobby = new TicketTranslator(input);

            int result = ticketJobby.ErrorRate();

            Console.WriteLine("Invalid Tickets: " + result);
        }
示例#2
0
        public void Day16Part1()
        {
            // Arrange
            string[]         input       = Helper.ParseInput(@"Inputs\\Day16_example.txt");
            TicketTranslator ticketJobby = new TicketTranslator(input);

            //Act
            int result = ticketJobby.ErrorRate();

            //Assert
            Assert.AreEqual(71, result);
        }