Beispiel #1
0
        public static void Part1(string[] input)
        {
            Helper.PrintChallengePart("Part 1");

            BitmaskManager bits = new BitmaskManager(input);
            long           sum  = bits.SumMemoryValues();

            Console.WriteLine("Memory Sum: " + sum);
        }
        public void Day14Part1()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day14_example.txt");

            //Act
            BitmaskManager bits = new BitmaskManager(input);
            long           sum  = bits.SumMemoryValues();


            //Assert
            Assert.AreEqual(165L, sum);
        }