コード例 #1
0
        public void Part1_Answer()
        {
            var day7   = new Day7();
            var actual = day7.FindBase(TEST_INPUT);

            Assert.Equal("vgzejbd", actual);
        }
コード例 #2
0
        public void Part1()
        {
            var given = @"pbga (66)
xhth (57)
ebii (61)
havc (66)
ktlj (57)
fwft (72) -> ktlj, cntj, xhth
qoyq (66)
padx (45) -> pbga, havc, qoyq
tknk (41) -> ugml, padx, fwft
jptl (61)
ugml (68) -> gyxo, ebii, jptl
gyxo (61)
cntj (57)";

            var day7   = new Day7();
            var actual = day7.FindBase(given);

            Assert.Equal("tknk", actual);
        }