Ejemplo n.º 1
0
 static int Puzzle2(SeatLayoutSolver solver)
 {
     solver.Reset();
     solver.Puzzle2Setup();
     solver.Solve();
     return(solver.GetOccupiedSeatsCount());
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            string[] content = System.IO.File.ReadAllLines(@"input.txt");

            SeatLayoutSolver solver = new SeatLayoutSolver(content);

            Console.WriteLine("Puzzle 1 : " + Puzzle1(solver));
            Console.WriteLine("Puzzle 2 : " + Puzzle2(solver));
        }