コード例 #1
0
        internal void Solve()
        {
            var lights = new Lights(input);

            for (int i = 0; i < 100; i++)
            {
                lights.Cycle();
            }

            Console.WriteLine($"Number of lights on: {lights.Count()}");
        }
コード例 #2
0
        internal void Solve()
        {
            var lights = new Lights(input);

            lights.CornersOn = true;

            for (int i = 0; i < 100; i++)
            {
                //lights.TurnOnCorners();
                lights.Cycle();
            }
            //lights.TurnOnCorners();
            Console.WriteLine($"Broken corner lights on: {lights.Count()}");
        }