Beispiel #1
0
        protected override void Preprocess()
        {
            _ints = InputByNewLine.Select(s => s.ToCharArray().Select(c => c - '0').ToArray()).ToArray().To2D();

            _rows = _ints.GetLength(0);
            _cols = _ints.GetLength(1);

            _points = new();
            for (int y = 0; y < _rows; y++)
            {
                for (int x = 0; x < _cols; x++)
                {
                    _points.Add(new Point(x, y));
                }
            }
        }
Beispiel #2
0
 protected override void Preprocess()
 {
     _inputs = InputByNewLine.Select(Parse).ToArray();
 }