Ejemplo n.º 1
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();
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var startTime = DateTime.Now;

            Console.WriteLine("---Welcome to erjicle's solutions to Advent of Code 2020!!---");
            // Day 1
            Console.WriteLine($"Day 01 - Part 1: {Day01.GetDay01Part01Answer()}");
            Console.WriteLine($"Day 01 - Part 2: {Day01.GetDay01Part02Answer()}");
            // Day 2
            Console.WriteLine($"Day 02 - Part 1: {Day02.GetDay02Part01Answer()}");
            Console.WriteLine($"Day 02 - Part 2: {Day02.GetDay02Part02Answer()}");
            // Day 3
            Console.WriteLine($"Day 03 - Part 1: {Day03.GetDay03Part01Answer()}");
            Console.WriteLine($"Day 03 - Part 2: {Day03.GetDay03Part02Answer()}");
            // Day 4
            Console.WriteLine($"Day 04 - Part 1: {Day04.GetDay04Part01Answer()}");
            Console.WriteLine($"Day 04 - Part 2: {Day04.GetDay04Part02Answer()}");
            // Day 5
            Console.WriteLine($"Day 05 - Part 1: {Day05.GetDay05Part01Answer()}");
            Console.WriteLine($"Day 05 - Part 2: {Day05.GetDay05Part02Answer()}");
            // Day 6
            Console.WriteLine($"Day 06 - Part 1: {Day06.GetDay06Part01Answer()}");
            Console.WriteLine($"Day 06 - Part 2: {Day06.GetDay06Part02Answer()}");
            // Day 7
            Console.WriteLine($"Day 07 - Part 1: {Day07.GetDay07Part01Answer()}");
            Console.WriteLine($"Day 07 - Part 2: {Day07.GetDay07Part02Answer()}");
            // Day 8
            Console.WriteLine($"Day 08 - Part 1: {Day08.GetDay08Part01Answer()}");
            Console.WriteLine($"Day 08 - Part 2: {Day08.GetDay08Part02Answer()}");
            // Day 9
            Console.WriteLine($"Day 09 - Part 1: {Day09.GetDay09Part01Answer()}");
            Console.WriteLine($"Day 09 - Part 2: {Day09.GetDay09Part02Answer()}");
            // Day 10
            Console.WriteLine($"Day 10 - Part 1: {Day10.GetDay10Part01Answer()}");
            Console.WriteLine($"Day 10 - Part 2: {Day10.GetDay10Part02Answer()}");
            // Day 11
            Console.WriteLine($"Day 11 - Part 1: {Day11.GetDay11Part01Answer()}");
            Console.WriteLine($"Day 11 - Part 2: {Day11.GetDay11Part02Answer()}");
            // Day 12
            Console.WriteLine($"Day 12 - Part 1: {Day12.GetDay12Part01Answer()}");
            Console.WriteLine($"Day 12 - Part 2: {Day12.GetDay12Part02Answer()}");
            // Day 13
            Console.WriteLine($"Day 13 - Part 1: {Day13.GetDay13Part01Answer()}");
            Console.WriteLine($"Day 13 - Part 2: {Day13.GetDay13Part02Answer()}");
            // Day 14
            Console.WriteLine($"Day 14 - Part 1: {Day14.GetDay14Part01Answer()}");
            Console.WriteLine($"Day 14 - Part 2: {Day14.GetDay14Part02Answer()}");
            // Day 15
            Console.WriteLine($"Day 15 - Part 1: {Day15.GetDay15Part01Answer()}");
            Console.WriteLine($"Day 15 - Part 2: {Day15.GetDay15Part02Answer()}");
            // Day 16
            Console.WriteLine($"Day 16 - Part 1: {Day16.GetDay16Part01Answer()}");
            Console.WriteLine($"Day 16 - Part 2: {Day16.GetDay16Part02Answer()}");
            // Day 17
            Console.WriteLine($"Day 17 - Part 1: {Day17.GetDay17Part01Answer()}");
            Console.WriteLine($"Day 17 - Part 2: {Day17.GetDay17Part02Answer()}");
            // Day 18
            Console.WriteLine($"Day 18 - Part 1: {Day18.GetDay18Part01Answer()}");
            Console.WriteLine($"Day 18 - Part 2: {Day18.GetDay18Part02Answer()}");
            // Day 19
            Console.WriteLine($"Day 19 - Part 1: {Day19.GetDay19Part01Answer()}");
            Console.WriteLine($"Day 19 - Part 2: {Day19.GetDay19Part02Answer()}");
            // Day 20
            Console.WriteLine($"Day 20 - Part 1: {Day20.GetDay20Part01Answer()}");
            Console.WriteLine($"Day 20 - Part 2: {Day20.GetDay20Part02Answer()}");
            // Day 21
            Console.WriteLine($"Day 21 - Part 1: {Day21.GetDay21Part01Answer()}");
            Console.WriteLine($"Day 21 - Part 2: {Day21.GetDay21Part02Answer()}");
            // Day 22
            Console.WriteLine($"Day 22 - Part 1: {Day22.GetDay22Part01Answer()}");
            Console.WriteLine($"Day 22 - Part 2: {Day22.GetDay22Part02Answer()}");
            // Day 23
            Console.WriteLine($"Day 23 - Part 1: {Day23.GetDay23Part01Answer()}");
            Console.WriteLine($"Day 23 - Part 2: {Day23.GetDay23Part02Answer()}");
            // Day 24
            Console.WriteLine($"Day 24 - Part 1: {Day24.GetDay24Part01Answer()}");
            Console.WriteLine($"Day 24 - Part 2: {Day24.GetDay24Part02Answer()}");
            // Day 25
            Console.WriteLine($"Day 25 - Part 1: {Day25.GetDay25Part01Answer()}");
            var endTime = DateTime.Now;

            Console.WriteLine("All puzzles complete! You have now arrived at your sweet tropical vacation spot. Enjoy!");
            Console.WriteLine($"Processing complete in {(endTime - startTime).TotalSeconds} second(s)!");
        }