예제 #1
0
        static void Main(string[] args)
        {
            var shuttleSearch = new ShuttleSearch(File.ReadAllLines("../input.txt"));

            //Part One
            Console.WriteLine(shuttleSearch.GetEarliestTimeWithOneBus());

            //Part Two
            Console.WriteLine(shuttleSearch.GetFirstConsecutiveTimeAllBusGo());
        }
예제 #2
0
        public void PartOneTest()
        {
            var subject = new ShuttleSearch(GetExampleInput());

            Assert.Equal(295, subject.GetEarliestTimeWithOneBus());
        }