Exemplo n.º 1
0
        public void Example1()
        {
            var input  = "3,4,3,1,2";
            var result = FishSimulator.Simulate(input, 18);

            Assert.Equal(26, result);
        }
Exemplo n.º 2
0
        public void Puzzle2()
        {
            var input = FileReader
                        .GetResource("AdventOfCode.Tests._2021.Day6.PuzzleInput.txt");

            var result = FishSimulator.Simulate(input, 256);

            Assert.Equal(1590327954513L, result);
        }
Exemplo n.º 3
0
        public void Puzzle1()
        {
            var input = FileReader
                        .GetResource("AdventOfCode.Tests._2021.Day6.PuzzleInput.txt");

            var result = FishSimulator.Simulate(input, 80);

            Assert.Equal(350149L, result);
        }