Beispiel #1
0
        static void Main(string[] args)
        {
            var masses = LoadInput("input-day1.txt");
            var day1   = new Day1(masses);

            Console.WriteLine($"Day 1 - pt1. {day1.GetDay1Part1()}");
            Console.WriteLine($"Day 1 - pt2. {day1.GetDay1Part2()}");

            var opcodes = LoadFlatInput("input-day2.txt");
            var day2    = new Day2(opcodes);

            Console.WriteLine($"Day 2 - pt1. {day2.GetDay2Part1()}");
            Console.WriteLine($"Day 2 - pt2. {day2.GetDay2Part2()}");

            var paths = LoadFlatInput("input-day3.txt");
            var day3  = new Day3(paths);

            day3.GetDay3();

            var day4 = new Day4();

            day4.GetPart1();
            day4.GetPart2();

            var opcodesDay5 = LoadFlatInput("input-day5.txt");
            var day5        = new Day5(opcodesDay5);

            day5.GetPart1();

            var orbits = LoadInput("input-day6.txt");
            var day6   = new Day6(orbits);

            Console.WriteLine($"Day 6 - pt1. {day6.GetPart1()}");
            Console.WriteLine($"Day 6 - pt2. {day6.GetPart2()}");

            var day7input = LoadFlatInput("input-day7.txt");
            var day7      = new Day7(day7input);

            day7.GetPart1();
        }