public void Test2() { Assert.Equal(208, Day14.Star2(new string[] { "mask = 000000000000000000000000000000X1001X", "mem[42] = 100", "mask = 00000000000000000000000000000000X0XX", "mem[26] = 1" })); }
static void Main(string[] args) { Day14 day14 = new Day14(); day14.Part1(); day14.Part2(); Console.Write("Press Enter to continue..."); Console.ReadLine(); }
public async Task Star2() { var lines = await ReadUtils.ReadAllLines("./Day14Part1Input.txt").ConfigureAwait(false); Assert.Equal(4753238784664, Day14.Star2(lines)); }
public async Task Star1() { var lines = await ReadUtils.ReadAllLines("./Day14Part1Input.txt").ConfigureAwait(false); Assert.Equal(8332632930672, Day14.Star1(lines)); }
public async Task Test1() { var lines = await ReadUtils.ReadAllLines("./Day14Part1Test1.txt").ConfigureAwait(false); Assert.Equal(165, Day14.Star1(lines)); }
static void Main(string[] args) { Day14 d = new Day14(); d.Solve(); }