Пример #1
0
        public void SolvePartTwo()
        {
            Console.WriteLine("Part two:");
            var seatId = GetSeadId(PuzzleInput.FetchStringArray(5));

            Console.WriteLine($"Answer is: {seatId}");
            Console.WriteLine();
        }
Пример #2
0
        public void SolvePartTwo()
        {
            Console.WriteLine("Part two:");
            var gameConsole = new GameConsole(PuzzleInput.FetchStringArray(8));

            Console.WriteLine($"Answer is: {this.TryFixingIt(gameConsole)}");
            Console.WriteLine();
        }
Пример #3
0
        public void SolvePartOne()
        {
            Console.WriteLine("Part one:");
            var console = new GameConsole(PuzzleInput.FetchStringArray(8));

            Console.WriteLine($"Answer is: {this.GetAccumulatorAtRepeat(console)}");
            Console.WriteLine();
        }
Пример #4
0
        public void SolvePartTwo()
        {
            Console.WriteLine("Part two:");
            var containedBags = this.GetContainedBags(PuzzleInput.FetchStringArray(7));

            Console.WriteLine($"Answer is: {containedBags}");
            Console.WriteLine();
        }
Пример #5
0
        public void SolvePartOne()
        {
            Console.WriteLine("Part one:");
            var numberOfBags = this.GetNumberOfBags(PuzzleInput.FetchStringArray(7));

            Console.WriteLine($"Answer is: {numberOfBags}");
            Console.WriteLine();
        }
Пример #6
0
 public Day2()
 {
     _data = PuzzleInput.FetchStringArray(2);
 }