예제 #1
0
        public void Day06Part2()
        {
            var lights = new int[1000, 1000];

            Day06.ParseLine2("turn on 0,0 through 0,0", ref lights);
            var result1 = Day06.Count2(lights);

            Assert.IsTrue(result1 == 1);

            Day06.ParseLine2("toggle 0,0 through 999,999", ref lights);
            var result2 = Day06.Count2(lights);

            Assert.IsTrue(result2 == 2000001);
        }