Esempio n. 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));
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var day = new Day11();

            day.Run();
        }