Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World");
            Console.WriteLine(Day12.PartTwo().ToString());

            Console.ReadKey();
        }
Пример #2
0
 public static void Main()
 {
     Console.WriteLine("*** Advent of Code 2020 ***");
     Console.WriteLine();
     Console.WriteLine("--- Day 1: Report Repair ---");
     Console.WriteLine("Part One Answer: " + Day01.PartOne());
     Console.WriteLine("Part Two Answer: " + Day01.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 2: Password Philosophy ---");
     Console.WriteLine("Part One Answer: " + Day02.PartOne());
     Console.WriteLine("Part Two Answer: " + Day02.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 3: Toboggan Trajectory ---");
     Console.WriteLine("Part One Answer: " + Day03.PartOne());
     Console.WriteLine("Part Two Answer: " + Day03.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 4: Passport Processing ---");
     Console.WriteLine("Part One Answer: " + Day04.PartOne());
     Console.WriteLine("Part Two Answer: " + Day04.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 5: Binary Boarding ---");
     Console.WriteLine("Part One Answer: " + Day05.PartOne());
     Console.WriteLine("Part Two Answer: " + Day05.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 6: Custom Customs ---");
     Console.WriteLine("Part One Answer: " + Day06.PartOne());
     Console.WriteLine("Part Two Answer: " + Day06.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 7: Handy Haversacks ---");
     Console.WriteLine("Part One Answer: " + Day07.PartOne());
     Console.WriteLine("Part Two Answer: " + Day07.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 8: Handheld Halting ---");
     Console.WriteLine("Part One Answer: " + Day08.PartOne());
     Console.WriteLine("Part Two Answer: " + Day08.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 9: Encoding Error ---");
     Console.WriteLine("Part One Answer: " + Day09.PartOne());
     Console.WriteLine("Part Two Answer: " + Day09.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 10: Adapter Array ---");
     Console.WriteLine("Part One Answer: " + Day10.PartOne());
     Console.WriteLine("Part Two Answer: " + Day10.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 11: Seating System ---");
     Console.WriteLine("Part One Answer: " + Day11.PartOne());
     Console.WriteLine("Part Two Answer: " + Day11.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 12: Rain Risk ---");
     Console.WriteLine("Part One Answer: " + Day12.PartOne());
     Console.WriteLine("Part Two Answer: " + Day12.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 13: Shuttle Search ---");
     Console.WriteLine("Part One Answer: " + Day13.PartOne());
     Console.WriteLine("Part Two Answer: " + Day13.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 14: Docking Data ---");
     Console.WriteLine("Part One Answer: " + Day14.PartOne());
     Console.WriteLine("Part Two Answer: " + Day14.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 15: Rambunctious Recitation ---");
     Console.WriteLine("Part One Answer: " + Day15.PartOne());
     Console.WriteLine("Part Two Answer: " + Day15.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 16: Ticket Translation ---");
     Console.WriteLine("Part One Answer: " + Day16.PartOne());
     Console.WriteLine("Part Two Answer: " + Day16.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 17: Conway Cubes ---");
     Console.WriteLine("Part One Answer: " + Day17.PartOne());
     Console.WriteLine("Part Two Answer: " + Day17.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 18: Operation Order ---");
     Console.WriteLine("Part One Answer: " + Day18.PartOne());
     Console.WriteLine("Part Two Answer: " + Day18.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 19: Monster Messages ---");
     Console.WriteLine("Part One Answer: " + Day19.PartOne());
     Console.WriteLine("Part Two Answer: " + Day19.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 20: Jurassic Jigsaw ---");
     Console.WriteLine("Part One Answer: " + Day20.PartOne());
     Console.WriteLine("Part Two Answer: " + Day20.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 21: Allergen Assessment ---");
     Console.WriteLine("Part One Answer: " + Day21.PartOne());
     Console.WriteLine("Part Two Answer: " + Day21.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 22: Crab Combat ---");
     Console.WriteLine("Part One Answer: " + Day22.PartOne());
     Console.WriteLine("Part Two Answer: " + Day22.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 23: Crab Cups ---");
     Console.WriteLine("Part One Answer: " + Day23.PartOne());
     Console.WriteLine("Part Two Answer: " + Day23.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 24: Lobby Layout ---");
     Console.WriteLine("Part One Answer: " + Day24.PartOne());
     Console.WriteLine("Part Two Answer: " + Day24.PartTwo());
     Console.WriteLine();
     Console.WriteLine("--- Day 25: Combo Breaker ---");
     Console.WriteLine("Part One Answer: " + Day25.PartOne());
     Console.WriteLine("Part Two Answer: fifty stars");
     Console.WriteLine();
     Console.ReadKey();
 }