示例#1
0
文件: Test21.cs 项目: htoomik/aoc2020
        public void Solve2()
        {
            var input  = DataHelper.GetAllRows(21);
            var solver = new Day21();
            var result = solver.Solve2(input);

            Output.WriteLine(result);
        }
示例#2
0
文件: Test21.cs 项目: htoomik/aoc2020
        public void Part2()
        {
            var input  = @"
mxmxvkd kfcds sqjhc nhms (contains dairy, fish)
trh fvjkl sbzzf mxmxvkd (contains dairy)
sqjhc fvjkl (contains soy)
sqjhc mxmxvkd sbzzf (contains fish)".ChopToList();
            var solver = new Day21();
            var result = solver.Solve2(input);

            result.ShouldBe("mxmxvkd,sqjhc,fvjkl");
        }