using System; using System.Collections.Generic; using System.Text; public class Program { public void Proc(){ Reader.IsDebug = false; int[] inpt = Reader.GetInt(); int wLen = inpt[1]; int hLen = inpt[0]; this.Map = new BlockState[hLen, wLen]; for(int i=0; i= 0 && px < map.GetLength(1) && py>=0 && py < map.GetLength(0) && map[py, px] == BlockState.black) { map[i,j] = BlockState.blue; map[py, px] = BlockState.read; isPainted = true; } else { return false; } } } } return isPainted; } private BlockState[,] Map; private BlockState[,] CopyMap() { BlockState[,] newMap = new BlockState[this.Map.GetLength(0), this.Map.GetLength(1)]; for(int i=0; i