Beispiel #1
0
        public Day1()
        {
            var fuelsRequiredByModule = FileUtils.LoadDataLines(1)
                                        .Select(long.Parse)
                                        .Select(mass => FuelRequired(mass));

            _answer1 = fuelsRequiredByModule
                       .Sum();

            _answer2 = fuelsRequiredByModule
                       .Select(FuelRequiredByFuel)
                       .Sum();
        }
Beispiel #2
0
 public Day6()
 {
     _answer1 = GetTotalOrbits(FileUtils.LoadDataLines(6));
     // TODO:
     _answer2 = 0;
 }