예제 #1
0
 public void Test2()
 {
     Assert.Equal(208, Day14.Star2(new string[] {
         "mask = 000000000000000000000000000000X1001X",
         "mem[42] = 100",
         "mask = 00000000000000000000000000000000X0XX",
         "mem[26] = 1"
     }));
 }
예제 #2
0
        static void Main(string[] args)
        {
            Day14 day14 = new Day14();

            day14.Part1();
            day14.Part2();

            Console.Write("Press Enter to continue...");
            Console.ReadLine();
        }
예제 #3
0
        public async Task Star2()
        {
            var lines = await ReadUtils.ReadAllLines("./Day14Part1Input.txt").ConfigureAwait(false);

            Assert.Equal(4753238784664, Day14.Star2(lines));
        }
예제 #4
0
        public async Task Star1()
        {
            var lines = await ReadUtils.ReadAllLines("./Day14Part1Input.txt").ConfigureAwait(false);

            Assert.Equal(8332632930672, Day14.Star1(lines));
        }
예제 #5
0
        public async Task Test1()
        {
            var lines = await ReadUtils.ReadAllLines("./Day14Part1Test1.txt").ConfigureAwait(false);

            Assert.Equal(165, Day14.Star1(lines));
        }
예제 #6
0
        static void Main(string[] args)
        {
            Day14 d = new Day14();

            d.Solve();
        }