コード例 #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
ファイル: Program.cs プロジェクト: mjazbc/adventofcode2018
        static void Main(string[] args)
        {
            Day14 d = new Day14();

            d.Solve();
        }