예제 #1
0
 private static int CountTrees(this char[,] map, int right, int down)
 {
     return(map.Descend(right, down).Count(x => x == '#'));
 }