예제 #1
0
        public static void Part2(string[] input)
        {
            Helper.PrintChallengePart("Part 2");

            BusScheduler bus    = new BusScheduler(input);
            long         result = bus.CalculateSynchronicity();

            Console.WriteLine("Result: " + result);
        }
예제 #2
0
        public void Day13Part2()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day13_example.txt");

            //Act
            BusScheduler bus    = new BusScheduler(input);
            long         result = bus.CalculateSynchronicity();

            //Assert
            Assert.AreEqual((long)1068781, result);
        }