예제 #1
0
        private static void RunDay11()
        {
            sw = new Stopwatch();
            Console.WriteLine("Day11:");
            List <string> input = ReadFileByLineAsString(".//Day11/input");

            sw.Start();
            Day11 day11  = new Day11(input);
            int   result = day11.Execute();

            sw.Stop();
            Console.WriteLine("Seats occupied: " + result.ToString());
            Console.WriteLine("RunTime: " + ParseTimeSpan(sw.Elapsed));

            sw = new Stopwatch();
            sw.Start();
            day11  = new Day11(input);
            result = day11.ExecutePart2();
            sw.Stop();
            Console.WriteLine("Seats occupied: " + result.ToString());
            Console.WriteLine("RunTime: " + ParseTimeSpan(sw.Elapsed));
        }
예제 #2
0
        static void Main(string[] args)
        {
            var day = new Day11();

            day.Run();
        }