Пример #1
0
        static void Main(string[] args)
        {
            Day08 day08 = new Day08();

            day08.Part1();
            day08.Part2();

            Console.Write("Press Enter to continue...");
            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var data = File.ReadAllText("Input/part1.txt")
                       .Split(new string[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries)
                       .Select(t => t.Trim()).ToList();
            var today = new Day08(data);

            Console.Write("Part 1: ");
            Console.WriteLine(today.ComputePart1());
            Console.Write("Part 2: ");
            Console.WriteLine(today.ComputePart2());
        }
Пример #3
0
        static void Main(string[] args)
        {
            Day08 d = new Day08();

            d.Solve();
        }