class Solution { public static int NumOffices(char[][] grid) { int result = 0; return result; } } namespace Rextester { public class Program { public static void Main(string[] args) { var matrix = GetMatrix(); var numOffices = Solution.NumOffices(matrix); Console.WriteLine(numOffices); } public static char[][] GetMatrix() { var rows = int.Parse(Console.ReadLine()); var cols = int.Parse(Console.ReadLine()); char[][] matrix = new char[rows][]; for (var i = 0; i < rows; i++) { var line = Console.ReadLine(); matrix[i] = line.ToCharArray(); } return matrix; } } }
NumOffices
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)