예제 #1
0
        static void Main(string[] args)
        {
            var puzzle = new Day8();
            var answer = puzzle.SolvePart2(Resource.Input);

            Console.WriteLine("Answer: " + answer);
            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            DateTime start = DateTime.Now;
            DateTime last  = start;

            Day1.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day2.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day3.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day4.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day5.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day6.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day7.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day8.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day9LinkedList.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day10.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day11.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day12.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day13.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day14.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day15Dijkstra.Run(false, 500);
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day16.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day17.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day18.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day19.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day20.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day21.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day22.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day23.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day24.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Day25.Run();
            Console.WriteLine("Run Time: " + (DateTime.Now - last));
            last = DateTime.Now;
            Console.WriteLine("\nTotal Run Time: " + (DateTime.Now - start));
        }