Пример #1
0
        public void PuzzelTwo()
        {
            var data      = InputParser.ParseDelimited("input_data/day7-1.txt");
            var optimizer = new FuelOptimizer(data);

            Assert.Equal(91257582, optimizer.OptimalCompoundFuelConsumption());
        }
Пример #2
0
        public void TestInput()
        {
            var data      = InputParser.ParseDelimited("input_data/day7-test.txt");
            var optimizer = new FuelOptimizer(data);

            Assert.Equal(37, optimizer.OptimalFuelConsumption());
        }
Пример #3
0
        public void PuzzelOne()
        {
            var data      = InputParser.ParseDelimited("input_data/day7-1.txt");
            var optimizer = new FuelOptimizer(data);

            Assert.Equal(328187, optimizer.OptimalFuelConsumption());
        }